【发布时间】:2012-02-26 19:07:48
【问题描述】:
我对 cuda 4.1 和 Visual Studio 2010 有疑问。 当我想编译 .cu 文件时,出现以下错误:
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\BuildCustomizations\CUDA 4.1.targets(249,9): error : The CUDA Toolkit directory '' does not exist. Please verify the CUDA Toolkit is installed properly or define the CudaToolkitDir property to resolve this error.
我安装了一个干净的 Windows 7,只有 vs2010、CUDA Toolkit v4.1 和 NVIDIA GPU Computing SDK(和 git)在 VirtualBox 中运行。
我尝试在“CUDA Toolkit Custom Dir”的项目属性中指定工具包目录,但这没有任何区别。即使在全新的 VBox 中也会发生此错误。
感谢您的帮助!
【问题讨论】:
-
更新 CUDA 后,我们的构建服务器 (Jenkins) 中出现了相同的错误。我所要做的就是重新启动服务器...
标签: c++ visual-studio-2010 cuda