timo.bet...@gmail.com writes: > I'd like to use multiple devices at the same time, not all of them > necessarily in the same context. What is the best way to do this? Is > it OK to use a Python thread for each device and handle queue and > kernel calls separately within each thread?
Any scheme you come up with should be fine. In CUDA, it's common to use one thread per context since "which context" is thread-global state. CL has no such restriction, so even driving multiple devices from a single thread should be A-OK. HTH, Andreas
signature.asc
Description: PGP signature
_______________________________________________ PyOpenCL mailing list -- pyopencl@tiker.net To unsubscribe send an email to pyopencl-le...@tiker.net