Skip to content

Commit 70ff5af

Browse files
committed
[SYCL][L0][Plugin] Fix a crash in resetCommandLists
Signed-off-by: Arvind Sudarsanam <[email protected]>
1 parent 75172b1 commit 70ff5af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sycl/plugins/level_zero/pi_level_zero.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1141,7 +1141,7 @@ pi_result resetCommandLists(pi_queue Queue) {
11411141
it != Queue->CommandListMap.end(); ++it) {
11421142
// It is possible that the fence was already noted as signalled and
11431143
// reset. In that case the InUse flag will be false.
1144-
if (it->second.InUse) {
1144+
if (it->second.ZeFence != nullptr && it->second.InUse) {
11451145
ze_result_t ZeResult =
11461146
ZE_CALL_NOCHECK(zeFenceQueryStatus, (it->second.ZeFence));
11471147
if (ZeResult == ZE_RESULT_SUCCESS) {

0 commit comments

Comments
 (0)