Error compiling CUDA from Command Prompt

前端 未结 6 1331
面向向阳花
面向向阳花 2020-12-05 06:15

I\'m trying to compile a cuda test program on Windows 7 via Command Prompt, I\'m this command:

nvcc test.cu

But all I get is this error:<

6条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-05 07:07

    Solve this problem by adding this options to nvcc

    nvcc x.cu ...   -ccbin "D:\Program Files\Microsoft Visual Studio 11.0\VC\bin"
    

    for example my compiler is VS2012. and cl.exe is in this dir

提交回复
热议问题