Skip to content

Commit

Permalink
Attempt to suppress segfault
Browse files Browse the repository at this point in the history
  • Loading branch information
ianayl committed Jul 3, 2024
1 parent c4a0f3d commit 8c01f8c
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/sycl-benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ jobs:
cd -
echo LD_LIBRARY_PATH=$SYCL_ARTIFACT_PATH/lib/:$LD_LIBRARY_PATH >> $GITHUB_ENV
- name: Run sycl-bench tests
continue-on-error: true
id: run-benchmarks
run: |
# Determine the index of a column in a CSV given its title
# Usage: get_csv_col_index <benchmark output .csv file> <column name>
Expand Down Expand Up @@ -182,9 +182,10 @@ jobs:
tmp_bench_output="./sycl-bench/build/bench-$TIMESTAMP/$(basename $file).csv"
tmp_bench_log="./sycl-bench/build/bench-$TIMESTAMP/$(basename $file).log"
tmp_err="0"
printf "\n### Results for $(basename $file) ###\n" | tee -a $tmp_summary_file
$file --output=$tmp_bench_output --no-verification --size=256 2> "$tmp_bench_log"
print_bench_res $tmp_bench_output $? $tmp_summary_file
$file --output=$tmp_bench_output --no-verification --size=256 2> "$tmp_bench_log" || tmp_err=$?
print_bench_res $tmp_bench_output $tmp_err $tmp_summary_file
# Remove log if nothing logged
[ ! -s "$tmp_bench_log" ] && rm "$tmp_bench_log" || cat "$tmp_bench_log" | tee -a $tmp_summary_file
done
Expand All @@ -195,15 +196,18 @@ jobs:
run
- name: Check results
if: steps.run-benchmarks.outcome == 'success'
run: |
cat "./sycl-bench/build/bench-$TIMESTAMP/summary.txt"
- name: Pack results
if: steps.run-benchmarks.outcome == 'success'
id: pack_results
run: |
ARCHIVE_PATH="./sycl-bench/build/bench-$TIMESTAMP.tar.gz"
tar -I gzip -cf "$ARCHIVE_PATH" -C "./sycl-bench/build/bench-$TIMESTAMP" .
echo ARCHIVE_PATH="$ARCHIVE_PATH" >> $GITHUB_OUTPUT
- name: Upload results
if: steps.run-benchmarks.outcome == 'success'
uses: actions/upload-artifact@v4
with:
name: sycl_benchmark_res_${{ env.TIMESTAMP }}
Expand Down

0 comments on commit 8c01f8c

Please sign in to comment.