On Tue, 24 Apr 2012 13:18:55 -0500, "Brennan, Brian"
I had a quick question about contexts and choosing the platform to run on. When I run
my code I am prompted with:
 <pyopencl.Platform 'Intel(R) OpenCL' at 0x1594c00>
 <pyopencl.Platform 'AMD Accelerated Parallel Processing' at
Now, I can set a default value through the shell with: export PYOPENCL_CTX=0
but I am trying to run comparisons between GPU and CPU run times and
would like to class my script twice with each value '0' and '1' being
set in the code. Is there a command I can type into my script to set
this rather than being prompted each time?
(cc'ing PyOpenCL list)
Undocumented keyword argument:
That said, what create_some_context does is really easily done manually,
plat = cl.get_platforms()[plat_index]
dev = plat.get_devices()[dev_index]
ctx = cl.Context([dev])