@@ -34,18 +34,30 @@ jobs:
34
34
35
35
- name : Install APT deps
36
36
run : |
37
- sudo add-apt-repository ppa:savoury1/virtualisation
38
37
sudo apt-get update
39
- sudo apt-get install autoconf automake autotools-dev ninja-build make ccache \
40
- qemu-user-static
38
+ sudo apt-get install autoconf automake autotools-dev ninja-build make ccache
41
39
42
40
- name : Download and install loongarch64-toolchain
43
41
run : |
44
- wget http ://ftp.loongnix.cn/toolchain/llvm/llvm8 /clang+llvm_8.0.1-6_amd64-linux-gnu_debian-10.tar.gz
45
- wget http ://ftp.loongnix.cn/toolchain/gcc/release/loongarch/gcc8 /loongson-gnu-toolchain-8.3-x86_64-loongarch64-linux-gnu-rc1.3.tar.xz
42
+ wget https ://github.com/XiWeiGu/loongarch64_toolchain/releases/download/V0.1 /clang+llvm_8.0.1-6_amd64-linux-gnu_debian-10.tar.gz
43
+ wget https ://github.com/XiWeiGu/loongarch64_toolchain/releases/download/V0.1 /loongson-gnu-toolchain-8.3-x86_64-loongarch64-linux-gnu-rc1.3.tar.xz
46
44
tar -xf clang+llvm_8.0.1-6_amd64-linux-gnu_debian-10.tar.gz -C /opt
47
45
tar -xf loongson-gnu-toolchain-8.3-x86_64-loongarch64-linux-gnu-rc1.3.tar.xz -C /opt
48
46
47
+ - name : Checkout qemu
48
+ uses : actions/checkout@v3
49
+ with :
50
+ repository : qemu/qemu
51
+ path : qemu
52
+ ref : master
53
+
54
+ - name : Install qemu
55
+ run : |
56
+ cd qemu
57
+ ./configure --prefix=$GITHUB_WORKSPACE/qemu-install --target-list=loongarch64-linux-user --disable-system --static
58
+ make -j$(nproc)
59
+ make install
60
+
49
61
- name : Set env
50
62
run : |
51
63
echo "PATH=$GITHUB_WORKSPACE:/opt/clang+llvm_8.0.1-6_amd64-linux-gnu_debian-10/bin:/opt/loongson-gnu-toolchain-8.3-x86_64-loongarch64-linux-gnu-rc1.3/bin:$PATH" >> $GITHUB_ENV
@@ -77,46 +89,47 @@ jobs:
77
89
78
90
- name : Test
79
91
run : |
80
- qemu-loongarch64-static ./utest/openblas_utest
81
- qemu-loongarch64-static ./utest/openblas_utest_ext
82
- OPENBLAS_NUM_THREADS=2 qemu-loongarch64-static ./ctest/xscblat1
83
- OPENBLAS_NUM_THREADS=2 qemu-loongarch64-static ./ctest/xdcblat1
84
- OPENBLAS_NUM_THREADS=2 qemu-loongarch64-static ./ctest/xccblat1
85
- OPENBLAS_NUM_THREADS=2 qemu-loongarch64-static ./ctest/xzcblat1
86
- OPENBLAS_NUM_THREADS=2 qemu-loongarch64-static ./ctest/xscblat2 < ./ctest/sin2
87
- OPENBLAS_NUM_THREADS=2 qemu-loongarch64-static ./ctest/xdcblat2 < ./ctest/din2
88
- OPENBLAS_NUM_THREADS=2 qemu-loongarch64-static ./ctest/xccblat2 < ./ctest/cin2
89
- OPENBLAS_NUM_THREADS=2 qemu-loongarch64-static ./ctest/xzcblat2 < ./ctest/zin2
90
- OPENBLAS_NUM_THREADS=2 qemu-loongarch64-static ./ctest/xscblat3 < ./ctest/sin3
91
- OPENBLAS_NUM_THREADS=2 qemu-loongarch64-static ./ctest/xdcblat3 < ./ctest/din3
92
- OPENBLAS_NUM_THREADS=2 qemu-loongarch64-static ./ctest/xccblat3 < ./ctest/cin3
93
- OPENBLAS_NUM_THREADS=2 qemu-loongarch64-static ./ctest/xzcblat3 < ./ctest/zin3
94
- OPENBLAS_NUM_THREADS=1 OMP_NUM_THREADS=1 qemu-loongarch64-static ./test/sblat1
95
- OPENBLAS_NUM_THREADS=1 OMP_NUM_THREADS=1 qemu-loongarch64-static ./test/dblat1
96
- OPENBLAS_NUM_THREADS=1 OMP_NUM_THREADS=1 qemu-loongarch64-static ./test/cblat1
97
- OPENBLAS_NUM_THREADS=1 OMP_NUM_THREADS=1 qemu-loongarch64-static ./test/zblat1
98
- OPENBLAS_NUM_THREADS=2 qemu-loongarch64-static ./test/sblat1
99
- OPENBLAS_NUM_THREADS=2 qemu-loongarch64-static ./test/dblat1
100
- OPENBLAS_NUM_THREADS=2 qemu-loongarch64-static ./test/cblat1
101
- OPENBLAS_NUM_THREADS=2 qemu-loongarch64-static ./test/zblat1
92
+ export PATH=$GITHUB_WORKSPACE/qemu-install/bin/:$PATH
93
+ qemu-loongarch64 ./utest/openblas_utest
94
+ qemu-loongarch64 ./utest/openblas_utest_ext
95
+ OPENBLAS_NUM_THREADS=2 qemu-loongarch64 ./ctest/xscblat1
96
+ OPENBLAS_NUM_THREADS=2 qemu-loongarch64 ./ctest/xdcblat1
97
+ OPENBLAS_NUM_THREADS=2 qemu-loongarch64 ./ctest/xccblat1
98
+ OPENBLAS_NUM_THREADS=2 qemu-loongarch64 ./ctest/xzcblat1
99
+ OPENBLAS_NUM_THREADS=2 qemu-loongarch64 ./ctest/xscblat2 < ./ctest/sin2
100
+ OPENBLAS_NUM_THREADS=2 qemu-loongarch64 ./ctest/xdcblat2 < ./ctest/din2
101
+ OPENBLAS_NUM_THREADS=2 qemu-loongarch64 ./ctest/xccblat2 < ./ctest/cin2
102
+ OPENBLAS_NUM_THREADS=2 qemu-loongarch64 ./ctest/xzcblat2 < ./ctest/zin2
103
+ OPENBLAS_NUM_THREADS=2 qemu-loongarch64 ./ctest/xscblat3 < ./ctest/sin3
104
+ OPENBLAS_NUM_THREADS=2 qemu-loongarch64 ./ctest/xdcblat3 < ./ctest/din3
105
+ OPENBLAS_NUM_THREADS=2 qemu-loongarch64 ./ctest/xccblat3 < ./ctest/cin3
106
+ OPENBLAS_NUM_THREADS=2 qemu-loongarch64 ./ctest/xzcblat3 < ./ctest/zin3
107
+ OPENBLAS_NUM_THREADS=1 OMP_NUM_THREADS=1 qemu-loongarch64 ./test/sblat1
108
+ OPENBLAS_NUM_THREADS=1 OMP_NUM_THREADS=1 qemu-loongarch64 ./test/dblat1
109
+ OPENBLAS_NUM_THREADS=1 OMP_NUM_THREADS=1 qemu-loongarch64 ./test/cblat1
110
+ OPENBLAS_NUM_THREADS=1 OMP_NUM_THREADS=1 qemu-loongarch64 ./test/zblat1
111
+ OPENBLAS_NUM_THREADS=2 qemu-loongarch64 ./test/sblat1
112
+ OPENBLAS_NUM_THREADS=2 qemu-loongarch64 ./test/dblat1
113
+ OPENBLAS_NUM_THREADS=2 qemu-loongarch64 ./test/cblat1
114
+ OPENBLAS_NUM_THREADS=2 qemu-loongarch64 ./test/zblat1
102
115
rm -f ./test/?BLAT2.SUMM
103
- OPENBLAS_NUM_THREADS=1 OMP_NUM_THREADS=1 qemu-loongarch64-static ./test/sblat2 < ./test/sblat2.dat
104
- OPENBLAS_NUM_THREADS=1 OMP_NUM_THREADS=1 qemu-loongarch64-static ./test/dblat2 < ./test/dblat2.dat
105
- OPENBLAS_NUM_THREADS=1 OMP_NUM_THREADS=1 qemu-loongarch64-static ./test/cblat2 < ./test/cblat2.dat
106
- OPENBLAS_NUM_THREADS=1 OMP_NUM_THREADS=1 qemu-loongarch64-static ./test/zblat2 < ./test/zblat2.dat
116
+ OPENBLAS_NUM_THREADS=1 OMP_NUM_THREADS=1 qemu-loongarch64 ./test/sblat2 < ./test/sblat2.dat
117
+ OPENBLAS_NUM_THREADS=1 OMP_NUM_THREADS=1 qemu-loongarch64 ./test/dblat2 < ./test/dblat2.dat
118
+ OPENBLAS_NUM_THREADS=1 OMP_NUM_THREADS=1 qemu-loongarch64 ./test/cblat2 < ./test/cblat2.dat
119
+ OPENBLAS_NUM_THREADS=1 OMP_NUM_THREADS=1 qemu-loongarch64 ./test/zblat2 < ./test/zblat2.dat
107
120
rm -f ./test/?BLAT2.SUMM
108
- OPENBLAS_NUM_THREADS=2 qemu-loongarch64-static ./test/sblat2 < ./test/sblat2.dat
109
- OPENBLAS_NUM_THREADS=2 qemu-loongarch64-static ./test/dblat2 < ./test/dblat2.dat
110
- OPENBLAS_NUM_THREADS=2 qemu-loongarch64-static ./test/cblat2 < ./test/cblat2.dat
111
- OPENBLAS_NUM_THREADS=2 qemu-loongarch64-static ./test/zblat2 < ./test/zblat2.dat
121
+ OPENBLAS_NUM_THREADS=2 qemu-loongarch64 ./test/sblat2 < ./test/sblat2.dat
122
+ OPENBLAS_NUM_THREADS=2 qemu-loongarch64 ./test/dblat2 < ./test/dblat2.dat
123
+ OPENBLAS_NUM_THREADS=2 qemu-loongarch64 ./test/cblat2 < ./test/cblat2.dat
124
+ OPENBLAS_NUM_THREADS=2 qemu-loongarch64 ./test/zblat2 < ./test/zblat2.dat
112
125
rm -f ./test/?BLAT3.SUMM
113
- OPENBLAS_NUM_THREADS=1 OMP_NUM_THREADS=1 qemu-loongarch64-static ./test/sblat3 < ./test/sblat3.dat
114
- OPENBLAS_NUM_THREADS=1 OMP_NUM_THREADS=1 qemu-loongarch64-static ./test/dblat3 < ./test/dblat3.dat
115
- OPENBLAS_NUM_THREADS=1 OMP_NUM_THREADS=1 qemu-loongarch64-static ./test/cblat3 < ./test/cblat3.dat
116
- OPENBLAS_NUM_THREADS=1 OMP_NUM_THREADS=1 qemu-loongarch64-static ./test/zblat3 < ./test/zblat3.dat
126
+ OPENBLAS_NUM_THREADS=1 OMP_NUM_THREADS=1 qemu-loongarch64 ./test/sblat3 < ./test/sblat3.dat
127
+ OPENBLAS_NUM_THREADS=1 OMP_NUM_THREADS=1 qemu-loongarch64 ./test/dblat3 < ./test/dblat3.dat
128
+ OPENBLAS_NUM_THREADS=1 OMP_NUM_THREADS=1 qemu-loongarch64 ./test/cblat3 < ./test/cblat3.dat
129
+ OPENBLAS_NUM_THREADS=1 OMP_NUM_THREADS=1 qemu-loongarch64 ./test/zblat3 < ./test/zblat3.dat
117
130
rm -f ./test/?BLAT3.SUMM
118
- OPENBLAS_NUM_THREADS=2 qemu-loongarch64-static ./test/sblat3 < ./test/sblat3.dat
119
- OPENBLAS_NUM_THREADS=2 qemu-loongarch64-static ./test/dblat3 < ./test/dblat3.dat
120
- OPENBLAS_NUM_THREADS=2 qemu-loongarch64-static ./test/cblat3 < ./test/cblat3.dat
121
- OPENBLAS_NUM_THREADS=2 qemu-loongarch64-static ./test/zblat3 < ./test/zblat3.dat
131
+ OPENBLAS_NUM_THREADS=2 qemu-loongarch64 ./test/sblat3 < ./test/sblat3.dat
132
+ OPENBLAS_NUM_THREADS=2 qemu-loongarch64 ./test/dblat3 < ./test/dblat3.dat
133
+ OPENBLAS_NUM_THREADS=2 qemu-loongarch64 ./test/cblat3 < ./test/cblat3.dat
134
+ OPENBLAS_NUM_THREADS=2 qemu-loongarch64 ./test/zblat3 < ./test/zblat3.dat
122
135
0 commit comments