From 7756c5e9089de4d31b48c11d2db4bb3a2e30dd38 Mon Sep 17 00:00:00 2001 From: Matt Sinclair Date: Sat, 25 Sep 2021 15:07:50 -0500 Subject: [PATCH] tests: add LULESH to weekly regression LULESH is a popular GPU HPC application that acts as a good test for several memory and compute patterns. Thus, including it in the weekly regressions will help verify correctness and functionality for code that affects the GPU. The default LULESH input runs 10 iterations and takes 3-4 hours. Hence, it is not appropriate for nightly regressions. Change-Id: Ic1b73ab32fdd5cb1b973f2676b272adb91b2a98e Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/50952 Maintainer: Matt Sinclair Tested-by: kokoro Reviewed-by: Bobby R. Bruce --- tests/weekly.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/tests/weekly.sh b/tests/weekly.sh index 393c66face..b697c2941e 100755 --- a/tests/weekly.sh +++ b/tests/weekly.sh @@ -43,3 +43,19 @@ fi docker run -u $UID:$GID --volume "${gem5_root}":"${gem5_root}" -w \ "${gem5_root}"/tests --rm gcr.io/gem5-test/ubuntu-20.04_all-dependencies \ ./main.py run --length very-long -j${threads} -t${threads} + +# For the GPU tests we compile and run GCN3_X86 inside a gcn-gpu container. +docker pull gcr.io/gem5-test/gcn-gpu:latest +docker run --rm -u $UID:$GUID --volume "${gem5_root}":"${gem5_root}" -w \ + "${gem5_root}" gcr.io/gem5-test/gcn-gpu:latest bash -c \ + "scons build/GCN3_X86/gem5.opt -j${threads} \ + || (rm -rf build && scons build/GCN3_X86/gem5.opt -j${threads})" + +# get LULESH +wget -qN http://dist.gem5.org/dist/develop/test-progs/lulesh/lulesh + +mkdir -p tests/testing-results + +# LULESH is heavily used in the HPC community on GPUs, and does a good job of +# stressing several GPU compute and memory components +docker run --rm -v ${PWD}:${PWD} -w ${PWD} -u $UID:$GID gcr.io/gem5-test/gcn-gpu gem5/build/GCN3_X86/gem5.opt gem5/configs/example/apu_se.py -n3 --mem-size=8GB --benchmark-root=gem5-resources/src/gpu/lulesh/bin -clulesh