-
Notifications
You must be signed in to change notification settings - Fork 48
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
Unable to set TARGET when building OpenBlas #77
Comments
Hello, in order to confirm that his is a problem with the Rust create, please try to compile OpenBLAS from source as it is described in its repository. |
I'm able to compile OpenBLAS 0.3.14 successfully (this is same machine as listed in OP). $ git clone https://github.com/xianyi/OpenBLAS.git
$ cd OpenBLAS/
$ git checkout v0.3.14
$ make # generates same error as above
getarch_2nd.c: In function ‘main’:
getarch_2nd.c:14:35: error: ‘SGEMM_DEFAULT_UNROLL_M’ undeclared (first use in this function); did you mean ‘SBGEMM_DEFAULT_UNROLL_M’?
14 | printf("SGEMM_UNROLL_M=%d\n", SGEMM_DEFAULT_UNROLL_M);
| ^~~~~~~~~~~~~~~~~~~~~~
| SBGEMM_DEFAULT_UNROLL_M
Makefile:160: *** OpenBLAS: Detecting CPU failed. Please set TARGET explicitly, e.g. make TARGET=your_cpu_target. Please read README for the detail.. Stop.
$ make TARGET=SANDYBRIDGE
make[1]: Leaving directory '/home/ubuntu/OpenBLAS/exports'
OpenBLAS build complete. (BLAS CBLAS LAPACK LAPACKE) This output shows I'm able to build OpenBLAS 0.3.14 successfully, from source, when specifying the TARGET variable. My guess here is For reference here is what version of openblas our project is using: $ cargo tree | grep openblas
│ │ ├── openblas-src v0.10.4
│ │ │ └── openblas-build v0.1.1 |
When https://github.com/blas-lapack-rs/openblas-src/blob/master/openblas-src/build.rs#L170 When not, it is done in However, I don’t see that the https://github.com/blas-lapack-rs/openblas-src/blob/master/openblas-src/build.rs#L95 Similarly to: https://github.com/blas-lapack-rs/openblas-src/blob/master/openblas-src/build.rs#L203 However, it is probably worth checking with the author. @termoshtt, where should |
|
Hi,
I'm running into an issue where I am unable to compile my project (which depends on ndarray, which in turn depends on open-blas v0.10.4) due to the cpu not being detected properly (Intel(R) Xeon(R) Silver 4310 CPU). I have already tried setting the
OPENBLAS_TARGET
environment variable with no success:Is it possible to set the target variable or am I running into a separate build issue?
The text was updated successfully, but these errors were encountered: