Skip to content

Commit

Permalink
Avoid DDI table reinit if ZE_ENABLE_LOADER_INTERCEPT=1
Browse files Browse the repository at this point in the history
Signed-off-by: Neil R. Spruit <neil.r.spruit@intel.com>
  • Loading branch information
nrspruit committed Aug 28, 2024
1 parent bb12735 commit 49bac52
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source/loader/ze_loader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,8 @@ namespace loader
}
it = drivers->erase(it);
// If the number of drivers is now ==1, then we need to reinit the ddi tables to pass through.
if (drivers->size() == 1) {
// If ZE_ENABLE_LOADER_INTERCEPT is set to 1, then even if drivers were removed, don't reinit the ddi tables.
if (drivers->size() == 1 && !loader::context->forceIntercept) {
*requireDdiReinit = true;
}
if(return_first_driver_result)
Expand Down

0 comments on commit 49bac52

Please # to comment.