请教大家原子函数问题
请教大家有关原子函数的问题,我核函数里调用了原子函数automicAdd(),显示错误atomicAdd is undefined,然后我将编译规则common.mk 中GENCODE_SM10 := -gencode=arch=compute_10,code=\"sm_10,compute_10\"
GENCODE_SM20 := -gencode=arch=compute_20,code=\"sm_20,compute_20\"
第一行改为GENCODE_SM13 := -gencode=arch=compute_13,code=\"sm_13,compute_13\"我的GPU为GTX260 计算能力为1.3编译通过了,但是运行时显示错误 cutilCheckMsg() CUTIL CUDA error : Kernel execution failed : invalid device function ,然后我又将此行改为SM10,将原子函数去掉,运行正确,可见出现错误不是我写的函数的问题,是编译规则改错了,请教大家怎么改?