Hi,

I have a question about creating a PyOpenCl context. If you create a
context with the Interactive property set to true, then you are prompted
at runtime to select the device you wanted to run on.

E.g.

>>> import pyopencl as cl
>>> ctx = cl.create_some_context(interactive=True)
Choose device(s):
[0] <pyopencl.Device 'GeForce 9400M' at 0x1022600>
[1] <pyopencl.Device 'Intel(R) Core(TM)2 Duo CPU     P7350  @ 2.00GHz' at
0x1020400>
Choice, comma-separated [0]:

However, if you want to remove this step and set interactive=False, how
can you tell which device your context is running on? Sorry, if this is
trivial, I can't seem to find out how it works.

Thanks in advance,
Joe





-- 



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

Reply via email to