-
Notifications
You must be signed in to change notification settings - Fork 84
Use lapacke library, drop linking to LAPACKE implementation #95
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
Conversation
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.
Review from typot
README.md
Outdated
@@ -10,23 +10,38 @@ Dependencies | |||
------------- | |||
|
|||
- [bluss/rust-ndarray](https://github.com/bluss/rust-ndarray) | |||
- [stainless-steel/lapack](https://github.com/stainless-steel/lapack) | |||
- [stainless-steel/lapacke](https://github.com/stainless-steel/lapacke) |
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.
"stainless-steel/lapacke" at 13 is typo?
- stainless-steel/lapacke](https://githubcom/stainless-steel/lapacke)
- painlessness-steel/lapacke](https://githubcom/stainless-steel/lapacke)
- taillessness-steel/lapacke](https://githubcom/stainless-steel/lapacke)
- rainless-steel/lapacke](https://githubcom/stainless-steel/lapacke)
- painless-steel/lapacke](https://githubcom/stainless-steel/lapacke)
README.md
Outdated
@@ -10,23 +10,38 @@ Dependencies | |||
------------- | |||
|
|||
- [bluss/rust-ndarray](https://github.com/bluss/rust-ndarray) | |||
- [stainless-steel/lapack](https://github.com/stainless-steel/lapack) | |||
- [stainless-steel/lapacke](https://github.com/stainless-steel/lapacke) |
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.
"-" at 13 is typo?
- e
- s
- i
- a
- n
|
||
and more (See Cargo.toml). | ||
|
||
Feature flags | ||
-------------- | ||
Choosing LAPACKE implementation |
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.
"LAPACKE" at 17 is typo?
- LAPLACE
- LACKEY
- LACKER
- PLACKET
- FLAPJACK
Feature flags | ||
-------------- | ||
Choosing LAPACKE implementation | ||
-------------------------------- |
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.
"--------------------------------" at 18 is typo?
Choosing LAPACKE implementation | ||
-------------------------------- | ||
|
||
For the sake of linking flexibility, you must provide LAPACKE implementation (as an `extern crate`) yourself. |
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.
"LAPACKE" at 20 is typo?
- LAPLACE
- LACKEY
- LACKER
- PLACKET
- FLAPJACK
`main.rs`: | ||
```rust | ||
extern crate ndarray; | ||
extern crate ndarray_linalg; |
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.
"ndarray_linalg;" at 42 is typo?
- supernaturalness
- unnaturalness
```rust | ||
extern crate ndarray; | ||
extern crate ndarray_linalg; | ||
extern crate openblas_src; // or another backend of your choice |
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.
"openblas_src;" at 43 is typo?
- impregnableness
- exceptionable
```rust | ||
extern crate ndarray; | ||
extern crate ndarray_linalg; | ||
extern crate openblas_src; // or another backend of your choice |
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.
"//" at 43 is typo?
```rust | ||
extern crate ndarray; | ||
extern crate ndarray_linalg; | ||
extern crate openblas_src; // or another backend of your choice |
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.
"backend" at 43 is typo?
- backed
- back end
- back-end
- backhand
- bracken
extern crate ndarray; | ||
extern crate ndarray_linalg; | ||
extern crate openblas_src; // or another backend of your choice | ||
``` |
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.
"```" at 44 is typo?
CI failed, investigating |
7006201
to
83715b9
Compare
CI green, ready to merge I think. |
Thanks PR, and sorry for later replay at #94 Your rust-math/intel-mkl-src#10 I intend to keep feature flags for easy testing like ndarray/Cargo.toml with no-link default feature. Then, users of this crate has two way to use backend:
This will be both fully-customizable and easy-usable. In this way, we do not need to create separate testing crate like you created BTW, do you know how to hide typot comment? It's too long page (´・ω・`) |
Also bumped version to 0.8
83715b9
to
2dcb205
Compare
OK, I've updated this PR according to your considerations. |
Thanks your contribute. I merged with several fix. |
Adapt for changes in the upstream crate (was
lapack
, now C wrappers are inlapacke
) and do not link to an LAPACKE implementation in this library. Linking to an LAPACKE implementation now starts to be user's responsibility and allows for more flexibility than with Cargo features, for example, selecting different backend for different OS.Relevant
lapack
commit: blas-lapack-rs/lapack@5516490Also includes minor changes from #94.