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

后端 未结 4 790
陌清茗
陌清茗 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条回答
  •  Happy的楠姐
    2020-12-10 10:10

    I was trying to get CUDA 6.5 working with VS 2010 express. After uninstalling VS 2010 express, installing Windows SDK 7.1 and reinstalling VS 2010 express, setting Windows SDK 7.1 as tool set, etc. Nothing worked. In the end what worked for me was to add the following to CUDA_NVCC_FLAGS:

    --cl-version 2010
    

    You may also need to add:

    --machine 32
    

    I tried the appropriate flags in the command line first.

    This link was very helpful

提交回复
热议问题