numeric-rust / numeric

N-dimensional matrix class for Rust
MIT License
60 stars 10 forks source link

Building version 0.4.1 fails with OpenBLAS unable to detect CPU #6

Open felsweg opened 5 years ago

felsweg commented 5 years ago

Building version 0.4.1. of numeric fails with OpenBLAS unable to detect CPU

Error Output is:

Makefile:133: *** OpenBLAS: Detecting CPU failed. Please set TARGET explicitly, e.g. make TARGET=your_cpu_target. Please read README for the detail..  Stop.
thread 'main' panicked at '`"make" "libs" "netlib" "shared" "YES_CBLAS=1" "-j8"` failed: exit code: 2', /home/awaike/projects/awaike/phase-predictor-rust/vendor/openblas-provider-0.1.7/build.rs:57:13

setting TARGET=x86_64 does not seem to work. It seems "openblas-provider" is the source of the problem.

felsweg commented 5 years ago

There seems to be a quick fix, when OpenBLAS is installed manually ( see instructions found at https://github.com/wellposed/rust-OpenBLAS).

Running CARGO_FEATURE_SYSTEM_OPENBLAS=1 cargo build seems to circumvent to aforementioned issue.

HerrMuellerluedenscheid commented 3 years ago

This seems to be resolved in latest version. Dependencies are updated in #8.