1616 - ' no'
1717
1818jobs :
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"
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"
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