added cuda compiling
added cuda compiling