配置Win11系统环境变量,在系统变量的Path里加入cl.exe的路径,例如:
C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.37.32822\bin\Hostx64\x64
Windows11下把cu文件编译成exe文件的命令如下:
nvcc test1.cu -o test1.exe
配置Win11系统环境变量,在系统变量的Path里加入cl.exe的路径,例如:
C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.37.32822\bin\Hostx64\x64
Windows11下把cu文件编译成exe文件的命令如下:
nvcc test1.cu -o test1.exe