Skip to content

Commit d487cce

Browse files
committed
[SYCL] [L0] Turn on remove finished events from wait list
Signed-off-by: Arvind Sudarsanam <[email protected]>
1 parent ced4e34 commit d487cce

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sycl/plugins/level_zero/pi_level_zero.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -756,7 +756,8 @@ pi_result _pi_queue::executeOpenCommandList() {
756756
}
757757

758758
static const bool FilterEventWaitList = [] {
759-
const bool RetVal = std::getenv("SYCL_PI_LEVEL_ZERO_FILTER_EVENT_WAIT_LIST");
759+
const char *Ret = std::getenv("SYCL_PI_LEVEL_ZERO_FILTER_EVENT_WAIT_LIST");
760+
const bool RetVal = Ret ? std::stoi(Ret) : 1;
760761
return RetVal;
761762
}();
762763

0 commit comments

Comments
 (0)