找不到cl.h无法安装PyOpenCL

2024-05-29 03:55:28 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在遵循PyOpenCL:http://wiki.tiker.net/PyOpenCL/Installation/Linux/Ubuntu的安装教程,在make部分出现以下错误之前,一切正常:

$ make
ctags -R src || true
ctags: skipping src: it is not a regular file.
/usr/bin/python setup.py build
running build
running build_py
running build_ext
building '_cl' extension
...
In file included from src/wrapper/wrap_cl.cpp:1:0:
src/wrapper/wrap_cl.hpp:27:19: fatal error: CL/cl.h: No Such File or Directory
error: command 'gcc' failed with exit status 1
make: ** [all] Error 1

我发现有人有类似的问题,cl.h not found - how to link in makefile,但我没有帮助我。在

当我查看usr/src目录时,我甚至找不到一个/wrapper目录,我是应该创建该目录并下载这个文件,还是仅仅意味着本教程中的一些步骤在我的电脑上不起作用?我能解决这个问题吗?在

我有一个Ubuntu 12.04 LTS操作系统和一个ATI显卡。在


Tags: pybuildpyopenclsrc目录makeclubuntu

热门问题