开发者

How do I tell NVCC to generate an x64 obj?

开发者 https://www.devze.com 2023-04-01 02:22 出处:网络
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

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

精彩评论

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

关注公众号