We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 75172b1 commit 70ff5afCopy full SHA for 70ff5af
sycl/plugins/level_zero/pi_level_zero.cpp
@@ -1141,7 +1141,7 @@ pi_result resetCommandLists(pi_queue Queue) {
1141
it != Queue->CommandListMap.end(); ++it) {
1142
// It is possible that the fence was already noted as signalled and
1143
// reset. In that case the InUse flag will be false.
1144
- if (it->second.InUse) {
+ if (it->second.ZeFence != nullptr && it->second.InUse) {
1145
ze_result_t ZeResult =
1146
ZE_CALL_NOCHECK(zeFenceQueryStatus, (it->second.ZeFence));
1147
if (ZeResult == ZE_RESULT_SUCCESS) {
0 commit comments