Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion engineV2.py
Original file line number Diff line number Diff line change
Expand Up @@ -450,6 +450,12 @@ def main():
default=False,
help="Whether to test tolerance range in accuracy",
)
parser.add_argument(
"--timeout",
type=int,
default=1800,
help="Timeout setting for a single test case, in seconds",
)
options = parser.parse_args()
print(f"Options: {vars(options)}", flush=True)

Expand Down Expand Up @@ -656,7 +662,8 @@ def cleanup_handler(*args):
batch = api_configs[batch_start : batch_start + BATCH_SIZE]
futures = {}
for config in batch:
timeout = estimate_timeout(config)
#timeout = estimate_timeout(config)
timeout = options.timeout
future = pool.schedule(
run_test_case,
[config, options],
Expand Down
6 changes: 5 additions & 1 deletion run-example.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ NUM_GPUS=-1
NUM_WORKERS_PER_GPU=-1
GPU_IDS="4,5,6,7"
# REQUIRED_MEMORY=10
TIME_OUT=600

TEST_MODE_ARGS=(
--accuracy=True
Expand Down Expand Up @@ -41,7 +42,9 @@ PARALLEL_ARGS=(
--gpu_ids="$GPU_IDS"
# --required_memory="$REQUIRED_MEMORY"
)

TIME_OUT_ARGS=(
--timeout="$TIME_OUT"
)
mkdir -p "$LOG_DIR" || {
echo "错误:无法创建日志目录 '$LOG_DIR'"
exit 1
Expand All @@ -53,6 +56,7 @@ nohup python engineV2.py \
"${TEST_MODE_ARGS[@]}" \
"${IN_OUT_ARGS[@]}" \
"${PARALLEL_ARGS[@]}" \
"${TIME_OUT_ARGS[@]}" \
>> "$LOG_FILE" 2>&1 &

PYTHON_PID=$!
Expand Down
7 changes: 6 additions & 1 deletion test_pipline/V2/run_cpu_0size_full.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ NUM_GPUS=-1
NUM_WORKERS_PER_GPU=15
GPU_IDS="-1"
REQUIRED_MEMORY=5
TIME_OUT=600

TEST_MODE_ARGS=(
--accuracy=True
Expand All @@ -35,7 +36,9 @@ PARALLEL_ARGS=(
--gpu_ids="$GPU_IDS"
--required_memory="$REQUIRED_MEMORY"
)

TIME_OUT_ARGS=(
--timeout="$TIME_OUT"
)
mkdir -p "$LOG_DIR" || {
echo "错误:无法创建日志目录 '$LOG_DIR'"
exit 1
Expand All @@ -48,6 +51,7 @@ if [ "$backprocess" -eq 1 ]; then
"${TEST_MODE_ARGS[@]}" \
"${IN_OUT_ARGS[@]}" \
"${PARALLEL_ARGS[@]}" \
"${TIME_OUT_ARGS[@]}" \
>> "$LOG_FILE" 2>&1 &
PYTHON_PID=$!

Expand All @@ -68,6 +72,7 @@ else
"${TEST_MODE_ARGS[@]}" \
"${IN_OUT_ARGS[@]}" \
"${PARALLEL_ARGS[@]}" \
"${TIME_OUT_ARGS[@]}" \
2>&1 | tee -a "$LOG_FILE"

PYTHON_PID=$!
Expand Down
6 changes: 6 additions & 0 deletions test_pipline/V2/run_cpu_0size_regr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ NUM_GPUS=-1
NUM_WORKERS_PER_GPU=15
GPU_IDS="-1"
REQUIRED_MEMORY=5
TIME_OUT=600

TEST_MODE_ARGS=(
--accuracy=True
Expand All @@ -34,6 +35,9 @@ PARALLEL_ARGS=(
--gpu_ids="$GPU_IDS"
--required_memory="$REQUIRED_MEMORY"
)
TIME_OUT_ARGS=(
--timeout="$TIME_OUT"
)

mkdir -p "$LOG_DIR" || {
echo "错误:无法创建日志目录 '$LOG_DIR'"
Expand All @@ -47,6 +51,7 @@ if [ "$backprocess" -eq 1 ]; then
"${TEST_MODE_ARGS[@]}" \
"${IN_OUT_ARGS[@]}" \
"${PARALLEL_ARGS[@]}" \
"${TIME_OUT_ARGS[@]}" \
>> "$LOG_FILE" 2>&1 &
PYTHON_PID=$!

Expand All @@ -67,6 +72,7 @@ else
"${TEST_MODE_ARGS[@]}" \
"${IN_OUT_ARGS[@]}" \
"${PARALLEL_ARGS[@]}" \
"${TIME_OUT_ARGS[@]}" \
2>&1 | tee -a "$LOG_FILE"

PYTHON_PID=$!
Expand Down
6 changes: 6 additions & 0 deletions test_pipline/V2/run_gpu_0size_full.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ NUM_GPUS=-1
NUM_WORKERS_PER_GPU=15
GPU_IDS="-1"
REQUIRED_MEMORY=5
TIME_OUT=600

TEST_MODE_ARGS=(
--accuracy=True
Expand All @@ -35,6 +36,9 @@ PARALLEL_ARGS=(
--gpu_ids="$GPU_IDS"
--required_memory="$REQUIRED_MEMORY"
)
TIME_OUT_ARGS=(
--timeout="$TIME_OUT"
)

mkdir -p "$LOG_DIR" || {
echo "错误:无法创建日志目录 '$LOG_DIR'"
Expand All @@ -48,6 +52,7 @@ if [ "$backprocess" -eq 1 ]; then
"${TEST_MODE_ARGS[@]}" \
"${IN_OUT_ARGS[@]}" \
"${PARALLEL_ARGS[@]}" \
"${TIME_OUT_ARGS[@]}" \
>> "$LOG_FILE" 2>&1 &
PYTHON_PID=$!

Expand All @@ -68,6 +73,7 @@ else
"${TEST_MODE_ARGS[@]}" \
"${IN_OUT_ARGS[@]}" \
"${PARALLEL_ARGS[@]}" \
"${TIME_OUT_ARGS[@]}" \
2>&1 | tee -a "$LOG_FILE"

PYTHON_PID=$!
Expand Down
6 changes: 6 additions & 0 deletions test_pipline/V2/run_gpu_0size_regr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ NUM_GPUS=-1
NUM_WORKERS_PER_GPU=15
GPU_IDS="-1"
REQUIRED_MEMORY=5
TIME_OUT=600

TEST_MODE_ARGS=(
--accuracy=True
Expand All @@ -34,6 +35,9 @@ PARALLEL_ARGS=(
--gpu_ids="$GPU_IDS"
--required_memory="$REQUIRED_MEMORY"
)
TIME_OUT_ARGS=(
--timeout="$TIME_OUT"
)

mkdir -p "$LOG_DIR" || {
echo "错误:无法创建日志目录 '$LOG_DIR'"
Expand All @@ -47,6 +51,7 @@ if [ "$backprocess" -eq 1 ]; then
"${TEST_MODE_ARGS[@]}" \
"${IN_OUT_ARGS[@]}" \
"${PARALLEL_ARGS[@]}" \
"${TIME_OUT_ARGS[@]}" \
>> "$LOG_FILE" 2>&1 &
PYTHON_PID=$!

Expand All @@ -67,6 +72,7 @@ else
"${TEST_MODE_ARGS[@]}" \
"${IN_OUT_ARGS[@]}" \
"${PARALLEL_ARGS[@]}" \
"${TIME_OUT_ARGS[@]}" \
2>&1 | tee -a "$LOG_FILE"

PYTHON_PID=$!
Expand Down