Re: [PyOpenCL] Pyopencl pickle support

2016-08-17 Thread Andreas Kloeckner
Marcos Paulo Rocha writes: > But multithreading will suffer the problem of GIL doesn't it ? Well, if you're doing it right, then all of your threads will either be waiting for some OpenCL operation to complete or waiting for IO. Neither of those is affected by the GIL.

Re: [PyOpenCL] Pyopencl pickle support

2016-08-17 Thread Marcos Paulo Rocha
In a application that i'm working, the programs is written in a form of a graph. A example of part of one application is bellow: [image: Inline image 1] Each node of the graph is a different process. When a node receive all of your inputs, he is ready to start. This way, concurrency occurs

Re: [PyOpenCL] Pyopencl pickle support

2016-08-16 Thread Andreas Kloeckner
Hi Marcos, Marcos Paulo Rocha writes: > Hi, i'm using multiprocessing and pyopencl and need to pass pyopencl > objects between processes. The problem is that pyopencl objects aren't > compatibles with pickle module, using by multiprocessing lib. Any idea to > solve this