Skip to content

Commit d9e06f6

Browse files
committed
fix
1 parent f468fe5 commit d9e06f6

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed

.github/scripts/run_parallel_benchmarks.sh

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,19 @@ device="$1"
1313
interface="$2"
1414
cluster="$3"
1515

16+
# Get the directory where this script lives (pr/.github/scripts/)
17+
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
18+
1619
echo "=========================================="
1720
echo "Starting parallel benchmark jobs..."
1821
echo "=========================================="
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") &
2225
pr_pid=$!
2326
echo "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") &
2629
master_pid=$!
2730
echo "Master job started in background (PID: $master_pid)"
2831

.github/scripts/submit_and_monitor_bench.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ device="$2"
1414
interface="$3"
1515
cluster="$4"
1616

17+
# Get the directory where this script lives
18+
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
19+
1720
echo "[$dir] Submitting benchmark for $device-$interface on $cluster..."
1821
cd "$dir"
1922

@@ -33,8 +36,8 @@ fi
3336

3437
echo "[$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

3942
echo "[$dir] Monitoring complete for job $job_id"
4043

.github/workflows/bench.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ jobs:
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: |

0 commit comments

Comments
 (0)