Skip to content

Commit 9e82448

Browse files
committed
Update expected values of SYCL_UR_TRACE environment variable
1 parent 89dc3a5 commit 9e82448

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

source/ur/ur.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@ bool PrintTrace = [] {
1818
const char *PiRet = std::getenv("SYCL_PI_TRACE");
1919
const char *Trace = UrRet ? UrRet : (PiRet ? PiRet : nullptr);
2020
const int TraceValue = Trace ? std::stoi(Trace) : 0;
21-
if ((PiRet && (TraceValue == -1 || TraceValue == 2)) ||
22-
(UrRet && TraceValue != 0)) {
21+
if (TraceValue == -1 || TraceValue == 2) {
2322
return true;
2423
}
2524
return false;

0 commit comments

Comments
 (0)