为什么nvcc找不到我的Visual

为什么nvcc找不到我的Visual

本文介绍了为什么nvcc找不到我的Visual C ++安装?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在运行Windows 7 Pro x64的Core i5上使用NVIDIA 3100m,这是CUDA兼容的。

I'm running Windows 7 Pro x64 on a Core i5 with a NVIDIA 3100m, which is CUDA compatible.

我试过安装32位和来自NVIDIA的64位CUDA工具包,不幸的是从它们中任何一个我无法编译任何东西; nvcc说找不到支持的cl版本,只支持MSVC 8.0和MSVC 9.0。

I've tried installing both the 32-bit and 64-bit CUDA toolkits from NVIDIA, unfortunately from with either of them I cannot compile anything; nvcc says "cannot find a supported cl version. Only MSVC 8.0 and MSVC 9.0 are supported".

我有通过Windows 7 SDK安装的x86和x86-64编译器(两个拱的编译器版本15.00.30729.01)。两个编译器都正常运行;我已经构建并测试了使用它们的C和C ++代码。我试过从设置为32位和64位编译的命令shell运行nvcc,并使用-ccbin命令行选项nvcc将其指向Visual C ++安装目录。

I have the x86 and x86-64 compilers installed via the Windows 7 SDK (compiler version 15.00.30729.01 for both arches). Both compilers are operating correctly; I've built and tested C and C++ code using them. I've tried running nvcc from command shells set up for both 32 bit and 64 bit compilation, and using the -ccbin command line option to nvcc to point it at the Visual C++ install directory.

处理此设置的正确方法是什么?有没有一些方法,我使nvcc更详细的什么是发生了什么? -v标志不是可怕的帮助。理想的一些方法,使它显示它是什么,它希望找到什么。如果我安装Visual C ++ Express,这将工作更好?

What is the right way of handling this setup? Is there some way I make nvcc be more verbose about what is going on? The -v flag isn't terrible helpful. Ideally some way to make it show what it is finding versus what it's expecting to find. Will this work better if I install Visual C++ Express instead? Or is only a commercial version of VC++ supported for use with CUDA?

推荐答案

看起来你没有安装Visual Studio 2005或2008,但是您的编译器版本号表示它是MSVC 9.0。最简单的方法来获得一切的工作是安装Visual Studiso,我相信Express将工作。

It looks like you didn't install Visual Studio 2005 or 2008, but your compiler version number indicates it is MSVC 9.0. The simplest way to get everything working is to install Visual Studiso and I believe Express will work.

此外,你可能想看看这个主题

Also, you might want to take a look at this topic on Nvidia Forum

这篇关于为什么nvcc找不到我的Visual C ++安装?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-23 09:44