Why can't nvcc find my Visual C++ installation?

后端 未结 4 812
陌清茗
陌清茗 2020-12-10 09:27

I\'m running Windows 7 Pro x64 on a Core i5 with a NVIDIA 3100m, which is CUDA compatible.

I\'ve tried installing both the 32-bit and 64-bit CUDA toolkits from NVIDI

4条回答
  •  没有蜡笔的小新
    2020-12-10 10:13

    With CUDA v6.0, having an older version of Visual Studio (I'm using 2010) is still required, but the other solutions did not work for me.

    To make this work, add the following to your nvcc.profile (C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v6.0/bin/nvcc.profile):

    CUDA_NVCC_FLAGS += --compiler-bindir = "-IE:/PROGRA~2/MICROS~2.0/VC/bin"
    

    I also have VS 2013 installed, and I needed this argument to prevent nvcc from finding the newer (sadly incompatible) version of cl.exe

提交回复
热议问题