-
Notifications
You must be signed in to change notification settings - Fork 110
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
Update macOS instructions in Numo docs #199
Conversation
In jekyll#198, I added support for using [Numo::Linalg](https://github.com/ruby-numo/numo-linalg) as the linear algebra backend for classifier-reborn. At that time, I updated the docs with instructions for installing Numo, but the macOS docs were a little vague because I hadn't tested them myself. Since then, I've been able to verify the instructions on macOS and clarify a few steps. So this commit updates the docs for installing Numo on macOS. The gem installation arguments I'm using come from the [Numo docs](https://github.com/ruby-numo/numo-linalg/blob/master/doc/select-backend.md).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left a few suggestions. Let me know what you think.
docs/index.md
Outdated
* Install the [Numo::NArray](https://ruby-numo.github.io/narray/) and [Numo::Linalg](https://ruby-numo.github.io/linalg/) gems | ||
* `gem install numo-narray numo-linalg` | ||
* macOS: `brew install openblas` | ||
* Install the [Numo::NArray](https://ruby-numo.github.io/narray/) and [Numo::Linalg](https://ruby-numo.github.io/linalg/) gems. If you're using Bundler, add `numo-narray` and `numo-linalg` to your Gemfile. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does the numo-linalg gem pick up the homebrew paths when built from bundler?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, it doesn't. If the gem is already installed correctly (using the notes below), simply adding these to the Gemfile will be fine because Bundler will use the installed Gem. But if installing for the first time, Bundler will need the build args. (As documented here in Bundler.)
If using Bundler, something like the following might be best:
bundle config set --global build.numo-linalg --with-openblas-dir=$(brew --prefix openblas) --with-lapack-lib="$(brew --prefix lapack)/lib"
I'll add a note about this.
Co-authored-by: Matt Rogers <[email protected]>
@mattr- Would you mind taking another look at my updates above when you have a chance? |
Thank you for the ping and sorry for the delay in reviewing! @jekyllbot: merge +docs |
In #198, I added support for using
Numo::Linalg as the linear
algebra backend for classifier-reborn. At that time, I updated the docs
with instructions for installing Numo, but the macOS docs were a little
vague because I hadn't tested them myself. Since then, I've been able to
verify the instructions on macOS and clarify a few steps. So this commit
updates the docs for installing Numo on macOS. The gem installation
arguments I'm using come from the Numo
docs.