Skip to content

Commit b7dd092

Browse files
committed
Address more review comments
1 parent 6a44253 commit b7dd092

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sycl/plugins/level_zero/pi_level_zero.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,9 @@ static const std::pair<int, int> getRangeOfAllowedCopyEngines = [] {
9292
}();
9393

9494
static const bool CopyEngineRequested = [] {
95-
const char *CopyEngine = std::getenv("SYCL_PI_LEVEL_ZERO_USE_COPY_ENGINE");
96-
bool UseCopyEngine = (!CopyEngine || (std::stoi(CopyEngine) != 0));
97-
return UseCopyEngine;
95+
int LowerCopyQueueIndex = getRangeOfAllowedCopyEngines.first;
96+
int UpperCopyQueueIndex = getRangeOfAllowedCopyEngines.second;
97+
return ((LowerCopyQueueIndex != -1) || (UpperCopyQueueIndex != -1));
9898
}();
9999

100100
// This class encapsulates actions taken along with a call to Level Zero API.

0 commit comments

Comments
 (0)