Skip to content
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

OpenBLAS-0.3.15 fails tests on Broadwell #13106

Open
Chaosit opened this issue Jun 10, 2021 · 2 comments
Open

OpenBLAS-0.3.15 fails tests on Broadwell #13106

Chaosit opened this issue Jun 10, 2021 · 2 comments

Comments

@Chaosit
Copy link

Chaosit commented Jun 10, 2021

I am trying to install OpenBLAS on my workstation with Intel Xeon E5-2687W v4 with GCC 11.1.0 (I have used OpenBLAS-0.3.15-GCC-10.3.0.eb easyconfig as base, just updating the version of GCC) using EasyBuild v4.4.0. However, at the testing stage I am encountering a problem that some of the tests produce completely wrong results:

OMP_NUM_THREADS=2 ./xzcblat3 < zin3
TESTS OF THE COMPLEX*16 LEVEL 3 BLAS

THE FOLLOWING PARAMETER VALUES WILL BE USED:
FOR N 0 1 2 3 5 9 35
FOR ALPHA ( 0.0, 0.0) ( 1.0, 0.0) ( 0.7,-0.9)
FOR BETA ( 0.0, 0.0) ( 1.0, 0.0) ( 1.3,-1.1)

ROUTINES PASS COMPUTATIONAL TESTS IF TEST RATIO IS LESS THAN 16.00

COLUMN-MAJOR AND ROW-MAJOR DATA LAYOUTS ARE TESTED

RELATIVE MACHINE PRECISION IS TAKEN TO BE 2.2E-16

cblas_zgemm PASSED THE TESTS OF ERROR-EXITS

******* FATAL ERROR - COMPUTED RESULT IS LESS THAN HALF ACCURATE *******
EXPECTED RESULT COMPUTED RESULT
1 ( 0.495928E-01, 0.197144 ) ( -0.176908 , -0.293573E-01)
2 ( -0.154221 , -0.169237 ) ( 0.179134 , 0.164118 )
******* cblas_zgemm FAILED ON CALL NUMBER:
8644: cblas_zgemm ( CblasColMajor,CblasConjTrans, CblasNoTrans,
2, 1, 1, ( 1.0, 0.0) , A, 2, B, 2, ( 0.0, 0.0) , C, 3).
******* cblas_zgemm FAILED ON CALL NUMBER:
4537: cblas_zgemm ( CblasRowMajor, CblasNoTrans, CblasNoTrans,
1, 1, 0, ( 0.0, 0.0) , A, 2, B, 1, ( 0.0, 0.0) , C, 2)

I did try tuning the target,however, it seems that OpenBLAS does not support Broadwell explicitly. At the same time choosing Haswell target results in the same error. I just wanted to ask first if this is the right place to come with such a problem or is it better to contact OpenBLAS developers? I would also be grateful if anyone can share some workaround for this issue!

@Chaosit
Copy link
Author

Chaosit commented Jun 15, 2021

I have also tried installing OpenBLAS on a Skylake CPU and got similar result

@Chaosit
Copy link
Author

Chaosit commented Jun 15, 2021

Actually, after some additional testing - it seems that it has something to do with GCC 11.1.0. I have tried using GCC 10.3.1 and it did work fine!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants