File tree Expand file tree Collapse file tree 6 files changed +37
-3
lines changed Expand file tree Collapse file tree 6 files changed +37
-3
lines changed Original file line number Diff line number Diff line change @@ -450,6 +450,12 @@ def main():
450450 default = False ,
451451 help = "Whether to test tolerance range in accuracy" ,
452452 )
453+ parser .add_argument (
454+ "--timeout" ,
455+ type = int ,
456+ default = 1800 ,
457+ help = "Timeout setting for a single test case, in seconds" ,
458+ )
453459 options = parser .parse_args ()
454460 print (f"Options: { vars (options )} " , flush = True )
455461
@@ -656,7 +662,8 @@ def cleanup_handler(*args):
656662 batch = api_configs [batch_start : batch_start + BATCH_SIZE ]
657663 futures = {}
658664 for config in batch :
659- timeout = estimate_timeout (config )
665+ #timeout = estimate_timeout(config)
666+ timeout = options .timeout
660667 future = pool .schedule (
661668 run_test_case ,
662669 [config , options ],
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ NUM_GPUS=-1
1212NUM_WORKERS_PER_GPU=-1
1313GPU_IDS=" 4,5,6,7"
1414# REQUIRED_MEMORY=10
15+ TIME_OUT=600
1516
1617TEST_MODE_ARGS=(
1718 --accuracy=True
@@ -41,7 +42,9 @@ PARALLEL_ARGS=(
4142 --gpu_ids=" $GPU_IDS "
4243 # --required_memory="$REQUIRED_MEMORY"
4344)
44-
45+ TIME_OUT_ARGS=(
46+ --timeout=" $TIME_OUT "
47+ )
4548mkdir -p " $LOG_DIR " || {
4649 echo " 错误:无法创建日志目录 '$LOG_DIR '"
4750 exit 1
@@ -53,6 +56,7 @@ nohup python engineV2.py \
5356 " ${TEST_MODE_ARGS[@]} " \
5457 " ${IN_OUT_ARGS[@]} " \
5558 " ${PARALLEL_ARGS[@]} " \
59+ " ${TIME_OUT_ARGS[@]} " \
5660 >> " $LOG_FILE " 2>&1 &
5761
5862PYTHON_PID=$!
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ NUM_GPUS=-1
1313NUM_WORKERS_PER_GPU=15
1414GPU_IDS=" -1"
1515REQUIRED_MEMORY=5
16+ TIME_OUT=600
1617
1718TEST_MODE_ARGS=(
1819 --accuracy=True
@@ -35,7 +36,9 @@ PARALLEL_ARGS=(
3536 --gpu_ids=" $GPU_IDS "
3637 --required_memory=" $REQUIRED_MEMORY "
3738)
38-
39+ TIME_OUT_ARGS=(
40+ --timeout=" $TIME_OUT "
41+ )
3942mkdir -p " $LOG_DIR " || {
4043 echo " 错误:无法创建日志目录 '$LOG_DIR '"
4144 exit 1
@@ -48,6 +51,7 @@ if [ "$backprocess" -eq 1 ]; then
4851 " ${TEST_MODE_ARGS[@]} " \
4952 " ${IN_OUT_ARGS[@]} " \
5053 " ${PARALLEL_ARGS[@]} " \
54+ " ${TIME_OUT_ARGS[@]} " \
5155 >> " $LOG_FILE " 2>&1 &
5256 PYTHON_PID=$!
5357
6872 " ${TEST_MODE_ARGS[@]} " \
6973 " ${IN_OUT_ARGS[@]} " \
7074 " ${PARALLEL_ARGS[@]} " \
75+ " ${TIME_OUT_ARGS[@]} " \
7176 2>&1 | tee -a " $LOG_FILE "
7277
7378 PYTHON_PID=$!
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ NUM_GPUS=-1
1212NUM_WORKERS_PER_GPU=15
1313GPU_IDS=" -1"
1414REQUIRED_MEMORY=5
15+ TIME_OUT=600
1516
1617TEST_MODE_ARGS=(
1718 --accuracy=True
@@ -34,6 +35,9 @@ PARALLEL_ARGS=(
3435 --gpu_ids=" $GPU_IDS "
3536 --required_memory=" $REQUIRED_MEMORY "
3637)
38+ TIME_OUT_ARGS=(
39+ --timeout=" $TIME_OUT "
40+ )
3741
3842mkdir -p " $LOG_DIR " || {
3943 echo " 错误:无法创建日志目录 '$LOG_DIR '"
@@ -47,6 +51,7 @@ if [ "$backprocess" -eq 1 ]; then
4751 " ${TEST_MODE_ARGS[@]} " \
4852 " ${IN_OUT_ARGS[@]} " \
4953 " ${PARALLEL_ARGS[@]} " \
54+ " ${TIME_OUT_ARGS[@]} " \
5055 >> " $LOG_FILE " 2>&1 &
5156 PYTHON_PID=$!
5257
6772 " ${TEST_MODE_ARGS[@]} " \
6873 " ${IN_OUT_ARGS[@]} " \
6974 " ${PARALLEL_ARGS[@]} " \
75+ " ${TIME_OUT_ARGS[@]} " \
7076 2>&1 | tee -a " $LOG_FILE "
7177
7278 PYTHON_PID=$!
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ NUM_GPUS=-1
1313NUM_WORKERS_PER_GPU=15
1414GPU_IDS=" -1"
1515REQUIRED_MEMORY=5
16+ TIME_OUT=600
1617
1718TEST_MODE_ARGS=(
1819 --accuracy=True
@@ -35,6 +36,9 @@ PARALLEL_ARGS=(
3536 --gpu_ids=" $GPU_IDS "
3637 --required_memory=" $REQUIRED_MEMORY "
3738)
39+ TIME_OUT_ARGS=(
40+ --timeout=" $TIME_OUT "
41+ )
3842
3943mkdir -p " $LOG_DIR " || {
4044 echo " 错误:无法创建日志目录 '$LOG_DIR '"
@@ -48,6 +52,7 @@ if [ "$backprocess" -eq 1 ]; then
4852 " ${TEST_MODE_ARGS[@]} " \
4953 " ${IN_OUT_ARGS[@]} " \
5054 " ${PARALLEL_ARGS[@]} " \
55+ " ${TIME_OUT_ARGS[@]} " \
5156 >> " $LOG_FILE " 2>&1 &
5257 PYTHON_PID=$!
5358
6873 " ${TEST_MODE_ARGS[@]} " \
6974 " ${IN_OUT_ARGS[@]} " \
7075 " ${PARALLEL_ARGS[@]} " \
76+ " ${TIME_OUT_ARGS[@]} " \
7177 2>&1 | tee -a " $LOG_FILE "
7278
7379 PYTHON_PID=$!
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ NUM_GPUS=-1
1212NUM_WORKERS_PER_GPU=15
1313GPU_IDS=" -1"
1414REQUIRED_MEMORY=5
15+ TIME_OUT=600
1516
1617TEST_MODE_ARGS=(
1718 --accuracy=True
@@ -34,6 +35,9 @@ PARALLEL_ARGS=(
3435 --gpu_ids=" $GPU_IDS "
3536 --required_memory=" $REQUIRED_MEMORY "
3637)
38+ TIME_OUT_ARGS=(
39+ --timeout=" $TIME_OUT "
40+ )
3741
3842mkdir -p " $LOG_DIR " || {
3943 echo " 错误:无法创建日志目录 '$LOG_DIR '"
@@ -47,6 +51,7 @@ if [ "$backprocess" -eq 1 ]; then
4751 " ${TEST_MODE_ARGS[@]} " \
4852 " ${IN_OUT_ARGS[@]} " \
4953 " ${PARALLEL_ARGS[@]} " \
54+ " ${TIME_OUT_ARGS[@]} " \
5055 >> " $LOG_FILE " 2>&1 &
5156 PYTHON_PID=$!
5257
6772 " ${TEST_MODE_ARGS[@]} " \
6873 " ${IN_OUT_ARGS[@]} " \
6974 " ${PARALLEL_ARGS[@]} " \
75+ " ${TIME_OUT_ARGS[@]} " \
7076 2>&1 | tee -a " $LOG_FILE "
7177
7278 PYTHON_PID=$!
You can’t perform that action at this time.
0 commit comments