Skip to content

Commit 604dde7

Browse files
committed
Enable unitrace
1 parent 64928c5 commit 604dde7

File tree

3 files changed

+27
-1
lines changed

3 files changed

+27
-1
lines changed

.github/workflows/sycl-linux-run-tests.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,12 @@ on:
140140
type: string
141141
default: 'false'
142142
required: False
143+
enable_unitrace:
144+
description: |
145+
Enable --unitrace
146+
type: string
147+
default: 'false'
148+
required: False
143149

144150
workflow_dispatch:
145151
inputs:
@@ -359,6 +365,7 @@ jobs:
359365
preset: ${{ inputs.benchmark_preset }}
360366
dry_run: ${{ inputs.benchmark_dry_run }}
361367
build_ref: ${{ inputs.repo_ref }}
368+
enable_unitrace: ${{ inputs.enable_unitrace }}
362369
env:
363370
RUNNER_TAG: ${{ inputs.runner }}
364371
GITHUB_TOKEN: ${{ secrets.LLVM_SYCL_BENCHMARK_TOKEN }}

.github/workflows/sycl-ur-perf-benchmarking.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,12 @@ on:
4747
backend:
4848
type: string
4949
required: true
50+
enable_unitrace:
51+
type: string # true/false: workflow_dispatch does not support booleans
52+
description: |
53+
Enable --unitrace
54+
required: false
55+
default: 'false'
5056

5157
workflow_dispatch:
5258
inputs:
@@ -102,6 +108,13 @@ on:
102108
- 'level_zero:gpu'
103109
- 'level_zero_v2:gpu'
104110
# As of #17407, sycl-linux-build now builds v2 by default
111+
enable_unitrace:
112+
description: Enable unitrace
113+
type: choice
114+
options:
115+
- false
116+
- true
117+
default: false
105118

106119
permissions: read-all
107120

@@ -196,3 +209,4 @@ jobs:
196209
toolchain_artifact: ${{ needs.build_sycl.outputs.toolchain_artifact }}
197210
toolchain_artifact_filename: ${{ needs.build_sycl.outputs.toolchain_artifact_filename }}
198211
toolchain_decompress_command: ${{ needs.build_sycl.outputs.toolchain_decompress_command }}
212+
enable_unitrace: ${{ inputs.enable_unitrace }}

devops/actions/run-tests/benchmark/action.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ inputs:
3232
dry_run:
3333
type: string
3434
required: False
35+
enable_unitrace:
36+
type: string # true/false: workflow_dispatch does not support booleans
37+
required: False
38+
default: "false"
3539

3640
runs:
3741
using: "composite"
@@ -203,7 +207,8 @@ runs:
203207
--output-dir "./llvm-ci-perf-results/" \
204208
--preset "$PRESET" \
205209
--timestamp-override "$SAVE_TIMESTAMP" \
206-
--detect-version sycl,compute_runtime
210+
--detect-version sycl,compute_runtime \
211+
${{ inputs.enable_unitrace == 'true' && '--unitrace' || '' }}
207212

208213
echo "-----"
209214
python3 ./devops/scripts/benchmarks/compare.py to_hist \

0 commit comments

Comments
 (0)