Pankaj Pandey
unread,Apr 26, 2011, 9:03:58 AM4/26/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to pysp...@googlegroups.com
Hi,
I'm running into trouble with the opencl stuff. What version of pyopencl is required? Are there any special requirements for it.
After installing AMD APP opencl and pyopencl '2011.1beta3', i'm getting errors:
1. There is no vec class defined in pyopencl.array.
After removing vec imports from particle_array and sph_calc i'm getting the following error
2. The test_integrator_cl.py file is giving following errors:
ERROR: test_setup_integrator (__main__.CLIntegratorTestCase)
Test the construction of the integrator
----------------------------------------------------------------------
Traceback (most recent call last):
File "source/pysph/solver/tests/test_integrator_cl.py", line 83, in setUp
self.integrator.setup_integrator(ctx)
File "/mnt/data/CourseWare/ddp/pysph/source/pysph/solver/cl_integrator.py", line 28, in setup_integrator
self.setup_cl(context)
File "/mnt/data/CourseWare/ddp/pysph/source/pysph/solver/cl_integrator.py", line 38, in setup_cl
calc.setup_cl(context)
File "sph_calc.pyx", line 320, in pysph.sph.sph_calc.CLCalc.setup_cl (source/pysph/sph/sph_calc.cpp:7893)
File "sph_calc.pyx", line 341, in pysph.sph.sph_calc.CLCalc.setup_program (source/pysph/sph/sph_calc.cpp:8049)
File "/mnt/data/CourseWare/ddp/envs/pysph-cl/lib/python2.7/site-packages/pyopencl-2011.1beta3-py2.7-linux-x86_64.egg/pyopencl/__init__.py", line 141, in program_build
"Build on %s:\n\n%s" % (dev, log) for dev, log in build_logs))
RuntimeError: Python argument types in
Program._build(Program)
did not match C++ signature:
_build(pyopencl::program {lvalue}, std::string options='', boost::python::api::object devices=None)
Build on <pyopencl.Device 'Intel(R) Core(TM)2 Duo CPU T7250 @ 2.00GHz' at 0x118ecb0>: