5151 - name : Install APT deps
5252 run : |
5353 sudo apt-get update && \
54- sudo apt-get install autoconf automake autotools-dev ninja-build make ccache qemu-user-static \
54+ sudo apt-get install autoconf automake autotools-dev ninja-build make ccache \
5555 gcc-14-loongarch64-linux-gnu g++-14-loongarch64-linux-gnu gfortran-14-loongarch64-linux-gnu
5656
5757 - name : Compilation cache
@@ -70,11 +70,18 @@ jobs:
7070 echo "compression = true" >> ~/.ccache/ccache.conf
7171 ccache -s
7272
73- - name : Disable utest dsdot:dsdot_n_1
73+ - name : Install QEMU 10.2.1
7474 run : |
75- echo -n > utest/test_dsdot.c
76- echo "Due to the current version of qemu causing utest cases to fail,"
77- echo "the utest dsdot:dsdot_n_1 have been temporarily disabled."
75+ qemu_deb="${RUNNER_TEMP}/qemu-user_10.2.1+ds-1ubuntu3_amd64.deb"
76+ qemu_root="${RUNNER_TEMP}/qemu-user-10.2.1"
77+ wget --output-document="${qemu_deb}" \
78+ https://archive.ubuntu.com/ubuntu/pool/universe/q/qemu/qemu-user_10.2.1+ds-1ubuntu3_amd64.deb
79+ echo "e6bdaac070232a44b8657cad84ac0853d84b7167b55af82370af040291f55bd8 ${qemu_deb}" \
80+ | sha256sum --check -
81+ dpkg-deb --extract "${qemu_deb}" "${qemu_root}"
82+ sudo install -m 0755 "${qemu_root}/usr/bin/qemu-loongarch64" \
83+ /usr/local/bin/qemu-loongarch64-static
84+ qemu-loongarch64-static --version
7885
7986 - name : Build OpenBLAS
8087 run : |
8390
8491 - name : Test
8592 run : |
86- sudo wget https://gist.github.com/martin-frbg/01de086ee9955966799821db0a4fb1db/raw/4fd13657b44eada4cf8b4a51e43636b9d7b0f42f/qemu-loongarch64 -P /usr/bin -o qemu-loongarch64-static
8793 qemu-loongarch64-static ./utest/openblas_utest
8894 qemu-loongarch64-static ./utest/openblas_utest_ext
8995 OPENBLAS_NUM_THREADS=2 qemu-loongarch64-static ./ctest/xscblat1
0 commit comments