Skip to content

Commit 7ed4491

Browse files
[SYCL][E2E] Print features detected by lit (#16866)
1 parent bc59e74 commit 7ed4491

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ runs:
5959
- name: SYCL End-to-end tests
6060
shell: bash {0}
6161
env:
62-
LIT_OPTS: -v --no-progress-bar --show-unsupported --show-pass --show-xfail --max-time 3600 --time-tests --param test-mode=${{ inputs.testing_mode }} --param sycl_devices=${{ inputs.target_devices }} ${{ inputs.extra_lit_opts }}
62+
LIT_OPTS: -v --no-progress-bar --show-unsupported --show-pass --show-xfail --max-time 3600 --time-tests --param print_features=True --param test-mode=${{ inputs.testing_mode }} --param sycl_devices=${{ inputs.target_devices }} ${{ inputs.extra_lit_opts }}
6363
run: |
6464
ninja -C build-e2e check-sycl-e2e > e2e.log 2>&1
6565
exit_code=$?

sycl/test-e2e/lit.cfg.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -894,6 +894,14 @@ def open_check_file(file_name):
894894
("%clang", " " + config.dpcpp_compiler + " " + config.c_flags)
895895
)
896896

897+
if lit_config.params.get("print_features", False):
898+
lit_config.note(
899+
"Global features: {}".format(" ".join(sorted(config.available_features)))
900+
)
901+
lit_config.note("Per-device features:")
902+
for dev, features in config.sycl_dev_features.items():
903+
lit_config.note("\t{}: {}".format(dev, " ".join(sorted(features))))
904+
897905
# Set timeout for a single test
898906
try:
899907
import psutil

0 commit comments

Comments
 (0)