That is interesting. This is only a hunch and probably wrong.

What brand is the AGP card that doesn't have a display? Chances are that the OpenCL driver detects that there are two NVidia cards on the system and when you try to create a context it realizes that one of them cannot possibly support OpenCL because it's too old.

Possibly we could modify pyopencl so that if there are multiple devices in a platform and the context creation fails it could try creating the context on a different device (in the same platform).

Cheers,

David

On Fri, Feb 5, 2010 at 4:58 PM, Sven Schreiber <svetosch@gmx.net> wrote:
Andreas Klöckner schrieb:
> Hi Sven,

thanks for the quick reply!

>
> On Freitag 05 Februar 2010, Sven Schreiber wrote:
>> I'm new to pyopencl as well as to OpenCL in general. Not surprisingly, I
>> got to a point where I'm stuck.
>> The error: Whenever I run any of the example files, I get:
>>
>> Traceback (most recent call last):
>>   File "examples/demo.py", line 8, in <module>
>>     ctx = cl.create_some_context()
>>   File "/usr/local/lib/python2.6/dist-packages/pyopencl/__init__.py",
>> line 275, in create_some_context
>>     return Context(devices)
>> pyopencl.RuntimeError: Context failed: out of resources
>>
>> As I said, this is where I'm stuck. Any ideas?
>
> Weird--never seen such an error. Can you try and run a pure-C CL
> example (such as the ones shipped by Nvidia) and see if that works?

I'll try -- but it'll probably take a while as I'm facing some other
deadlines right now. But I will report back eventually ( != German
"eventuell" which it occurs to me otherwise you might interpret it in
this false-friend kind of way).

>
>> And while I'm at it, another question: Does pyopencl have something like
>> the gpuarray thing that I read about in pycuda?
>
> Not yet--but if you're just getting your feet wet, porting that code to
> CL would make a nice introductory exercise. Patches welcome. :)
>

well I'm sorry but I don't really speak C which I suppose is what you
mean. That's why pyopencl (and also pycuda) look so great to me.

thanks,
sven


_______________________________________________
PyOpenCL mailing list
PyOpenCL@host304.hostmonster.com
http://host304.hostmonster.com/mailman/listinfo/pyopencl_tiker.net