Matt Sinclair has uploaded this change for review. ( https://gem5-review.googlesource.com/c/public/gem5/+/51907 )

Change subject: tests: fix bug in weekly regression
......................................................................

tests: fix bug in weekly regression

66a056b8 changed the weekly regression to use a single docker for
all GPU tests, to reduce how many times gem5 needed to be compiled.
However, in my local testing of that patch, gem5-resources was not
deleted until after the docker was created -- which causes a problem
when gem5-resources does not exist already from a prior run, since
the creation of the dockerfile requires it for HACC.  This commit
fixes this problem by moving the pull of gem5-resources to be before
anything else related to the GPU happens.

Change-Id: I006860204d03807d95628aa5dcf6e82d202fef9c
---
M tests/weekly.sh
1 file changed, 32 insertions(+), 13 deletions(-)



diff --git a/tests/weekly.sh b/tests/weekly.sh
index 12793da..b91dbbc 100755
--- a/tests/weekly.sh
+++ b/tests/weekly.sh
@@ -44,6 +44,20 @@
"${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 -u $UID:$GID --volume "${gem5_root}":"${gem5_root}" -w \
+       "${gem5_root}" hacc-test-weekly 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 @@
     "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

--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/51907
To unsubscribe, or for help writing mail filters, visit https://gem5-review.googlesource.com/settings

Gerrit-Project: public/gem5
Gerrit-Branch: develop
Gerrit-Change-Id: I006860204d03807d95628aa5dcf6e82d202fef9c
Gerrit-Change-Number: 51907
Gerrit-PatchSet: 1
Gerrit-Owner: Matt Sinclair <mattdsincl...@gmail.com>
Gerrit-MessageType: newchange
_______________________________________________
gem5-dev mailing list -- gem5-dev@gem5.org
To unsubscribe send an email to gem5-dev-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

Reply via email to