File tree Expand file tree Collapse file tree 3 files changed +12
-6
lines changed
Expand file tree Collapse file tree 3 files changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -13,16 +13,19 @@ device="$1"
1313interface=" $2 "
1414cluster=" $3 "
1515
16+ # Get the directory where this script lives (pr/.github/scripts/)
17+ SCRIPT_DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd) "
18+
1619echo " =========================================="
1720echo " Starting parallel benchmark jobs..."
1821echo " =========================================="
1922
20- # Run both jobs with monitoring using dedicated script
21- (bash .github/scripts/ submit_and_monitor_bench.sh pr " $device " " $interface " " $cluster " ) &
23+ # Run both jobs with monitoring using dedicated script from PR
24+ (bash " ${SCRIPT_DIR} / submit_and_monitor_bench.sh" pr " $device " " $interface " " $cluster " ) &
2225pr_pid=$!
2326echo " PR job started in background (PID: $pr_pid )"
2427
25- (bash .github/scripts/ submit_and_monitor_bench.sh master " $device " " $interface " " $cluster " ) &
28+ (bash " ${SCRIPT_DIR} / submit_and_monitor_bench.sh" master " $device " " $interface " " $cluster " ) &
2629master_pid=$!
2730echo " Master job started in background (PID: $master_pid )"
2831
Original file line number Diff line number Diff line change @@ -14,6 +14,9 @@ device="$2"
1414interface=" $3 "
1515cluster=" $4 "
1616
17+ # Get the directory where this script lives
18+ SCRIPT_DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd) "
19+
1720echo " [$dir ] Submitting benchmark for $device -$interface on $cluster ..."
1821cd " $dir "
1922
3336
3437echo " [$dir ] Job ID: $job_id , monitoring output file: $output_file "
3538
36- # Use the monitoring script
37- bash .github/scripts/ monitor_slurm_job.sh " $job_id " " $output_file "
39+ # Use the monitoring script from PR (where this script lives)
40+ bash " ${SCRIPT_DIR} / monitor_slurm_job.sh" " $job_id " " $output_file "
3841
3942echo " [$dir ] Monitoring complete for job $job_id "
4043
Original file line number Diff line number Diff line change 9898 wait %1 && wait %2
9999
100100 - name : Bench (Master v. PR)
101- run : bash .github/scripts/run_parallel_benchmarks.sh ${{ matrix.device }} ${{ matrix.interface }} ${{ matrix.cluster }}
101+ run : bash pr/ .github/scripts/run_parallel_benchmarks.sh ${{ matrix.device }} ${{ matrix.interface }} ${{ matrix.cluster }}
102102
103103 - name : Generate & Post Comment
104104 run : |
You can’t perform that action at this time.
0 commit comments