Dnia 2011-09-26, pon o godzinie 08:05 -0300, andrew cooke pisze:
> Hi,
> 
> I've not used pyopencl before, and have little experience with AMD's OpenCL
> (more with Nvidia's) so forgive me if I'm mistake here, but it seems that the
> most recent AMD release has chnaged location and, as a consequence, pyopencl
> fails to install (can't find the header files).
> 
> For more information from AMD see here -
> http://developer.amd.com/sdks/AMDAPPSDK/downloads/Pages/default.aspx - where
> it says
> 
>   The new OpenCL™ ICD model changes the locale for vendor-specific libraries
>   under Linux® from /usr/lib/OpenCL/vendors to /etc/OpenCL/vendors. If you are
>   upgrading from ATI Stream SDK v2.0, note this important change.
> 
> And this is the error I am seeing on install:
> 
> Installing collected packages: pyopencl
>   Running setup.py install for pyopencl
>     Skipping implicit fixer: buffer
>     Skipping implicit fixer: idioms
>     Skipping implicit fixer: set_literal
>     Skipping implicit fixer: ws_comma
>     building '_cl' extension
>     gcc -pthread -fwrapv -Wall -O3 -DNDEBUG -fPIC -DPYGPU_PACKAGE=pyopencl
>   -DBOOST_PYTHON_SOURCE=1 -DPYOPENCL_USE_DEVICE_FISSION=1
>   -DBOOST_MULTI_INDEX_DISABLE_SERIALIZATION=1 -Dboost=pyopenclboost
>   -DPYGPU_PYOPENCL=1 -Ibpl-subset/bpl_subset
>   
> -I/home/andrew/projects/personal/kultrung/env/lib/python3.2/site-packages/numpy/core/include
>   
> -I/home/andrew/projects/personal/kultrung/env/lib/python3.2/site-packages/numpy/core/include
>   -I/usr/local/include/python3.2m -c src/wrapper/wrap_cl.cpp -o
>   build/temp.linux-x86_64-3.2/src/wrapper/wrap_cl.o
>     In file included from src/wrapper/wrap_cl.cpp:1:0:
>     src/wrapper/wrap_cl.hpp:22:19: fatal error: CL/cl.h: No such file or

gcc could not find the file CL/cl.h
It is in directory in which you have extracted AMD APP, e.g.
$ ls /usr/local/AMD-APP-SDK-v2.5-RC2-lnx64/include/
CAL  CL  GL  OVDecode

You need to point this directory to PyOpenCL configure, like this:
./configure.py --boost-python-libname=boost_python-py --cl-enable-gl
--cl-inc-dir=/usr/local/AMD-APP-SDK-v2.5-RC2-lnx64/include/

Warning - this is one long line!

Hope it helps.

Regards.

-- 
Tomasz Rybak <[email protected]> GPG/PGP key ID: 2AD5 9860
Fingerprint A481 824E 7DD3 9C0E C40A  488E C654 FB33 2AD5 9860
http://member.acm.org/~tomaszrybak

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
PyOpenCL mailing list
[email protected]
http://lists.tiker.net/listinfo/pyopencl

Reply via email to