VS+CUDA编译报错:MSB3721,返回代码255的解决方案

当使用cuh声明函数,cu定义函数时,发现编译报错:MSB3721,返回代码255

解决方案:

必须在"项目选项->CUDA C/C++"中设置允许relocatable device code generation and linking,设置完成后,问题解决

参考:

https://stackoverflow.com/questions/45258052/visual-studio-msb3721-error-when-compiling-a-device-function-call-from-anoth

posted @ 2019-10-10 10:59  YongkangZhang  阅读(3131)  评论(0编辑  收藏  举报