我安装了Visual C++ Express 2010和各种Nvidia驱动程序、SDK等,现在想要运行pycuda入门教程。但是我遇到了问题。
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文件。)