Skip to content
This repository was archived by the owner on Mar 28, 2023. It is now read-only.

Commit 26779b8

Browse files
authored
[SYCL] Added support for ZE_DEBUG (#701)
Signed-off-by: Byoungro So <[email protected]>
1 parent 97a1aa7 commit 26779b8

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

SYCL/Regression/unoptimized_stream.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
// UNSUPPORTED: cuda
77
// Disable test due to flaky failure on CUDA(issue #387)
88

9+
// XFAIL: ze_debug-1,ze_debug4
10+
911
// NOTE: The libclc target used by the CUDA backend used to generate atomic load
1012
// variants that were unsupported by NVPTX. Even if they were not used
1113
// directly, sycl::stream and other operations would keep the invalid

SYCL/lit.cfg.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,11 @@
100100
if lit_config.params.get('matrix', False):
101101
config.available_features.add('matrix')
102102

103+
#support for LIT parameter ze_debug<num>
104+
if lit_config.params.get('ze_debug'):
105+
config.ze_debug = lit_config.params.get('ze_debug')
106+
lit_config.note("ZE_DEBUG: "+config.ze_debug)
107+
103108
# check if compiler supports CL command line options
104109
cl_options=False
105110
sp = subprocess.getstatusoutput(config.dpcpp_compiler+' /help')
@@ -293,6 +298,9 @@
293298

294299
if config.sycl_be == "level_zero":
295300
gpu_l0_check_substitute = "| FileCheck %s"
301+
if lit_config.params.get('ze_debug'):
302+
gpu_run_substitute = " env ZE_DEBUG={ZE_DEBUG} SYCL_DEVICE_FILTER=level_zero:gpu,host ".format(ZE_DEBUG=config.ze_debug)
303+
config.available_features.add('ze_debug'+config.ze_debug)
296304

297305
if platform.system() == "Linux":
298306
gpu_run_on_linux_substitute = "env SYCL_DEVICE_FILTER={SYCL_PLUGIN}:gpu,host ".format(SYCL_PLUGIN=config.sycl_be)

0 commit comments

Comments
 (0)