abacusorg / abacusutils

Python code to interface with halo catalogs and other Abacus N-body data products

Home Page:https://abacusutils.readthedocs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fix numba parallel segfault in `compute_Menv`

lgarrison opened this issue · comments

In #45, we found that using Numba parallel was causing a segfault in compute_Menv and calc_fenv in prepare_sim. It doesn't appear to be a problem with the functions themselves, but rather something at the library level. Probably related to using Numba parallel inside multiprocessing (even though we are using the nominally fork-safe workqueue backend).

Debugging this is probably a heavy lift, so for now we've just disabled Numba parallel for those two functions.