可以在VS 2013平台工具包的Visual Studio 2015上使用CUDA Toolkit 7.5 [英] Can CUDA Toolkit 7.5 be used on Visual Studio 2015 with VS 2013 Platform Toolkit
问题描述
我想为OpenCV安装CUDA,但目前的工具包(7.5)与Visual Studio 2015不兼容。我的问题是 -
I want to install CUDA for OpenCV, but the current toolkit (7.5) isn't compatible with Visual Studio 2015. My questions are -
- 安装VS 2013 Express允许我在2015年使用其工具包来构建OpenCV与CUDA?
- 如果我在Visual Studio 2013上构建OpenCV CUDA,我可以使用OpenCV CUDA Visual Studio 2015上的库?
感谢您的帮助。
推荐答案
我不知道这是否适用于OpenCV,但我只是发现它适用于CUDA,所以也可以。
I don't know if this will work for OpenCV, but I just found out that it works for CUDA, so it might as well.
要允许在VS2015中加载CUDA项目,必须将扩展文件从VS2013文件夹复制到VS2015扩展文件夹。对我来说,它们位于:
To allow CUDA projects to load in VS2015, you have to copy the extension files from the VS2013 folder to the VS2015 extension folder. For me they were located at:
C:\Program文件(x86)\MSBuild\Microsoft.Cpp\v4.0\V120\BuildCustomizations
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\BuildCustomizations
C:\Program文件(x86)\MSBuild\Microsoft.Cpp\v4.0\V140\BuildCustomizations
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\BuildCustomizations
复制CUDA 7.5.targets,.props和.xml文件。现在可以在VS2015中加载和编译CUDA项目。
Copy the CUDA 7.5.targets, .props and .xml files. You can now load and compile CUDA projects in VS2015.
源,我的博客。
我安装了VS2015和VS2013社区版本。
I have the VS2015 and VS2013 community editions installed.
这篇关于可以在VS 2013平台工具包的Visual Studio 2015上使用CUDA Toolkit 7.5的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!