Skip to content

Commit

Permalink
Enable more debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
ianayl committed Sep 12, 2024
1 parent 606c02a commit 5dd976e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .github/workflows/sycl-linux-run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -380,17 +380,23 @@ jobs:
exit $ret
- name: Install deps
if: inputs.tests_selector == 'benchmark' && success()
run: |
sudo apt install -y ssh
- name: Run compute-benchmarks
id: run_benchmarks
if: inputs.tests_selector == 'benchmark' && success()
run: |
export CMPLR_ROOT=$PWD/toolchain
./devops/scripts/benchmarking/benchmark.sh
echo $?
- name: Push compute-benchmarks
if: inputs.tests_selector == 'benchmark' && success()
env:
SSH_KEY: ${{secrets.ACTIONS_DEPLOY_KEY}}
run: |
find -maxdepth 3
mkdir -p ~/.ssh
echo "$SSH_KEY" > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
Expand Down
2 changes: 2 additions & 0 deletions devops/scripts/benchmarking/benchmark-ci.conf
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ COMPUTE_BENCH_BRANCH="update-sycl"

# Path to compile and build compute-benchmarks
COMPUTE_BENCH_PATH="./compute-benchmarks"
# Compile flags used to build compute-benchmarks
COMPUTE_BENCH_COMPILE_FLAGS="-j8"

# Path to temporarily store compute-benchmark results
OUTPUT_PATH="."
Expand Down
2 changes: 1 addition & 1 deletion devops/scripts/benchmarking/benchmark.sh
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ process_benchmarks() {
grep "^[^#]" "$TESTS_CONFIG" | while read -r testcase; do
echo "# Running $testcase..."
test_csv_output="$OUTPUT_PATH/$testcase-$TIMESTAMP.csv"
$COMPUTE_BENCH_PATH/build/bin/$testcase --csv | tail +8 > "$test_csv_output"
$COMPUTE_BENCH_PATH/build/bin/$testcase --csv | tail +8 | tee "$test_csv_output"
# The tail +8 filters out initial debug prints not in csv format
if [ "$?" -eq 0 ] && [ -s "$test_csv_output" ]; then
check_and_cache $testcase $test_csv_output
Expand Down

0 comments on commit 5dd976e

Please sign in to comment.