yc nvcc fatal:找不到Visual Studio配置文件'(null)' [英] pycuda; nvcc fatal : Visual Studio configuration file '(null)' could not be found

查看:501
本文介绍了yc nvcc fatal:找不到Visual Studio配置文件'(null)'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在安装Visual C ++ Express 2010之后尝试运行 pycuda入门教程,各种Nvidia驱动程序,SDK等。我得到

I'm trying to run pycuda introductory tutorial after installing Visual C++ Express 2010 and all kinds of Nvidia drivers, SDK, etc. I get to

mod = SourceModule("""
__global__ void doublify(float *a)
{
int idx = threadIdx.x + threadIdx.y*4;
a[idx] *= 2;
}
""")

但是这个调用在IPython产生

without errors. But this call in IPython yields

CompileError: nvcc compilation of c:\users\koj\appdata\local\temp\tmpbbhsca\kernel.cu failed
[command: nvcc --cubin -arch sm_21 -m64 -IC:\Python27\lib\site-packages\pycuda\..\..\..\include\pycuda kernel.cu]
[stderr:
nvcc fatal   : Visual Studio configuration file '(null)' could not be found for installation at 'C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin/../..']

之后,我安装了MS Windows SDK,而不会影响这个错误,虽然我现在似乎能够选择x64程序在Visual C + + Express 2010。所以,我需要修复什么? (我使用了预编译的pycuda文件。)

After this I installed MS Windows SDK without impact on this error, although I now seem to be able to choose x64 programs in Visual C++ Express 2010. So, what do I need to fix? (I used precompiled pycuda files.)

推荐答案

在stackoverflow的帖子 CUDA链接错误 - Visual Express 2008 - 由于(null)配置文件,nvcc致命答案Amitabh Mritunjai修复了这个错误。他解释了Visual C ++ Express 2010的步骤,而其余的大部分时间大约是2008年。

In stackoverflow post CUDA linking error - Visual Express 2008 - nvcc fatal due to (null) configuration file the answer by Amitabh Mritunjai fixed this error. He explains the steps for Visual C++ Express 2010 while the most of the rest of the post is about 2008.

这篇关于yc nvcc fatal:找不到Visual Studio配置文件'(null)'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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