我在装有 python 2.7(32 位)和 pycuda 的 Windows 机器上安装了 cuda 7.5 whl。运行示例程序以测试 pycuda 时出现错误。
Traceback (most recent call last):
File "C:\Users\newbie\Desktop\roo.py", line 82, in <module>
""")
File "C:\Python27\lib\site-packages\pycuda\compiler.py", line 265, in __init__
arch, code, cache_dir, include_dirs)
File "C:\Python27\lib\site-packages\pycuda\compiler.py", line 255, in compile
return compile_plain(source, options, keep, nvcc, cache_dir, target)
File "C:\Python27\lib\site-packages\pycuda\compiler.py", line 137, in compile_plain
stderr=stderr.decode("utf-8", "replace"))
pycuda.driver.CompileError: nvcc compilation of c:\users\newbie\appdata\local\temp\tmplluyeq\kernel.cu failed
[command: nvcc --cubin -arch sm_35 -m32 -Ic:\python27\lib\site-packages\pycuda\cuda kernel.cu]
[stdout:
kernel.cu
]
[stderr:
'C:\Program' is not recognized as an internal or external command,
可能的解决方案是什么。请帮忙 !