通过“ easy_install”安装时,PyOpenCL找不到包含文件。
|
所以我已经下载了nVidia CUDA库,并将它们放在默认位置:
/usr/local/cuda
当我去运行这个:
sudo easy_install pyopencl
它给了我这个错误:
In file included from src/wrapper/wrap_cl.cpp:1:0:
src/wrapper/wrap_cl.hpp:20:19: fatal error: CL/cl.h: No such file or directory
但是,我可以验证上述文件与其他几个头文件是否确实存在:
/usr/local/cuda/include/CL/cl.h
我什至尝试设置LD_LIBRATH_PATH:
export LD_LIBRARY_PATH=/usr/local/cuda/lib
但这似乎没有任何作用。
任何帮助表示赞赏!
没有找到相关结果
已邀请:
1 个回复
艾食魄轻县
除了系统的include路径外,还会告诉gcc在/ usr / local / cuda / include中查找include。 2)将OpenCL标头文件链接到您的系统包含路径(通常为/ usr / include /)。 就像是:
从目录/ usr / include中执行应该可以正常工作。 如果解决此问题后,您遇到以下问题:
那么您可能想看看这个问题。