Here's how I choose my GPU as device:

device = cl.get_platforms()[0].get_devices(cl.device_type.GPU)[0]

[0] indicates to use the first entry in the lists, so the line above
finds the 1st GPU on the 1st platform. Let me know if you need help with
the first steps.

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

Reply via email to