HaoZeke / OpenBLAS

OpenBLAS is an optimized BLAS library based on GotoBLAS2 1.13 BSD version.
http://www.openblas.net
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

BLD: `utest`, `ctest`, and `test` port #10

Closed HaoZeke closed 3 months ago

HaoZeke commented 3 months ago

Retargeted variant of #6.

HaoZeke commented 3 months ago

OK some of these are currently failing:

``` 39/42 xccblat3_3m OK 0.05s ―――――――――――――――――――――――――――――――――――――――――――― ✀ ―――――――――――――――――――――――――――――――――――――――――――― TESTS OF THE COMPLEX LEVEL 3 BLAS THE FOLLOWING PARAMETER VALUES WILL BE USED: FOR N 0 1 2 3 5 9 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 1.2E-07 cblas_cgemm3 PASSED THE TESTS OF ERROR-EXITS ******* FATAL ERROR - COMPUTED RESULT IS LESS THAN HALF ACCURATE ******* EXPECTED RESULT COMPUTED RESULT 1 ( -0.196221 , -0.598522E-01) ( -0.158874 , -0.225050E-01) ******* cblas_cgemm3m FAILED ON CALL NUMBER: 3496: cblas_cgemm3m( CblasColMajor, CblasNoTrans, CblasTrans, 1, 1, 1, ( 1.0, 0.0) , A, 2, B, 2, ( 0.0, 0.0) , C, 2). ******* cblas_cgemm3m FAILED ON CALL NUMBER: 3403: cblas_cgemm3m( CblasRowMajor, CblasNoTrans, CblasNoTrans, 1, 1, 0, ( 0.0, 0.0) , A, 2, B, 1, ( 0.0, 0.0) , C, 2). ******* FATAL ERROR - TESTS ABANDONED ******* ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― 32/42 xdcblat2 OK 0.14s ―――――――――――――――――――――――――――――――――――――――――――― ✀ ―――――――――――――――――――――――――――――――――――――――――――― TESTS OF THE DOUBLE PRECISION LEVEL 2 BLAS THE FOLLOWING PARAMETER VALUES WILL BE USED: FOR N 0 1 2 3 5 9 63 FOR K 0 1 2 4 FOR INCX AND INCY 1 2 -1 -2 FOR ALPHA 0.0 1.0 0.7 FOR BETA 0.0 1.0 0.9 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.2D-16 cblas_dgemv PASSED THE TESTS OF ERROR-EXITS cblas_dgemv PASSED THE COLUMN-MAJOR COMPUTATIONAL TESTS ( 4324 CALLS) cblas_dgemv PASSED THE ROW-MAJOR COMPUTATIONAL TESTS ( 4324 CALLS) cblas_dgbmv PASSED THE TESTS OF ERROR-EXITS cblas_dgbmv PASSED THE COLUMN-MAJOR COMPUTATIONAL TESTS ( 17284 CALLS) cblas_dgbmv PASSED THE ROW-MAJOR COMPUTATIONAL TESTS ( 17284 CALLS) cblas_dsymv PASSED THE TESTS OF ERROR-EXITS cblas_dsymv PASSED THE COLUMN-MAJOR COMPUTATIONAL TESTS ( 1729 CALLS) cblas_dsymv PASSED THE ROW-MAJOR COMPUTATIONAL TESTS ( 1729 CALLS) cblas_dsbmv PASSED THE TESTS OF ERROR-EXITS cblas_dsbmv PASSED THE COLUMN-MAJOR COMPUTATIONAL TESTS ( 6913 CALLS) cblas_dsbmv PASSED THE ROW-MAJOR COMPUTATIONAL TESTS ( 6913 CALLS) cblas_dspmv PASSED THE TESTS OF ERROR-EXITS cblas_dspmv PASSED THE COLUMN-MAJOR COMPUTATIONAL TESTS ( 1729 CALLS) cblas_dspmv PASSED THE ROW-MAJOR COMPUTATIONAL TESTS ( 1729 CALLS) cblas_dtrmv PASSED THE TESTS OF ERROR-EXITS ******* FATAL ERROR - COMPUTED RESULT IS LESS THAN HALF ACCURATE ******* EXPECTED RESULT COMPUTED RESULT 1 0.00000 -0.317183E+10 2 0.317183 0.317183 ******* cblas_dtrmv FAILED ON CALL NUMBER: 74: cblas_dtrmv ( CblasLower, CblasNoTrans, CblasUnit, 2, A, 3, X, 1) . ******* cblas_dtrmv FAILED ON CALL NUMBER: 2: cblas_dtrmv ( CblasUpper, CblasNoTrans, CblasUnit, 1, A, 2, X, 1) . ******* FATAL ERROR - TESTS ABANDONED ******* ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― 37/42 xccblat3 OK 0.09s ―――――――――――――――――――――――――――――――――――――――――――― ✀ ―――――――――――――――――――――――――――――――――――――――――――― TESTS OF THE COMPLEX LEVEL 3 BLAS THE FOLLOWING PARAMETER VALUES WILL BE USED: FOR N 0 1 2 3 5 9 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 1.2E-07 cblas_cgemm PASSED THE TESTS OF ERROR-EXITS cblas_cgemm PASSED THE COLUMN-MAJOR COMPUTATIONAL TESTS ( 17496 CALLS) cblas_cgemm PASSED THE ROW-MAJOR COMPUTATIONAL TESTS ( 17496 CALLS) cblas_chemm PASSED THE TESTS OF ERROR-EXITS ******* FATAL ERROR - COMPUTED RESULT IS LESS THAN HALF ACCURATE ******* EXPECTED RESULT COMPUTED RESULT 1 ( 0.929640E-02, -0.178074E-01) ( 0.175824E+10, -0.709291E+10) THESE ARE THE RESULTS FOR COLUMN 1 ******* cblas_chemm FAILED ON CALL NUMBER: 319: cblas_chemm ( CblasColMajor, CblasRight, CblasLower, 1, 2, ( 1.0, 0.0), A, 3, B, 2, ( 0.0, 0.0), C, 2). ******* cblas_chemm FAILED ON CALL NUMBER: 253: cblas_chemm ( CblasRowMajor, CblasLeft, CblasUpper, 1, 1, ( 0.0, 0.0), A, 2, B, 2, ( 0.0, 0.0), C, 2). ******* FATAL ERROR - TESTS ABANDONED ******* ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― 41/42 openblas_utest_tests OK 0.02s ―――――――――――――――――――――――――――――――――――――――――――― ✀ ―――――――――――――――――――――――――――――――――――――――――――― RESULTS: 0 tests (0 ok, 0 failed, 0 skipped) ran in 0 ms ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― 40/42 xzcblat3_3m OK 0.03s ―――――――――――――――――――――――――――――――――――――――――――― ✀ ―――――――――――――――――――――――――――――――――――――――――――― 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_zgemm3 PASSED THE TESTS OF ERROR-EXITS ******* FATAL ERROR - COMPUTED RESULT IS LESS THAN HALF ACCURATE ******* EXPECTED RESULT COMPUTED RESULT 1 ( 0.156746E-01, -0.124203 ) ( 0.129429 , -0.104491E-01) ******* cblas_zgemm3m FAILED ON CALL NUMBER: 4630: cblas_zgemm3m( CblasColMajor, CblasNoTrans, CblasTrans, 1, 1, 1, ( 1.0, 0.0) , A, 2, B, 2, ( 0.0, 0.0) , C, 2). ******* cblas_zgemm3m FAILED ON CALL NUMBER: 4537: cblas_zgemm3m( CblasRowMajor, CblasNoTrans, CblasNoTrans, 1, 1, 0, ( 0.0, 0.0) , A, 2, B, 1, ( 0.0, 0.0) , C, 2). ******* FATAL ERROR - TESTS ABANDONED ******* ******* FATAL ERROR - COMPUTED RESULT IS LESS THAN HALF ACCURATE ******* EXPECTED RESULT COMPUTED RESULT 1 0.00000 -0.317183E+10 2 0.317183 0.317183 ******* cblas_strmv FAILED ON CALL NUMBER: 74: cblas_strmv ( CblasLower, CblasNoTrans, CblasUnit, 2, A, 3, X, 1) . ******* cblas_strmv FAILED ON CALL NUMBER: 2: cblas_strmv ( CblasUpper, CblasNoTrans, CblasUnit, 1, A, 2, X, 1) . ******* FATAL ERROR - TESTS ABANDONED ******* ******* FATAL ERROR - COMPUTED RESULT IS LESS THAN HALF ACCURATE ******* EXPECTED RESULT COMPUTED RESULT 1 ( -0.439645E-01, -0.116276 ) ( 0.442557E+10, -0.167333E+10) ******* cblas_zhemv FAILED ON CALL NUMBER: 5: cblas_zhemv ( CblasUpper, 1,( 1.0, 0.0), A, 2, X, 1,( 0.0, 0.0), Y, 1) . ******* cblas_zhemv FAILED ON CALL NUMBER: 2: cblas_zhemv ( CblasUpper, 1,( 0.0, 0.0), A, 2, X, 1,( 0.0, 0.0), Y, 1) . ******* FATAL ERROR - TESTS ABANDONED ******* ******* FATAL ERROR - COMPUTED RESULT IS LESS THAN HALF ACCURATE ******* EXPECTED RESULT COMPUTED RESULT 1 -0.118231 0.544111E-02 THESE ARE THE RESULTS FOR COLUMN 1 ******* cblas_dsymm FAILED ON CALL NUMBER: 202: cblas_dsymm ( CblasColMajor, CblasRight, CblasUpper, 1, 9, 1.0, A, 10, B, 2, 0.0, C, 2). ******* cblas_dsymm FAILED ON CALL NUMBER: 1: cblas_dsymm ( CblasRowMajor, CblasLeft, CblasUpper, 1, 1, 0.0, A, 2, B, 2, 0.0, C, 2). ******* FATAL ERROR - TESTS ABANDONED ******* ******* FATAL ERROR - COMPUTED RESULT IS LESS THAN HALF ACCURATE ******* EXPECTED RESULT COMPUTED RESULT 1 ( 0.110374 , 0.190536 ) ( -0.383616E+10, 0.329670E+10) THESE ARE THE RESULTS FOR COLUMN 1 ******* cblas_zhemm FAILED ON CALL NUMBER: 355: cblas_zhemm ( CblasColMajor, CblasRight, CblasLower, 1, 2, ( 1.0, 0.0), A, 3, B, 2, ( 0.0, 0.0), C, 2). ******* cblas_zhemm FAILED ON CALL NUMBER: 289: cblas_zhemm ( CblasRowMajor, CblasLeft, CblasUpper, 1, 1, ( 0.0, 0.0), A, 2, B, 2, ( 0.0, 0.0), C, 2). ******* FATAL ERROR - TESTS ABANDONED ******* ******* FATAL ERROR - COMPUTED RESULT IS LESS THAN HALF ACCURATE ******* EXPECTED RESULT COMPUTED RESULT 1 ( -0.439645E-01, -0.116276 ) ( 0.442557E+10, -0.167333E+10) ******* cblas_chpmv FAILED ON CALL NUMBER: 5: cblas_chpmv ( CblasUpper, 1,( 1.0, 0.0), AP, X, 1,( 0.0, 0.0), Y, 1) . ******* cblas_chpmv FAILED ON CALL NUMBER: 2: cblas_chpmv ( CblasUpper, 1,( 0.0, 0.0), AP, X, 1,( 0.0, 0.0), Y, 1) . ******* FATAL ERROR - TESTS ABANDONED ******* ```

Basically:

Some of these symbols are not built, so it isn't so surprising, however, the meson test suite needs to fail correctly on these, currently this gives:

Ok:                 42  
Expected Fail:      0   
Fail:               0   
Unexpected Pass:    0   
Skipped:            0   
Timeout:            0   

This is also noted in https://github.com/HaoZeke/OpenBLAS/pull/9

mtsokol commented 3 months ago

@HaoZeke In the last commit https://github.com/HaoZeke/OpenBLAS/pull/10/commits/6643298457b317e1188c484e549b66a30e1aa7a1 I fixed all errors coming from ctest suite.

HaoZeke commented 3 months ago

CI is happy now, also passes locally, @mtsokol feel free to merge this if the newer changes make sense.