Skip to content

Commit c1f85f5

Browse files
authored
Merge pull request #538 from ChinYikMing/enable-riscv-test-parallel-build
CI: Enable parallel build for riscv-tests.sh
2 parents e2993fc + 14d2d28 commit c1f85f5

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.ci/riscv-tests.sh

+6-4
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,16 @@ set -x
99

1010
export PATH=`pwd`/toolchain/bin:$PATH
1111

12+
PARALLEL=-j$(nproc)
13+
1214
make distclean
1315
# Rebuild with all RISC-V extensions
1416
# FIXME: To pass the RISC-V Architecture Tests, full access to 4 GiB is
1517
# necessary. We need to investigate why full 4 GiB memory access is required
1618
# for this purpose, although the emulator can run all selected benchmarks with
1719
# much smaller memory mapping regions.
1820
make ENABLE_EXT_M=1 ENABLE_EXT_A=1 ENABLE_EXT_F=1 ENABLE_EXT_C=1 \
19-
ENABLE_Zicsr=1 ENABLE_Zifencei=1 ENABLE_FULL4G=1
20-
make arch-test RISCV_DEVICE=IMAFCZicsrZifencei || exit 1
21-
make arch-test RISCV_DEVICE=FCZicsr || exit 1
22-
make arch-test RISCV_DEVICE=IMZbaZbbZbcZbs || exit 1
21+
ENABLE_Zicsr=1 ENABLE_Zifencei=1 ENABLE_FULL4G=1 $PARALLEL
22+
make arch-test RISCV_DEVICE=IMAFCZicsrZifencei $PARALLEL || exit 1
23+
make arch-test RISCV_DEVICE=FCZicsr $PARALLEL || exit 1
24+
make arch-test RISCV_DEVICE=IMZbaZbbZbcZbs $PARALLEL || exit 1

0 commit comments

Comments
 (0)