Skip to content
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

Parallel causing issues on M1 macbook #1406

Closed
ggydush opened this issue Mar 7, 2023 · 2 comments
Closed

Parallel causing issues on M1 macbook #1406

ggydush opened this issue Mar 7, 2023 · 2 comments

Comments

@ggydush
Copy link

ggydush commented Mar 7, 2023

I've been using Joblib for a while now and it's been incredibly useful! I've recently switched to an M1 Macbook and have found some issues and wondering if anyone has seen.

Running the following with Loky backend (default) results in hanging processes, and eventually uses all available RAM on my machine, requiring a force reboot:

from math import sqrt

from joblib import Parallel, delayed

out = Parallel(n_jobs=2)(delayed(sqrt)(i**2) for i in range(10))
print(out)

I have found that switching to backend="multiprocessing", and moving all Parallel calls to an if __name__ == "__main__" block resolves, but was wondering if anyone has seen this! These problems seem exclusive to the M1 Macbooks and I cannot reproduce on Linux.

from math import sqrt

from joblib import Parallel, delayed

if __name__ == "__main__":
    out = Parallel(n_jobs=2, backend="multiprocessing")(
        delayed(sqrt)(i**2) for i in range(10)
    )
    print(out)
@ogrisel
Copy link
Contributor

ogrisel commented Apr 18, 2023

I also have a mac M1 and I cannot reproduce this problem. Could you please tell us which version of joblib you are running?

@lesteve
Copy link
Member

lesteve commented Feb 19, 2025

Closing because lack of response, feel free to reopen with more information

@lesteve lesteve closed this as not planned Won't fix, can't repro, duplicate, stale Feb 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants