Python, parallelization with joblib: Delayed with multiple arguments Python, parallelization with joblib: Delayed with multiple arguments python python

Python, parallelization with joblib: Delayed with multiple arguments


Probably too late, but as an answer to the first part of your question:Just return a tuple in your delayed function.

return (i,j)

And for the variable holding the output of all your delayed functions

results = Parallel(n_jobs=num_cores)(delayed(processInput)(i,j) for i,j in zip(a,b))

Now results is a list of tuples each holding some (i,j) and you can just iterate through results.