Compile CUDA without Visual Studio - “Cannot find compiler cl.exe in path”

后端 未结 5 2043
一生所求
一生所求 2021-02-06 00:44

I\'ve just begun a small project in CUDA.

I need to know the following: Is it possible to compile CUDA code without using/buying Microsoft Visual Studio? Using Nvcc.exe

5条回答
  •  鱼传尺愫
    2021-02-06 01:27

    add this options to nvcc

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

    i use VS2012 and my cl.exe dir is here.

提交回复
热议问题