LAPACK: Unable to determine CPU type, on Ubuntu and engineering sample CPU.
30 ビュー (過去 30 日間)
古いコメントを表示
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 件のコメント
Heiko Weichelt
2022 年 12 月 16 日
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.
採用された回答
Heiko Weichelt
2022 年 12 月 16 日
編集済み: Heiko Weichelt
2022 年 12 月 16 日
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 件のコメント
Heiko Weichelt
2022 年 12 月 17 日
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.
その他の回答 (0 件)
参考
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!