OpenBLAS: error in tests building for riscv
I am trying to build OpenBLAS 0.3.15 in a risc-v board called BeagleV, the processor is a RISC-V U74 Dual core.
The command line I used is the following:
$ make CC=gcc FC=gfortran BINARY=64 COMMON_OPT="-O3 -fopenmp" FCOMMON_OPT="-O3 -fopenmp -frecursive" USE_OPENMP=1 TARGET=RISCV64_GENERIC PREFIX=... all
I get the following error when the tests are running:
make -j 2 -C utest all
make[1]: Entering directory '/home/kpeiro/ss/OpenBLAS-0.3.15/utest'
./openblas_utest
TEST 1/35 max:smax_zero [OK]
TEST 2/35 max:dmax_positive [OK]
TEST 3/35 max:smax_negative [OK]
TEST 4/35 min:smin_zero [OK]
TEST 5/35 min:dmin_positive [OK]
TEST 6/35 min:smin_negative [OK]
TEST 7/35 amax:damax [OK]
TEST 8/35 amax:samax [OK]
TEST 9/35 ismax:negative_step_2 [OK]
TEST 10/35 ismax:positive_step_2 [OK]
TEST 11/35 ismin:negative_step_2 [FAIL]
ERR: test_ismin.c:63 expected 9, got 1
TEST 12/35 ismin:positive_step_2 [FAIL]
ERR: test_ismin.c:50 expected 9, got 50
TEST 13/35 drotmg:drotmg_D1_big_D2_big_flag_zero [OK]
TEST 14/35 drotmg:rotmg_D1eqD2_X1eqX2 [OK]
TEST 15/35 drotmg:rotmg_issue1452 [OK]
TEST 16/35 drotmg:rotmg [OK]
TEST 17/35 axpy:caxpy_inc_0 [OK]
TEST 18/35 axpy:saxpy_inc_0 [OK]
TEST 19/35 axpy:zaxpy_inc_0 [OK]
TEST 20/35 axpy:daxpy_inc_0 [OK]
TEST 21/35 zdotu:zdotu_offset_1 [OK]
TEST 22/35 zdotu:zdotu_n_1 [OK]
TEST 23/35 dsdot:dsdot_n_1 [FAIL]
ERR: test_dsdot.c:47 expected -2.393e-03, got -2.393e-03 (diff -1.035e-10, tol 1.000e-13)
TEST 24/35 swap:cswap_inc_0 [OK]
TEST 25/35 swap:sswap_inc_0 [OK]
TEST 26/35 swap:zswap_inc_0 [OK]
TEST 27/35 swap:dswap_inc_0 [OK]
TEST 28/35 rot:csrot_inc_0 [OK]
TEST 29/35 rot:srot_inc_0 [OK]
TEST 30/35 rot:zdrot_inc_0 [OK]
TEST 31/35 rot:drot_inc_0 [OK]
TEST 32/35 potrf:smoketest_trivial [OK]
TEST 33/35 potrf:bug_695 [OK]
TEST 34/35 kernel_regress:skx_avx [OK]
TEST 35/35 fork:safety_after_fork_in_parent [OK]
RESULTS: 35 tests (32 ok, 3 failed, 0 skipped) ran in 291 ms
make[1]: *** [Makefile:52: run_test] Error 3
make[1]: Leaving directory '/home/kpeiro/ss/OpenBLAS-0.3.15/utest'
make: *** [Makefile:147: tests] Error 2
Since I get these errors, the file libopenblas_riscv64_genericp-r0.3.15.so is not generated.
I have also tried to compile with a SiFive U54 processor, getting the same error.
Am I doing something wrong? Could I please get any help?
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 30 (9 by maintainers)
Oh no, sorry - I was comparing current develop branch, where exactly these problems have already been fixed by #3259 - only a month ago, but I have been very busy lately and did not give riscv much attention until two weeks ago. Sorry for bothering you with pointless exercises, current develop branch or upcoming 0.3.16 should build just fine as RISCV64_GENERIC