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

Set threads on Windows #11

Open
edwardlavender opened this issue Jul 30, 2024 · 1 comment
Open

Set threads on Windows #11

edwardlavender opened this issue Jul 30, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@edwardlavender
Copy link
Owner

On Windows, setting threads via .threads in julia_connect() or via JULIA_NUM_THREADS does not work.

See also: Non-Contradiction/JuliaCall#193

@edwardlavender edwardlavender added the bug Something isn't working label Jul 31, 2024
@edwardlavender
Copy link
Owner Author

edwardlavender commented Jul 31, 2024

See here Non-Contradiction/JuliaCall#193 (comment) for a work around on Windows. Either set JULIA_NUM_THREADS from CMD (as an administrator) and launch R/RStudio from the same CMD session or modify the JULIA_NUM_THREADS environment variable globally.

In R/RStudio, you can then run:

library(patter)
julia_connect()

in the usual way and the Julia process will be started with JULIA_NUM_THREADS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant