|
发表于 2013-11-20 10:14:12 128574
请问kernel函数中怎么使用malloc,printf函数?加了头文件#include "common_functions.h",电脑有两个显卡,geforce gtx 660ti,geforce gt 610,计算能力都是2.0以上了吧,但是还是错误:error : calling a __host__ function("malloc") from a __global__ function("kernel") is not allowed
|
|