Skip to content

Commit 6485823

Browse files
committed
[SYCL][UR] Disable UR_LAYER_PARAMETER_VALIDATION by default
- Only Enable UR_LAYER_PARAMETER_VALIDATION if UR_LOG_VALIDATION is set. Signed-off-by: Neil R. Spruit <[email protected]>
1 parent b91fc8c commit 6485823

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

sycl/source/detail/ur.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,10 @@ static void initializePlugins(std::vector<PluginPtr> &Plugins,
113113
// enable full validation by default.
114114
if(!LoaderConfig) {
115115
CHECK_UR_SUCCESS(urLoaderConfigCreate(&LoaderConfig))
116-
CHECK_UR_SUCCESS(urLoaderConfigEnableLayer(LoaderConfig,
117-
"UR_LAYER_PARAMETER_VALIDATION"))
116+
if (std::getenv("UR_LOG_VALIDATION")) {
117+
CHECK_UR_SUCCESS(urLoaderConfigEnableLayer(
118+
LoaderConfig, "UR_LAYER_PARAMETER_VALIDATION"))
119+
}
118120
OwnLoaderConfig = true;
119121
}
120122

sycl/test-e2e/format.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,9 @@ def get_extra_env(sycl_devices):
201201
if "level_zero:gpu" in sycl_devices and litConfig.params.get("ur_l0_debug"):
202202
extra_env.append("UR_L0_DEBUG={}".format(test.config.ur_l0_debug))
203203

204+
if "level_zero:gpu" in sycl_devices:
205+
extra_env.append("UR_LOG_VALIDATION=\"level:info;output:stdout;flush:info\"")
206+
204207
if "level_zero:gpu" in sycl_devices and litConfig.params.get(
205208
"ur_l0_leaks_debug"
206209
):

0 commit comments

Comments
 (0)