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]
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论