为什么 nvcc 找不到我的 Visual C++ 安装? [英] Why can't nvcc find my Visual C++ installation?

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

问题描述

我在配备 NVIDIA 3100m(与 CUDA 兼容)的 Core i5 上运行 Windows 7 Pro x64.

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

我尝试安装 NVIDIA 的 32 位和 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 位编译设置的命令外壳运行 nvcc,并使用 nvcc 的 -ccbin 命令行选项将其指向 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 会更好吗?还是只有商业版本的 VC++ 支持与 CUDA 一起使用?

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 Studio,我相信 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.

此外,您可能想在 Nvidia 论坛上查看此主题一个>

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

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

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆