>>>>> Andreas Kloeckner writes:
>>>>> Ivan Shmakov <[email protected]> writes:

 >> Is there anything special I should do for my Radeon HD 6450 to enter
 >> the list returned by .get_platforms ()?

[…]

 > A 'platform' contains multiple 'devices'.

        ACK, thanks for the clarification.

 > In the case of ATI HW, as long as you're running from within an X11
 > session, the card should be part of the AMD platform's device
 > listing.

        ?  Does that mean that in order to use a specific device I have
        to have an X session opened for that device?

 > ('p.get_devices()')

        FWIW, .get_devices () results in a single-value list, too:

$ python -c $'import pyopencl as cl\n\
for d in cl.get_platforms ()[0].get_devices (): print d' 
<pyopencl.Device 'AMD A8-3870 APU with Radeon(tm) HD Graphics' on 'AMD 
Accelerated Parallel Processing' at 0x1ea7c50>
$ 

        The DISPLAY environment variable is unset, but there's indeed an
        X session opened for A8-3870.  (Using the ‘vesa’ driver, though,
        for ‘radeon’ results in a SIGSEGV for some reason.)

-- 
FSF associate member #7257


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

Reply via email to