Skip to content

Instantly share code, notes, and snippets.

@sonots
Last active May 11, 2020 07:46
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sonots/6fadc6cbbb170b9c4a0c9396c91a88e1 to your computer and use it in GitHub Desktop.
Save sonots/6fadc6cbbb170b9c4a0c9396c91a88e1 to your computer and use it in GitHub Desktop.
$ brew install openblas
==> Caveats
This formula is keg-only, which means it was not symlinked into /usr/local,
because macOS provides BLAS and LAPACK in the Accelerate framework.

For compilers to find this software you may need to set:
    LDFLAGS:  -L/usr/local/opt/openblas/lib
    CPPFLAGS: -I/usr/local/opt/openblas/include
For pkg-config to find this software you may need to set:
    PKG_CONFIG_PATH: /usr/local/opt/openblas/lib/pkgconfig
$ gem install numo-linalg -- --with-openblas-dir=/usr/local/opt/openblas
require "numo/linalg/use/openblas"
@sonots
Copy link
Author

sonots commented Apr 16, 2019

Ubuntu

sudo apt install libopenblas-dev

$ git clone https://github.com/ruby-numo/numo-narray

$ export LDFLAGS="-L/usr/lib/x86_64-linux-gnu $LDFLAGS"
$ export CPPFLAGS="-I/usr/include/x86_64-linux-gnu $CPPFLAGS"

$ gem install numo-linalg -- --with-narray-include=$PWD/numo-narray/ext/numo/narray

@sonots
Copy link
Author

sonots commented Apr 16, 2019

How can I install with bundler??

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment