Skip to content

Commit

Permalink
add note about openblas bug with numpy on reticulate (#79)
Browse files Browse the repository at this point in the history
  • Loading branch information
eitsupi authored Nov 6, 2022
1 parent 854a16a commit a6eb382
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions images/versioned/r-ver.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,17 @@ But it is possible to switch for [the reference BLAS implementation](https://www
[^blas]: [R Installation and Administration A.3.1 BLAS](https://cran.r-project.org/doc/manuals/r-release/R-admin.html#BLAS)
[^shared-blas]: [R Installation and Administration A.3.1.4 Shared BLAS](https://cran.r-project.org/doc/manuals/r-release/R-admin.html#Shared-BLAS)

:::{.callout-important}

Calling Python `numpy` by the `reticulate` package on R using OpenBLAS may cause a segfault.
This causes an error when trying to use Python packages like `matplotlib` or `scikit-learn`.
([rocker-org/rocker-versioned2#471](https://github.com/rocker-org/rocker-versioned2/issues/471),
[numpy/numpy#21643](https://github.com/numpy/numpy/issues/21643))

If this error occurs, change the BLAS used by R to libblas as described below.

:::

#### Checking which BLAS is in use

You can see the current BLAS configuration for R by using `sessionInfo()` function in R console.
Expand Down

0 comments on commit a6eb382

Please sign in to comment.