CUDA中模板类和模板函数

以向量加法为例,包含三个文件:kernel.h,kernel.cu,test.cppthis kernel.h:code   #ifndef __KERNEL_H_ #define __KERNEL_H_ extern "C" void runtest(); #endif kernel.cu:three #include "kernel.h" #include "cuda_runtime.h" #
相关文章
相关标签/搜索