Skip to content

Commit 1e3cd5f

Browse files
Update benchmarks.yml
1 parent a05d32a commit 1e3cd5f

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

.github/workflows/benchmarks.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ on:
1616
- 'no'
1717

1818
jobs:
19-
jax-build-and-test:
19+
gpu-jax-build-and-test:
2020
runs-on: linux-x86-g2-48-l4-4gpu # Use a GPU-enabled runner
2121
container:
2222
image: "gcr.io/tensorflow-testing/nosla-cuda12.3-cudnn9.1-ubuntu20.04-manylinux2014-multipython:latest"
@@ -45,7 +45,7 @@ jobs:
4545
continue-on-error: true
4646
run: python -m pytest tests/multiprocess_gpu_test.py
4747

48-
build-xla-gpu-and-test:
48+
gpu-xla-build-and-test:
4949
runs-on: linux-x86-g2-48-l4-4gpu # Use a GPU-enabled runner
5050
container:
5151
image: "gcr.io/tensorflow-testing/nosla-cuda12.3-cudnn9.1-ubuntu20.04-manylinux2014-multipython:latest"
@@ -99,6 +99,7 @@ jobs:
9999
working-directory: xla
100100
continue-on-error: true
101101
run: |
102+
mkdir -p gpu_benchmark_logs/xla_tests_fuzz
102103
for file in xla/tests/fuzz/*.hlo; do
103104
filename=$(basename "$file")
104105
# Skip expected failed hlo files.
@@ -107,14 +108,15 @@ jobs:
107108
continue
108109
fi
109110
echo "Running benchmark on $file"
110-
./bazel-bin/xla/tools/run_hlo_module --input_format=hlo --platform=GPU "$file"
111+
./bazel-bin/xla/tools/run_hlo_module --input_format=hlo --platform=GPU "$file" &> gpu_benchmark_logs/xla_tests_fuzz/"$filename".log
111112
done
112113
113114
- name: Run HLO Module Benchmarks withg GPU in xla/service/gpu
114115
working-directory: xla
115116
continue-on-error: true
116117
run: |
117-
find xla/service/gpu -name "*.hlo" -print0 | xargs -0 -I {} ./bazel-bin/xla/tools/run_hlo_module --input_format=hlo --platform=GPU {}
118+
mkdir -p gpu_benchmark_logs/xla_service_gpu
119+
find xla/service/gpu -name "*.hlo" -print0 | xargs -0 -I {} sh -c 'filename=$(basename "$1"); ./bazel-bin/xla/tools/run_hlo_module --input_format=hlo --platform=GPU "$1" &> gpu_benchmark_logs/xla_service_gpu/"$filename".log' {}
118120
119121
# - name: Build hlo_runner_main
120122
# working-directory: xla
@@ -129,3 +131,9 @@ jobs:
129131
# echo "Running benchmark on $file"
130132
# bazel-bin/xla/tools/multihost_hlo_runner/hlo_runner_main "$file"
131133
# done
134+
135+
- name: Upload Results
136+
uses: actions/upload-artifact@v4
137+
with:
138+
name: gpu-benchmark-logs
139+
path: gpu_benchmark_logs

0 commit comments

Comments
 (0)