Hi,
for a couple of days I am trying to install pyopencl (2014.1) on an Ubuntu
machine (3.13.0.77, x86_64) as user (no root privileges).
When running
$ pip install —global-option=build_ext —global-option=„-I/opt/sw/cuda/include
-L/opt/sw/cuda/lib64“ pyopencl==2014.1
the compiler throws
x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -fwrapv -Wall -O3 -DNDEBUG
-fPIC -DBOOST_PYTHON_SOURCE=1 -DPYGPU_PACKAGE=pyopencl
-DPYOPENCL_USE_DEVICE_FISSION=1 -DBOOST_THREAD_DONT_USE_CHRONO=1
-DPYGPU_PYOPENCL=1 -DBOOST_MULTI_INDEX_DISABLE_SERIALIZATION=1
-DBOOST_THREAD_BUILD_DLL=1 -Dboost=pyopenclboost -DBOOST_ALL_NO_LIB=1
-Ibpl-subset/bpl_subset -I/opt/sw/cuda/include -L/opt/sw/cuda/lib64
-I/usr/include/python2.7 -c src/wrapper/wrap_cl.cpp -o
build/temp.linux-x86_64-2.7/src/wrapper/wrap_cl.o
In file included from src/wrapper/wrap_cl.cpp:1:0:
src/wrapper/wrap_cl.hpp:28:19: fatal error: CL/cl.h: No such file or
directory
#include <CL/cl.h>
The Cuda version is
Cuda compilation tools, release 7.0, V7.0.27
When compiling the package via setuptools it actually succeeds but i am unable
to import pyopencl and instead getting the error:
>>>> import pyopencl
pyopencl/__init__.py:34: UserWarning: It looks like you are importing PyOpenCL
from its source directory. This likely won't work.
warn("It looks like you are importing PyOpenCL from "
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "pyopencl/__init__.py", line 28, in <module>
import pyopencl._cl as _cl
ImportError: No module named _cl
My siteconf.py looked like
BOOST_INC_DIR = []
BOOST_LIB_DIR = []
BOOST_COMPILER = 'gcc43'
BOOST_PYTHON_LIBNAME = ['boost_python-py27']
USE_SHIPPED_BOOST = True
CL_TRACE = False
CL_ENABLE_GL = False
CL_ENABLE_DEVICE_FISSION = False
CL_INC_DIR = ['/opt/sw/cuda/include']
CL_LIB_DIR = ['/opt/sw/cuda/lib64']
CL_LIBNAME = ['OpenCL']
CXXFLAGS = []
LDFLAGS = []
What can I do? Any ideas what I can try?
Best Regards Jesse
_______________________________________________
PyOpenCL mailing list
[email protected]
https://lists.tiker.net/listinfo/pyopencl