File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -113,8 +113,10 @@ static void initializePlugins(std::vector<PluginPtr> &Plugins,
113
113
// enable full validation by default.
114
114
if (!LoaderConfig) {
115
115
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
+ }
118
120
OwnLoaderConfig = true ;
119
121
}
120
122
Original file line number Diff line number Diff line change @@ -201,6 +201,9 @@ def get_extra_env(sycl_devices):
201
201
if "level_zero:gpu" in sycl_devices and litConfig .params .get ("ur_l0_debug" ):
202
202
extra_env .append ("UR_L0_DEBUG={}" .format (test .config .ur_l0_debug ))
203
203
204
+ if "level_zero:gpu" in sycl_devices :
205
+ extra_env .append ("UR_LOG_VALIDATION=\" level:info;output:stdout;flush:info\" " )
206
+
204
207
if "level_zero:gpu" in sycl_devices and litConfig .params .get (
205
208
"ur_l0_leaks_debug"
206
209
):
You can’t perform that action at this time.
0 commit comments