I am having trouble compiling as x64 using VS 2006 CUDA 4.0 x64. The NVCC compiler generates a 32-bit obj file, then the MS linker complains that the obj file is not targeted for x64. Is ther开发者_JS百科e any way to tell NVCC to generate a x64 obj?
nvcc
can be explicitly forced to emit 64 bit host object files by passing the --machine 64
or -m64
option. Similarly, it can be forced to emit 32 bit host object files by passing the --machine 32
or -m32
[This answer has been assembled from comments and added as a community wiki entry to get this question off the unanswered question queue for the CUDA tag]
精彩评论