Skip to content

Some problems with parallelization #101

Answered by diegomartinez2
zhaowb12138 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi, my implementation is not in main, but you can find it in pull request. With that implementation you can use 'get_static_correction_along_path_multiprocessing' that uses the same input as 'get_static_correction_along_path' but with the extra input "processes = N" .

processes : integer
Number of maximum processes (cpu) to be used during the calculation.
If 'None' then the number returned by os.cpu_count() is used.
(default: None)

This is probably not the best solution for you, but I hope this helps.
Note that the multiprocess implementation is still in works for the "get_diag_dynamic_correction_along_path_multiprocessing" function.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@mesonepigreco
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by mesonepigreco
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants