VS + CUDA compiler given: MSB3721, return code 255 solution

When a function declaration cuh, Cu-defined functions, the compiler error found: MSB3721, return code 255

solution:

Must - setting allows relocatable device code generation and linking "Project Options> CUDA C / C ++". After setup is complete, problem-solving

reference:

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

Guess you like

Origin www.cnblogs.com/qpswwww/p/11646593.html