Dnia 2011-01-18, wto o godzinie 23:47 +0100, Tomasz Rybak pisze:
Hello.
I have just tried to compile PyCUDA
90bf8d282c58fb9c3a14aa0ded537dbe4dd7a68f
from 2011-01-18 and it fails with error
gcc -pthread -fno-strict-aliasing -fwrapv -Wall -O3 -DNDEBUG -g -O2
-fPIC -DPYGPU_PACKAGE=pyopencl -DHAVE_GL=1 -Isrc/cpp
-I/usr/include/nvidia-current
-I/usr/lib/pymodules/python2.5/numpy/core/include
-I/usr/include/python2.5 -c src/wrapper/wrap_cl.cpp -o
build/temp.linux-x86_64-2.5/src/wrapper/wrap_cl.o
In file included from src/wrapper/wrap_cl.cpp:1:
src/wrapper/wrap_cl.hpp: In function ‘boost::python::handle<_object>
pyopencl::get_mem_obj_host_array(boost::python::api::object,
boost::python::api::object, boost::python::api::object,
boost::python::api::object)’:
src/wrapper/wrap_cl.hpp:3117: warning: comparison between signed and
unsigned integer expressions
src/wrapper/wrap_cl.cpp: In function ‘void init_module__cl()’:
src/wrapper/wrap_cl.cpp:21: error: ‘pyopencl_expose_mempool’ was not
declared in this scope
error: command 'gcc' failed with exit status 1
Attached patch fixes this problem.
There is problem with this version of PyOpenCL after build:
File "make_constants.py", line 1, in <module>
import pyopencl as cl
File "/usr/src/cuda/pyopencl-2011.1~beta3
+git20110118/build/lib.linux-x86_64-2.6/pyopencl/__init__.py", line 3,
in <module>
import pyopencl._cl as _cl
ImportError: /usr/src/cuda/pyopencl-2011.1~beta3
+git20110118/build/lib.linux-x86_64-2.6/pyopencl/_cl.so: undefined
symbol: _ZN8pyopencl11log_table_8E
The only place I have found log_table_8 is in the file
src/wrapper/bitlog.hpp, but do now know yet how to fix this problem.
--
Tomasz Rybak <bogomips(a)post.pl> GPG/PGP key ID: 2AD5 9860
Fingerprint A481 824E 7DD3 9C0E C40A 488E C654 FB33 2AD5 9860
http://member.acm.org/~tomaszrybak