Closed kroscek closed 5 years ago
Hi,
simdkalman
should work just fine with Pathos.
It may help if you first familiarize yourself with using Pathos with a simpler example. The way you are using ProcessingPool
's map
is not quite correct. Unfortunately Pathos lacks online documentation, but the parallel map function is supposed to be called like p.map(function, data)
, for example
def multiplyByTwo(x):
return x*2
p = ProcessPool()
p.map(multiplyByTwo, [1,2,3,4,5])
(see example here).
Also double-check the way you are splitting the full data to blocks.
ah ok thanks!
Hi. I'm quite new when using multiprocessing. I want to try using pathos for multiprocessing per block of numpy array but it seems that your code is not callable by Pathos.