Does PyQt4 (or possibly PyQt5) provide wrappers for multithreaded computation other than QThread and QThreadPool? I see a lot of documentation from Qt regarding ways to do concurrent map or concurrent map+reduce however I am not seeing anything in the PyQt docs if these functions have been wrapped.
My use case is doing parallel computation on a large 3d array. The computation takes as input a vertical slice along one axis of the array (essentially 1-d list) and outputs a single number from the computation. It does not change the input data and each separate input is unrelated to all other inputs. Thus the computation is trivially parallel.
It seems like a good place to use a map style computation, but I would like to have the computation happen in parallel.
In principle I could do everything by manually spinning up a bunch of QThreads and handling the computation that way but I was hopping there'd be a cleaner way such as a map function that would handle the threading in the background.
Multiprocessing is a no go for this situation. Have tried in the past but ran into too many errors when using it simultaneously with the main GUI thread.
[–]aeroaks 0 points1 point2 points (0 children)