LAPACK: Unable to determine CPU type, on Ubuntu and engineering sample CPU.
30 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Hello everyone,
I am running MATLAB 2022b on Ubuntu 22.04. The CPUs used are Intel xeon 6148, engineering samples (which means these CPUs are just for test and not for sale, but they should be very close to the final official product). I found that this computer works perfectly on MATLAB 2020b and all other softwares, but runs into error on 2022b. The errors codes are as follows.
Input:
eig([1,0;0,1])
I got the following errors:
LAPACK: Unable to determine CPU type
Error using eig
LAPACK loading error:
No valid linear algebra library found for this architecture. lapack.spec is defective or the used architecture is not supported by MATLAB on this machine.
I suspect this is because I am using unofficial CPUs (engineering samples), but they works well on MATLAB 2020b. I wonder if it is possible to solve this problem and how. Thanks in advance!
Sincerely,
Chin Kung
2 Commenti
Heiko Weichelt
il 16 Dic 2022
Before using the fix I posted, could you please set the ENVs
BLAS_VERBOSITY=1
LAPACK_VERBOSITY=1
and report back the output you see, when running the same steps as in your original post.
Thanks.
Risposta accettata
Heiko Weichelt
il 16 Dic 2022
Modificato: Heiko Weichelt
il 16 Dic 2022
Please try to set the following ENVs before starting MATLAB:
BLAS_VERSION=mkl.so
LAPACK_VERSION=mkl.so
The mechanism to load BLAS/LAPACK, which uses MKL by default on x86_64, probably can't recognize this processor, and hence, errors out. We had to modify this behavior recently as customers experience weird issues for unsupported architectures.
Using the ENVs above forces MATLAB to load MKL without further checks.
2 Commenti
Heiko Weichelt
il 17 Dic 2022
Great. FYI, this is not error message you're seeing but a debug output. In earlier release they were only shown if you set the *_VERBOSITY ENVs but since 22b, we always show it if non-default BLAS or LAPACK libs are selected such that the user gets notified ENVs are used.
Più risposte (0)
Vedere anche
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!