File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
unified-runtime/source/adapters/level_zero Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -508,13 +508,15 @@ bool ur_platform_handle_t_::allowDriverInOrderLists(bool OnlyIfRequested) {
508508 bool CompatibleDriver = this ->isDriverVersionNewerOrSimilar (
509509 1 , L0_DRIVER_INORDER_MINOR_VERSION, L0_DRIVER_INORDER_PATCH_VERSION);
510510 bool DriverInOrderRequested = UrRet ? std::atoi (UrRet) != 0 : false ;
511- if (OnlyIfRequested) {
512- return DriverInOrderRequested;
513- }
514511 bool CanUseDriverInOrderLists = CompatibleDriver || DriverInOrderRequested;
515512 return CanUseDriverInOrderLists;
516513 }();
517514
515+ if (OnlyIfRequested) {
516+ const char *UrRet = std::getenv (" UR_L0_USE_DRIVER_INORDER_LISTS" );
517+ bool DriverInOrderRequested = UrRet ? std::atoi (UrRet) != 0 : false ;
518+ return DriverInOrderRequested;
519+ }
518520 return UseDriverInOrderLists;
519521}
520522
You can’t perform that action at this time.
0 commit comments