Skip to content

Commit d8f1c98

Browse files
Merge pull request #1946 from callumfare/callum/update_ur_trace_env_var
Update expected values of SYCL_UR_TRACE environment variable
2 parents 6e8efa3 + 9e82448 commit d8f1c98

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)