diff --git a/tests/weekly.sh b/tests/weekly.sh index f9d3e4bc04..d07cc8b2a6 100755 --- a/tests/weekly.sh +++ b/tests/weekly.sh @@ -39,15 +39,24 @@ docker_mem_limit="24g" # branch) tag="latest" -# We assume the first two arguments are the number of threads followed by the -# GPU ISA to test. These default to 1 and GCN3_X86 is no argument is given. +# We assume the first three arguments are the number of threads to use for +# compilation followed by the GPU ISA to test, and finally, the number of +# "run threads", the maximum number of tests to be run at once. By default the +# number of compile threads 1 and the GPU ISA is GCN3_X86. The number of +# "run threads" is equal to the number of compile threads by default. threads=1 gpu_isa=GCN3_X86 +run_threads=1 if [[ $# -eq 1 ]]; then threads=$1 + run_threads=${threads} elif [[ $# -eq 2 ]]; then threads=$1 gpu_isa=$2 +elif [[ $# -eq 3 ]]; then + threads=$1 + gpu_isa=$2 + run_threads=$3 else if [[ $# -gt 0 ]]; then echo "Invalid number of arguments: $#" @@ -64,7 +73,7 @@ fi docker run -u $UID:$GID --volume "${gem5_root}":"${gem5_root}" -w \ "${gem5_root}"/tests --memory="${docker_mem_limit}" --rm \ gcr.io/gem5-test/ubuntu-22.04_all-dependencies:${tag} \ - ./main.py run --length very-long -j${threads} -t${threads} -vv + ./main.py run --length very-long -j${threads} -t${run_threads} -vv mkdir -p tests/testing-results