-
Notifications
You must be signed in to change notification settings - Fork 409
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
temp_folder and mmap_mode parameters in Parallel #1373
Comments
No they have different purpose.
Instead I would advise to either:
|
Yes it is and is being fixed in: #1392. |
I encountered an error as I increased the number or rows in my training set and have isolated the issue down to the triggering of the automated memory mapping in the job lib Parallel class. I think the issue is caused by the write permissions on the folder where Parallel is looking.
I can see from the documentation (https://joblib.readthedocs.io/en/latest/generated/joblib.Parallel.html) that setting JOBLIB_TEMP_FOLDER as an environment variable (I am using JOBLIB_TEMP_FOLDER=/tmp) is one way to specify where to share memory with worker processes. However it seems to not be sufficient to just set this environment variable. I have also tried specifying directly the temp_folder="/tmp" in the Parallel class instantiation, but that gives the same error.
However, what does seem to work is to specify both the temp_folder and mmap_mode options, but only with mmap_mode set to "r+" or "w".
THIS DOES NOT WORK
Parallel(n_jobs=-1, temp_folder="/tmp")(processes)
THIS DOES WORK
Parallel(n_jobs=-1, temp_folder="/tmp", mmap_mode="r+")(processes)
Questions:
Original value error output
The text was updated successfully, but these errors were encountered: