I tested cmake compilation on Loongarch64 with the setting INTERFACE64=1. In both loongnix and AOSC operating system most tests in ctest failed. See below.
cmake compilation on current development version of OpenBLAS:
I next tried CC=gcc FC=gfortran INTERFACE64=1 make and I met no failure. So this should be cmake issue. I checked the code in cmake/fc.cmake from line 62-88:
There is support to INTERFACE64 on other architectures such as RISCV64 and ARM64, but none on loongarch64. After adding these 3 lines under the line 69 in fc.cmake:
if (INTERFACE64)
set(FCOMMON_OPT "${FCOMMON_OPT} -fdefault-integer-8")
endif ()
The failure in ctest disappears. The new ctest result from cmake compilation is:
Hello,
I tested cmake compilation on Loongarch64 with the setting INTERFACE64=1. In both loongnix and AOSC operating system most tests in ctest failed. See below.
cmake compilation on current development version of OpenBLAS:
Loongnix system details:
ctest results:
AOSC system details:
ctest results:
Solution:
I next tried
CC=gcc FC=gfortran INTERFACE64=1 make
and I met no failure. So this should be cmake issue. I checked the code in cmake/fc.cmake from line 62-88:https://github.com/OpenMathLib/OpenBLAS/blob/5015548d18e5f6d9d2185d1a3bd54e7252d3278f/cmake/fc.cmake#L62-L88
There is support to INTERFACE64 on other architectures such as RISCV64 and ARM64, but none on loongarch64. After adding these 3 lines under the line 69 in fc.cmake:
The failure in ctest disappears. The new ctest result from cmake compilation is: