Skip to content

Commit

Permalink
Corrected last event access
Browse files Browse the repository at this point in the history
  • Loading branch information
TejaX-Alaghari committed Jan 29, 2025
1 parent 1d65b38 commit 8129504
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clang/runtime/dpct-rt/include/dpct/device.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,7 @@ class device_ext : public sycl::device {
std::vector<std::shared_ptr<sycl::queue>> current_queues(_queues);
lock.unlock();
for (const auto &q : current_queues) {
if (q->is_in_order()) {
if (q->is_in_order() && q->ext_oneapi_get_last_event()) {
last_events.push_back(q->ext_oneapi_get_last_event());
}
}
Expand Down

0 comments on commit 8129504

Please sign in to comment.