Skip to content

Commit a29ee9a

Browse files
BLOrange-AMDjithunnair-amd
authored andcommitted
QA script - Added multi gpu check with priority_tests (#1604)
Fixes SWDEV-487907. Verified throwing exception for distributed is working correctly on single gpu with command: python .automation_scripts/run_pytorch_unit_tests.py --priority_test (cherry picked from commit 57cc742271cbf4547f9213710e57f6444bbc983e)
1 parent bc4298b commit a29ee9a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.automation_scripts/run_pytorch_unit_tests.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ def run_test_and_summarize_results(
397397
if not priority_tests and not default_list and not distributed_list and not inductor_list:
398398
# run entire tests for default, distributed and inductor workflows → use test.sh
399399
if not test_config:
400-
check_num_gpus_for_distributed();
400+
check_num_gpus_for_distributed()
401401
# default test process
402402
res_default_all = run_entire_tests("default", test_shell_path, overall_logs_path_current_run, test_reports_src)
403403
res_all_tests_dict["default"] = res_default_all
@@ -423,6 +423,7 @@ def run_test_and_summarize_results(
423423
# Run priority test for each workflow
424424
elif priority_tests and not default_list and not distributed_list and not inductor_list:
425425
if not test_config:
426+
check_num_gpus_for_distributed()
426427
# default test process
427428
res_default_priority = run_priority_tests("default", test_run_test_path, overall_logs_path_current_run, test_reports_src)
428429
res_all_tests_dict["default"] = res_default_priority

0 commit comments

Comments
 (0)