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" #
相關文章
相關標籤/搜索