diff --git a/tests/weekly.sh b/tests/weekly.sh index 12793daced..c7ba7e6aef 100755 --- a/tests/weekly.sh +++ b/tests/weekly.sh @@ -44,6 +44,20 @@ 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} +# before pulling gem5 resources, make sure it doesn't exist already +docker run --rm --volume "${gem5_root}":"${gem5_root}" -w \ + "${gem5_root}" gcr.io/gem5-test/gcn-gpu:latest bash -c \ + "rm -rf ${gem5_root}/gem5-resources" + +# Pull gem5 resources to the root of the gem5 directory -- currently the +# pre-built binares for LULESH are out-of-date and won't run correctly with +# ROCm 4.0. In the meantime, we can build the binary as part of this script. +# Moreover, DNNMark builds a library and thus doesn't have a binary, so we +# need to build it before we run it. +# Need to pull this first because HACC's docker requires this path to exist +git clone -b develop https://gem5.googlesource.com/public/gem5-resources \ + "${gem5_root}/gem5-resources" + # For the GPU tests we compile and run GCN3_X86 inside a gcn-gpu container. # HACC requires setting numerous environment variables to run correctly. To # avoid needing to set all of these, we instead build a docker for it, which @@ -57,20 +71,7 @@ docker run --rm -u $UID:$GID --volume "${gem5_root}":"${gem5_root}" -w \ "scons build/GCN3_X86/gem5.opt -j${threads} \ || rm -rf build && scons build/GCN3_X86/gem5.opt -j${threads}" -# before pulling gem5 resources, make sure it doesn't exist already -docker run --rm --volume "${gem5_root}":"${gem5_root}" -w \ - "${gem5_root}" hacc-test-weekly bash -c \ - "rm -rf ${gem5_root}/gem5-resources" - # test LULESH -# Pull gem5 resources to the root of the gem5 directory -- currently the -# pre-built binares for LULESH are out-of-date and won't run correctly with -# ROCm 4.0. In the meantime, we can build the binary as part of this script. -# Moreover, DNNMark builds a library and thus doesn't have a binary, so we -# need to build it before we run it. -git clone -b develop https://gem5.googlesource.com/public/gem5-resources \ - "${gem5_root}/gem5-resources" - mkdir -p tests/testing-results # build LULESH