Skip to content

Commit e30f672

Browse files
Update benchmarks.yml
1 parent f5a873b commit e30f672

File tree

1 file changed

+22
-22
lines changed

1 file changed

+22
-22
lines changed

.github/workflows/benchmarks.yml

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -101,29 +101,29 @@ jobs:
101101
# ./bazel-bin/xla/tools/run_hlo_module --input_format=hlo --platform=CPU "$file"
102102
# done
103103

104-
- name: Build CPU Benchmarks
105-
working-directory: xla
106-
run: bazel build -c opt --dynamic_mode=off //xla/backends/cpu/benchmarks:*
104+
# - name: Build CPU Benchmarks
105+
# working-directory: xla
106+
# run: bazel build -c opt --dynamic_mode=off //xla/backends/cpu/benchmarks:*
107107

108-
- name: Run CPU benchmarks
109-
working-directory: xla
110-
continue-on-error: true
111-
run: |
112-
find ./bazel-bin/xla/backends/cpu/benchmarks/ -maxdepth 1 -type f -executable -name "*_test" -print0 | while IFS= read -r -d $'\0' benchmark; do
113-
benchmark_name=$(basename "$benchmark" | sed 's/_test$//')
114-
echo "Running benchmark: $benchmark_name"
115-
116-
# Run the benchmark with default parameters.
117-
$benchmark --benchmark_filter=".*"
118-
$benchmark --benchmark_filter=".*" > "results/$benchmark_name.log" 2>&1
119-
120-
# Check the exit code of the benchmark
121-
if [ $? -ne 0 ]; then
122-
echo "Error: Benchmark '$benchmark_name' failed. Check the log file: results/$benchmark_name.log"
123-
else
124-
echo "Benchmark '$benchmark_name' completed successfully."
125-
fi
126-
done
108+
# - name: Run CPU benchmarks
109+
# working-directory: xla
110+
# continue-on-error: true
111+
# run: |
112+
# find ./bazel-bin/xla/backends/cpu/benchmarks/ -maxdepth 1 -type f -executable -name "*_test" -print0 | while IFS= read -r -d $'\0' benchmark; do
113+
# benchmark_name=$(basename "$benchmark" | sed 's/_test$//')
114+
# echo "Running benchmark: $benchmark_name"
115+
116+
# # Run the benchmark with default parameters.
117+
# $benchmark --benchmark_filter=".*"
118+
# $benchmark --benchmark_filter=".*" > "results/$benchmark_name.log" 2>&1
119+
120+
# # Check the exit code of the benchmark
121+
# if [ $? -ne 0 ]; then
122+
# echo "Error: Benchmark '$benchmark_name' failed. Check the log file: results/$benchmark_name.log"
123+
# else
124+
# echo "Benchmark '$benchmark_name' completed successfully."
125+
# fi
126+
# done
127127

128128

129129
# - name: Wait For Connection

0 commit comments

Comments
 (0)