-
Notifications
You must be signed in to change notification settings - Fork 103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
parallelization results in signal(11): Segmentation fault #448
Comments
I am having similar issues. I am trying to use pyjulia in a flask web server but it just keeps segfaulting as I assume the webserver is multithreaded. |
Try using |
I think this is related to #477 and SciML/diffeqpy#98 @andrewkhardy Did you find any solution? |
IIUC, the default backend of joblib is the loky package that uses fork on POSIX system. However, Julia is not fork-safe. So, it seems like you need to use the |
@tkf I am not using the |
What |
I am suffering from a segmentation fault 11 error when multithreading using joblib.Parallel to run a small Julia function.
I import a function in Python, modeled after this attempted solution
where the function itself is
Clearing some of the variables seems to make the number of processes I can run increase from something around 10 to 80, but eventually it still segfaults, with error as
The more detailed errors are here
Is there a way to clear the Julia cache as this seems to be the problem? Or import Julia less frequently somehow? I call that import function several hundred times.
I also attempted
but that gives the same error.
The text was updated successfully, but these errors were encountered: