我有一段必须同时在CPU和CUDA上运行的代码-GPU和另外一段单独在CPU上运行的代码。#define ENABLE_CUDA是我用来在整个应用程序中启用CUDA代码的工具。.
# define ENABEL_CUDA is the preprocessor directive to turn ON/OFF CUDA code.CPU and GPU code --This piece of code has to be
我正在尝试调试我的cuda程序,但我看起来非常不切实际,因为它是多线程的,因为你必须选择warps,如果你想同时调试cpu和gpu,也有两个调试器。threadIdx.x; for (int i = index; i < n; i += stride)} 和:, y);#endif // _DEBUG 它可以工作,但编译器会抱怨gridD