opencl requirements

2 views
Skip to first unread message

Pankaj Pandey

unread,
Apr 26, 2011, 9:03:58 AM4/26/11
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>:

Prabhu Ramachandran

unread,
Apr 26, 2011, 1:23:38 PM4/26/11
to pysp...@googlegroups.com, Pankaj Pandey
On Tuesday 26 April 2011 06:33 PM, Pankaj Pandey wrote:
> 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:

Kunal and I have been using the version from git, so maybe these have
changed recently.

cheers,
prabhu

Pankaj Pandey

unread,
Apr 26, 2011, 3:07:30 PM4/26/11
to pysp...@googlegroups.com, Pankaj Pandey
Can you tell me which version from the repo. The current master/head also does not work.
Thanks

Prabhu Ramachandran

unread,
Apr 27, 2011, 1:52:49 AM4/27/11
to pysp...@googlegroups.com, Pankaj Pandey
On Wednesday 27 April 2011 12:37 AM, Pankaj Pandey wrote:
> Can you tell me which version from the repo. The current master/head
> also does not work.

Wow, that is strange, my log gives me this at the head:

commit 290b4dee8304793af9704b257c137c31ec265ac4
Merge: 863c5b1 319672e
Author: Andreas Kloeckner <inf...@tiker.net>
Date: Tue Apr 12 21:58:06 2011 -0400

Merge branch 'master' of t:src/pyopencl


If there is a version related problem I think we need to fix any issues
so it works with a known release.

cheers,
Prabhu

Kunal Puri

unread,
Apr 27, 2011, 2:09:15 AM4/27/11
to pysp...@googlegroups.com

I ran into some problems with the current head as well. Will fix it and lrt you know.

On 27 Apr 2011 00:37, "Pankaj Pandey" <pank...@gmail.com> wrote:

Can you tell me which version from the repo. The current master/head also does not work.
Thanks



On Tuesday, 26 April 2011 22:53:38 UTC+5:30, Prabhu Ramachandran wrote:
>

> On Tuesday 26 April 20...

Kunal Puri

unread,
Apr 27, 2011, 7:21:52 AM4/27/11
to pysp...@googlegroups.com
update to the git head and use this patch. It works for me

kunal
patch

Prabhu Ramachandran

unread,
Apr 27, 2011, 7:56:57 AM4/27/11
to pysp...@googlegroups.com, Kunal Puri
On Wednesday 27 April 2011 04:51 PM, Kunal Puri wrote:
> update to the git head and use this patch. It works for me

Your patch has a bunch of ASCII color coding, could you please just send
one with

git diff > patch

cheers,
Prabhu

Reply all
Reply to author
Forward
0 new messages