nvcc.exe linking error Microsoft Visual Studio configuration file 'vcvars64.bat' could not found

前端 未结 3 882
一整个雨季
一整个雨季 2021-01-18 05:36

I want to use nvcc -ptx from windows command line, but I always get this error message: nvcc : fatal error : Microsoft Visual Studio configuration file \'vcvars

3条回答
  •  南笙
    南笙 (楼主)
    2021-01-18 06:06

    From NVIDIA CUDA Compiler Driver document

    1.2. Supported Host Compilers nvcc uses the following compilers for host code compilation:

    On Linux platforms

    The GNU compiler, gcc, and arm-linux-gnueabihf-g++ for cross compilation to the ARMv7 architecture

    On Windows platforms

    The Microsoft Visual Studio compiler, cl On both platforms, the compiler found on the current execution search path will be used, unless nvcc option -compiler-bindir is specified (see File and Path Specifications).

提交回复
热议问题