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
wontfix This will not be worked on

Comments

@edwardlavender
Copy link
Owner

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

See also: JuliaInterop/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 JuliaInterop/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. If you don't have administrator privileges, it seems that JULIA_NUM_THREADS is still recognised if you set it in 'User variables for {user}' rather than 'System variables'.

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.

@edwardlavender edwardlavender added wontfix This will not be worked on and removed bug Something isn't working labels Oct 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

1 participant