Closed go-ski closed 2 years ago
@go-ski I will organize myself a mac for testing. Can you provide the command lines how you installed all prerequisites?
@grisuthedragon I download cmake from https://github.com/Kitware/CMake/releases/download/v3.24.0-rc3/cmake-3.24.0-rc3-macos-universal.dmg and install. For command line access to cmake, I add it to the PATH:
export PATH="/Applications/CMake.app/Contents/bin":"$PATH"
I install OpenBLAS with Homebrew:
brew install openblas
which puts the libraries into: /usr/local/opt/openblas/lib
At this point I download FlexiBLAS and follow installation instructions, which result in my initial post.
@go-ski
I found the reason. The installation of OpenBLAS via brew
is so-called keg-only
, which means that is not linked into the standard locations. Therefore, when installing OpenBLAS a hint is shown. In order to get cmake
finding OpenBLAS you have to set the CMAKE_PREFIX_PATH
variable accordingly:
export CMAKE_PREFIX_PATH=/usr/local/opt/openblas:$CMAKE_PREFIX_PATH
There might also be an issue with gfortran-11 and LAPACK, I am working on that.
This is fixed in v3.2.1
Is there a recommended build process for macOS? I have brew installed cmake and OpenBLAS (no brew recipe for FlexiBLAS), then following the FlexiBLAS README Install, cmake configure fails with:
I am running macOS Monterey on Intel I5. Both vecLib and OpenBLAS are swappable directly under R but I would like to insert FlexiBLAS. I find the R flexiblas package very convenient for dynamic core control on clusters, where I use a hierarchy of parallel components: MPI-fork-OpenBLAS. It would be great to have the same BLAS control in R across laptop platforms to simplify teaching a transition to clusters.