WIN10 VS2017+CUDA9已安装好,但是编译一直出错,小白跪求大神
cuda吧
全部回复
仅看楼主
level 2
佑tse 楼主
新建一个CUDA项目,自带的kernel.cu程序运行显示出错
跪求各位大神解决一下我的问题,装了一周了都,要爆炸,谢谢
2017年12月13日 02点12分 1
level 2
佑tse 楼主
1>------ 已启动生成: 项目: 6, 配置: Debug x64 ------
1>Compiling CUDA source file kernel.cu...
1>
1>C:\Users\lenovo-pc\source\repos\6\6>"..\..\..\..\..\..\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.0\bin\nvcc.exe" -gencode=arch=compute_30,code=\"sm_30,compute_30\" --use-local-env --cl-version 2017 -ccbin "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.12.25827\bin\HostX86\x64" -x cu -I"..\..\..\..\..\..\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.0\include" -I"..\..\..\..\..\..\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.0\include" -G --keep-dir x64\Debug -maxrregcount=0 --machine 64 --compile -cudart static -g -DWIN32 -DWIN64 -D_DEBUG -D_CONSOLE -D_MBCS -Xcompiler "/EHsc /W3 /nologo /Od /FS /Zi /RTC1 /MDd " -o x64\Debug\kernel.cu.obj "C:\Users\lenovo-pc\source\repos\6\6\kernel.cu"
1>c:\program files\nvidia gpu computing toolkit\cuda\v9.0\include\crt/host_config.h(133): fatal error C1189: #error: -- unsupported Microsoft Visual Studio version! Only the versions 2012, 2013, 2015 and 2017 are supported!
1>kernel.cu
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\BuildCustomizations\CUDA 9.0.targets(707,9): error MSB3721: 命令“"..\..\..\..\..\..\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.0\bin\nvcc.exe" -gencode=arch=compute_30,code=\"sm_30,compute_30\" --use-local-env --cl-version 2017 -ccbin "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.12.25827\bin\HostX86\x64" -x cu -I"..\..\..\..\..\..\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.0\include" -I"..\..\..\..\..\..\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.0\include" -G --keep-dir x64\Debug -maxrregcount=0 --machine 64 --compile -cudart static -g -DWIN32 -DWIN64 -D_DEBUG -D_CONSOLE -D_MBCS -Xcompiler "/EHsc /W3 /nologo /Od /FS /Zi /RTC1 /MDd " -o x64\Debug\kernel.cu.obj "C:\Users\lenovo-pc\source\repos\6\6\kernel.cu"”已退出,返回代码为 2。
1>已完成生成项目“6.vcxproj”的操作 - 失败。
========== 生成: 成功 0 个,失败 1 个,最新 0 个,跳过 0 个 ==========
2017年12月13日 02点12分 2
level 1
一样的错误,我的cuda samples 可以编译运行,但是这个新建的工程怎么都用不了
2017年12月14日 18点12分 3
我的cuda samples都用不了,编译出错,你知道是怎么回事吗[泪][泪][泪]
2017年12月16日 12点12分
我也是cuda samples可以编译运行,请问怎么解决的啊[泪]
2018年04月22日 10点04分
level 1
把平台从VS2017 V141 换到VS2015 V140就好用了,具体什么原因不知道
2017年12月16日 18点12分 4
原因是cuda目前不支持vs2017的最新版本
2018年04月27日 07点04分
level 2
佑tse 楼主
好的,谢谢大神
2017年12月20日 14点12分 5
level 1
楼主,有cuda安装教程吗[笑眼]
2018年01月22日 02点01分 7
level 1
cuda9 只支持到VS2017 rtm 版,正式版还不支持……host_config.h 有写vs版本区间
2018年02月21日 15点02分 8
level 1
同求
2018年04月14日 10点04分 9
level 1
同样的问题,请问楼主怎么解决的
2018年04月22日 01点04分 10
level 1
同问
2018年07月28日 09点07分 11
1