开发者

How do I tell NVCC to generate an x64 obj?

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]

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜