【问题标题】:pycuda; nvcc fatal : Visual Studio configuration file '(null)' could not be found皮库达; nvcc 致命:找不到 Visual Studio 配置文件“(null)”
【发布时间】:2012-04-27 00:58:21
【问题描述】:

在安装 Visual C++ Express 2010 和各种 Nvidia 驱动程序、SDK 等后,我正在尝试运行 pycuda introductory tutorial。我得到了

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

没有错误。但是 IPython 中的这个调用产生了

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 而不影响此错误,尽管我现在似乎能够在 Visual C++ Express 2010 中选择 x64 程序。那么,我需要修复什么? (我使用了预编译的 pycuda 文件。)

【问题讨论】:

    标签: python cuda nvcc pycuda


    【解决方案1】:

    在stackoverflow 帖子CUDA linking error - Visual Express 2008 - nvcc fatal due to (null) configuration file 中,Amitabh Mritunjai 的回答修复了这个错误。他解释了 Visual C++ Express 2010 的步骤,而其余大部分内容是关于 2008 年的。

    【讨论】:

      猜你喜欢
      • 2019-07-15
      • 2015-01-31
      • 2011-02-27
      • 1970-01-01
      • 2020-09-18
      • 2016-09-19
      • 1970-01-01
      • 2015-05-22
      • 1970-01-01
      相关资源
      最近更新 更多