Skip to content
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

Merged
merged 3 commits into from
Aug 30, 2022
Merged

Conversation

mkasberg
Copy link
Contributor

@mkasberg mkasberg commented Aug 7, 2022

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
.

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).
Copy link
Member

@mattr- mattr- left a 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.
Copy link
Member

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?

Copy link
Contributor Author

@mkasberg mkasberg Aug 8, 2022

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.

docs/index.md Outdated Show resolved Hide resolved
@mkasberg mkasberg requested a review from mattr- August 11, 2022 23:34
@mkasberg
Copy link
Contributor Author

@mattr- Would you mind taking another look at my updates above when you have a chance?

@mattr-
Copy link
Member

mattr- commented Aug 30, 2022

Thank you for the ping and sorry for the delay in reviewing!

@jekyllbot: merge +docs

@jekyllbot jekyllbot merged commit f1eb0f8 into jekyll:master Aug 30, 2022
jekyllbot added a commit that referenced this pull request Aug 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants