File tree Expand file tree Collapse file tree
layers/validation/checkers/certification Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# Level zero loader changelog
22## v1.24.0
33* Enable DDI Driver Extension path by default.
4+ ## v1.23.2
5+ * fix: Avoid invalid casting into loader objects when DDI extension is supported
6+ * Fix potential SIOF issue with checker layers
47## v1.23.1
58* Fix Sysman only DDI Init for zesDriver compatability
69## v1.23.0
Original file line number Diff line number Diff line change @@ -166,6 +166,17 @@ namespace driver
166166 return ZE_RESULT_SUCCESS ;
167167 };
168168
169+ // ////////////////////////////////////////////////////////////////////////
170+ zeDdiTable.CommandList .pfnCreateImmediate = [](
171+ ze_context_handle_t ,
172+ ze_device_handle_t ,
173+ const ze_command_queue_desc_t * desc,
174+ ze_command_list_handle_t * phCommandListImmediate )
175+ {
176+ *phCommandListImmediate = reinterpret_cast <ze_command_list_handle_t >(context.get ());
177+ return ZE_RESULT_SUCCESS ;
178+ };
179+
169180 // ////////////////////////////////////////////////////////////////////////
170181 zeDdiTable.CommandQueue .pfnCreate = [](
171182 ze_context_handle_t ,
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ certificationChecker::certificationChecker() {
3838 certification_checker.zeValidation = zeChecker;
3939 certification_checker.zetValidation = zetChecker;
4040 certification_checker.zesValidation = zesChecker;
41- validation_layer::context.validationHandlers .push_back (
41+ validation_layer::context.getInstance (). validationHandlers .push_back (
4242 &certification_checker);
4343 }
4444}
Original file line number Diff line number Diff line change @@ -397,7 +397,7 @@ namespace ze_lib
397397 debug_trace_message (message, to_string (register_teardown_result));
398398 } else {
399399 loaderTeardownRegistrationEnabled = true ;
400- std::string message = " ze_lib Context Init() zelRegisterTeardownCallback completed for the static loader with" ;
400+ std::string message = " ze_lib Context Init() zelRegisterTeardownCallback completed for the static loader with " ;
401401 debug_trace_message (message, to_string (register_teardown_result));
402402 }
403403 }
Original file line number Diff line number Diff line change @@ -459,9 +459,21 @@ namespace loader
459459 loader::loaderZetDdiTable = new zet_dditable_t ();
460460 loader::loaderZesDdiTable = new zes_dditable_t ();
461461 debugTraceEnabled = getenv_tobool ( " ZE_ENABLE_LOADER_DEBUG_TRACE" );
462- // Set to true if the env is not set
462+ // DDI Driver Extension Path is enabled by default.
463+ // This can be overridden by the environment variable ZE_ENABLE_LOADER_DRIVER_DDI_PATH.
463464 std::string ddiPathConfig = getenv_string (" ZE_ENABLE_LOADER_DRIVER_DDI_PATH" );
464- driverDDIPathDefault = (ddiPathConfig.empty ()) ? true : getenv_tobool (" ZE_ENABLE_LOADER_DRIVER_DDI_PATH" );
465+ if (ddiPathConfig.empty ()) {
466+ driverDDIPathDefault = true ;
467+ } else if (ddiPathConfig == " 1" || ddiPathConfig == " true" ) {
468+ driverDDIPathDefault = true ;
469+ } else if (ddiPathConfig == " 0" || ddiPathConfig == " false" ) {
470+ driverDDIPathDefault = false ;
471+ } else {
472+ driverDDIPathDefault = true ; // fallback to the default for any other value
473+ }
474+ if (debugTraceEnabled && driverDDIPathDefault) {
475+ debug_trace_message (" DDI Driver Extension Path is Enabled" , " " );
476+ }
465477 auto discoveredDrivers = discoverEnabledDrivers ();
466478 std::string loadLibraryErrorValue;
467479
You can’t perform that action at this time.
0 commit comments