Bobby Bruce has uploaded this change for review. ( https://gem5-review.googlesource.com/c/public/gem5/+/54469 )

Change subject: tests: Update the weekly and nightly tests to use v21.2
......................................................................

tests: Update the weekly and nightly tests to use v21.2

Note: There is an annoying work-around here for tests where we obtain
the gem5 resources repo directly to compile and run tests.

Change-Id: If8e7d3e7fd8dea9d0e1653e73360c295ad43e1ac
---
M tests/weekly.sh
M tests/nightly.sh
2 files changed, 37 insertions(+), 5 deletions(-)



diff --git a/tests/nightly.sh b/tests/nightly.sh
index 05a1e0b..e7f29ec 100755
--- a/tests/nightly.sh
+++ b/tests/nightly.sh
@@ -96,7 +96,7 @@
|| (rm -rf build && scons build/GCN3_X86/gem5.opt -j${compile_threads})"

 # get square
-wget -qN http://dist.gem5.org/dist/develop/test-progs/square/square
+wget -qN http://dist.gem5.org/dist/v21-2/test-progs/square/square

 mkdir -p tests/testing-results

@@ -108,7 +108,7 @@
     configs/example/apu_se.py --reg-alloc-policy=dynamic -n3 -c square

 # get HeteroSync
-wget -qN http://dist.gem5.org/dist/develop/test-progs/heterosync/gcn3/allSyncPrims-1kernel +wget -qN http://dist.gem5.org/dist/v21-2/test-progs/heterosync/gcn3/allSyncPrims-1kernel

# run HeteroSync sleepMutex -- 16 WGs (4 per CU in default config), each doing # 10 Ld/St per thread and 4 iterations of the critical section is a reasonable
diff --git a/tests/weekly.sh b/tests/weekly.sh
index d65ee40..b6bbb58 100755
--- a/tests/weekly.sh
+++ b/tests/weekly.sh
@@ -61,9 +61,29 @@
 # 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 \
+git clone https://gem5.googlesource.com/public/gem5-resources \
     "${gem5_root}/gem5-resources"

+# The following script is to ensure these tests are runnable as the resources +# directory changes over time. The gem5 resources repository stable branch is +# tagged upon the new release for that of the previous release. For example,
+# when v22.0 is released, the stable branch will be tagged with "v21.2.X.X"
+# prior to the merging of the develop/staging branch into the stable branch.
+# This is so a user may revert the gem5-resources sources back to a state
+# compatable with a particular major release.
+#
+# To ensure the v21.2 version of these tests continues to run as future
+# versions are released, we run this check. If there's been another release,
+# we checkout the correct version of gem5 resources.
+cd "${gem5_root}/gem5-resources"
+version_tag=$(git tag | grep "v21.2")
+
+if [[ ${version_tag} != "" ]]; then
+       git checkout "${version_tag}"
+fi
+
+cd "${gem5_root}"
+
 # 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
@@ -189,7 +209,7 @@
        "export GEM5_PATH=${gem5_root} ; make gem5-fusion"

 # # get input dataset for BC test
-wget http://dist.gem5.org/dist/develop/datasets/pannotia/bc/1k_128k.gr
+wget http://dist.gem5.org/dist/v21-2/datasets/pannotia/bc/1k_128k.gr
 # run BC
 docker run --rm -v ${gem5_root}:${gem5_root} -w ${gem5_root} -u $UID:$GID \
        hacc-test-weekly ${gem5_root}/build/GCN3_X86/gem5.opt \
@@ -261,7 +281,7 @@
        "export GEM5_PATH=${gem5_root} ; make gem5-fusion"

 # get PageRank input dataset
-wget http://dist.gem5.org/dist/develop/datasets/pannotia/pagerank/coAuthorsDBLP.graph +wget http://dist.gem5.org/dist/v21-2/datasets/pannotia/pagerank/coAuthorsDBLP.graph
 # run PageRank (Default)
 docker run --rm -v ${gem5_root}:${gem5_root} -w ${gem5_root} -u $UID:$GID \
        hacc-test-weekly ${gem5_root}/build/GCN3_X86/gem5.opt \

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

Gerrit-Project: public/gem5
Gerrit-Branch: release-staging-v21-2
Gerrit-Change-Id: If8e7d3e7fd8dea9d0e1653e73360c295ad43e1ac
Gerrit-Change-Number: 54469
Gerrit-PatchSet: 1
Gerrit-Owner: Bobby Bruce <[email protected]>
Gerrit-MessageType: newchange
_______________________________________________
gem5-dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

Reply via email to