File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ function get_plat_tag {
3333 local mb_ml_ver=${MB_ML_VER:- 1}
3434 local mb_ml_libc=${MB_ML_LIBC:- manylinux}
3535 case $plat in
36- i686|x86_64|arm64|universal2|intel|aarch64|s390x|ppc64le) ;;
36+ i686|x86_64|arm64|universal2|intel|aarch64|s390x|ppc64le|loongarch64 ) ;;
3737 * ) echo Did not recognize plat $plat ; return 1 ;;
3838 esac
3939 local uname=${2:- $(uname)}
@@ -148,6 +148,9 @@ function do_build_lib {
148148 local bitness=64
149149 local target=" POWER8"
150150 ;;
151+ Linux-loongarch64)
152+ local target=" GENERIC"
153+ ;;
151154 * ) echo " Strange plat value $plat " ; exit 1 ;;
152155 esac
153156 case $interface64 in
@@ -170,6 +173,12 @@ function do_build_lib {
170173 pushd OpenBLAS
171174 patch_source
172175 echo start building
176+ if [ " $plat " == " loongarch64" ]; then
177+ # https://github.com/OpenMathLib/OpenBLAS/blob/develop/.github/workflows/loongarch64.yml#L65
178+ echo -n > utest/test_dsdot.c
179+ echo " Due to the qemu versions 7.2 causing utest cases to fail,"
180+ echo " the utest dsdot:dsdot_n_1 have been temporarily disabled."
181+ fi
173182 if [ -v dynamic_list ]; then
174183 CFLAGS=" $CFLAGS -fvisibility=protected -Wno-uninitialized" \
175184 make BUFFERSIZE=20 DYNAMIC_ARCH=1 QUIET_MAKE=1 \
You can’t perform that action at this time.
0 commit comments