Skip to content

hod.prepare_sim: detect and report when a prepare_slab subprocess fails#151

Merged
lgarrison merged 3 commits intomainfrom
prepare_sim_subprocess
Sep 21, 2024
Merged

hod.prepare_sim: detect and report when a prepare_slab subprocess fails#151
lgarrison merged 3 commits intomainfrom
prepare_sim_subprocess

Conversation

@lgarrison
Copy link
Member

By using concurrent.futures.ProcessPoolExecutor instead of multiprocessing.Pool, we can get an exception when a subprocess dies. This is important, since subprocesses running out of memory is not uncommon!

Closes #150.

@lgarrison lgarrison added the HOD for abacusnbody.hod label Sep 21, 2024
@lgarrison lgarrison merged commit 229fe9a into main Sep 21, 2024
@lgarrison lgarrison deleted the prepare_sim_subprocess branch September 21, 2024 16:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

HOD for abacusnbody.hod

Projects

None yet

Development

Successfully merging this pull request may close these issues.

multiprocessing parent process doesn't get notified if child process dies

1 participant