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

Enable parallel processing in Windows #58

Open
choisant opened this issue Aug 27, 2024 · 2 comments
Open

Enable parallel processing in Windows #58

choisant opened this issue Aug 27, 2024 · 2 comments
Assignees

Comments

@choisant
Copy link
Collaborator

Test and in the case that it does not work, fix parallel processing when running in Windows.

@choisant choisant self-assigned this Aug 27, 2024
@pglpm
Copy link
Owner

pglpm commented Aug 29, 2024

It works (used it myself, and also Simen has used it I think).

Possibly the only point to check is that Windows uses a different protocol to open parallel cores. Possibly one has to add the argument type="FORK" when creating the clusters in Windows. But it looks like the newer versions of doParallel choose the right type automatically. Otherwise one can add a simple if-condition like

if(.Platform$OS.type == "windows") {...}

Let's check.

@choisant
Copy link
Collaborator Author

Great! Then we can choose to either state in the description that inferno requires at least version x.x of doParallel, or we add the code to support that case.

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

2 participants