Feature request: Support switching to OpenBLAS on Windows
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 48/100
Research direction
Read the existing rig system blas status|set implementation for macOS and the related issue #212 to understand current behavior. Then investigate how Windows R installations store the reference BLAS/LAPACK DLLs and how OpenBLAS releases provide replacements. Done means the commands can set OpenBLAS for all or one R version, select a release, restore the original DLLs, and report the active BLAS.
Written by the indexing model from the issue text.
Description
This feature request is related to https://github.com/r-lib/rig/issues/212, which was resolved only for MacOS. I'm happy to work on this feature request as best I can. The context for why I'm making this request is I want to make it easier for Windows users to install OpenBLAS, and I'm increasingly annoyed at hearing about "Python being faster than R" when it's just because NumPy uses OpenBLAS on Windows by default.
Summary
rig system blas status|set currently works only on macOS, where it switches R between the reference BLAS and Apple's Accelerate. On Windows the same commands are hidden and do nothing.
My request is to provide Windows support for switching R's bundled reference BLAS/LAPACK DLLs for OpenBLAS.
Proposed Implementation
OpenBLAS releases include prebuilt DLLs for Windows x64. rig could download that DLL and overwrite R's Rblas.dll and Rlapack.dll; I think that's the way most folks on Windows install OpenBLAS for R, as the alternative is compiling R from source. This GitHub repo is often referred to for how to do that.
The actual user interface in 'rig' could look like the following, building on what is already available for macOS.
rig system blas set openblas # set for all installed R versions, latest OpenBLAS
rig system blas set openblas 4.5.2 # set for just one R version
rig system blas set openblas --openblas-version 0.3.33 # Specify a specific OpenBLAS version instead of just the latest
rig system blas set reference # restore R's original DLLs
rig system blas status # check which which BLAS is in use
Installing from the OpenBLAS GitHub releases seems to be the best option for obtaining OpenBLAS DLLs on Windows. I looked into using vcpkg, but I think most R users on Windows probably would not have that available.
- Dominant language
- Rust
- Stars
- 1k
- Forks
- 41
- Avg merge
- 9h 33m
- Merged PRs (30d)
- 17
Getting set up
- Ships a Dockerfile or Docker Compose file
- No pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from r-lib/rig
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
bug documentation
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Maintainers usually reply within 1 day
-
.Renviron activation in rig proj: handling project secrets and Posit Assistant restrictionsPossibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 5/5 Over a week Newbie friendliness 15/100
Maintainers usually reply within 1 day
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
Maintainers usually reply within 1 day
-
Difficulty 3/5 1-2 days Newbie friendliness 52/100
Maintainers usually reply within 1 day
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 92/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 80/100
speakeasy-api/speakeasy#2159 ·
Maintainers usually reply within 1 day
-
documentation target:powerpoint
Difficulty 1/5 Under an hour Newbie friendliness 76/100
tomast1337/PdfLapas#602 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
Maintainers usually reply within 1 day