|
|
|
@ -880,6 +880,7 @@ set +x
|
|
|
|
|
multiple_card_tests='' # cases list which would take multiple GPUs, most cases would be two GPUs
|
|
|
|
|
is_exclusive='' # indicate whether the case is exclusive type
|
|
|
|
|
is_multicard='' # indicate whether the case is multiple GPUs type
|
|
|
|
|
is_nightly='' # indicate whether the case will only run at night
|
|
|
|
|
while read -r line; do
|
|
|
|
|
if [[ "$line" == "" ]]; then
|
|
|
|
|
continue
|
|
|
|
@ -889,12 +890,19 @@ set +x
|
|
|
|
|
# Any test case with LABELS property would be parse here
|
|
|
|
|
# RUN_TYPE=EXCLUSIVE mean the case would run exclusively
|
|
|
|
|
# RUN_TYPE=DIST mean the case would take two graph GPUs during runtime
|
|
|
|
|
# RUN_TYPE=NIGHTLY or RUN_TYPE=DIST:NIGHTLY or RUN_TYPE=EXCLUSIVE:NIGHTLY means the case will ONLY run at night
|
|
|
|
|
read is_exclusive <<< $(echo "$line"|grep -oEi "RUN_TYPE=EXCLUSIVE")
|
|
|
|
|
read is_multicard <<< $(echo "$line"|grep -oEi "RUN_TYPE=DIST")
|
|
|
|
|
read is_nightly <<< $(echo "$line"|grep -oEi "RUN_TYPE=NIGHTLY|RUN_TYPE=DIST:NIGHTLY|RUN_TYPE=EXCLUSIVE:NIGHTLY")
|
|
|
|
|
continue
|
|
|
|
|
fi
|
|
|
|
|
read testcase <<< $(echo "$line"|grep -oEi "\w+$")
|
|
|
|
|
|
|
|
|
|
if [[ "$is_nightly" != "" ]] && [ ${NIGHTLY_MODE:-OFF} == "OFF" ]; then
|
|
|
|
|
echo $testcase" will only run at night."
|
|
|
|
|
continue
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
if [[ "$is_multicard" == "" ]]; then
|
|
|
|
|
# trick: treat all test case with prefix "test_dist" as dist case, and would run on 2 GPUs
|
|
|
|
|
read is_multicard <<< $(echo "$testcase"|grep -oEi "test_dist")
|
|
|
|
@ -930,6 +938,7 @@ set +x
|
|
|
|
|
fi
|
|
|
|
|
is_exclusive=''
|
|
|
|
|
is_multicard=''
|
|
|
|
|
is_nightly=''
|
|
|
|
|
matchstr=''
|
|
|
|
|
testcase=''
|
|
|
|
|
done <<< "$test_cases";
|
|
|
|
|