aboutsummaryrefslogtreecommitdiffhomepage
path: root/zluda
diff options
context:
space:
mode:
Diffstat (limited to 'zluda')
-rw-r--r--zluda/src/impl/mod.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/zluda/src/impl/mod.rs b/zluda/src/impl/mod.rs
index 48b5fb5..2bdd613 100644
--- a/zluda/src/impl/mod.rs
+++ b/zluda/src/impl/mod.rs
@@ -294,6 +294,8 @@ impl GlobalState {
let prev_event_slice = prev_event_array.as_ref().map_or(&empty[..], |arr| &arr[..]);
let (new_event, new_marker) = event_pool.get(l0_dev, l0_ctx)?;
f(&mut cmd_list, &new_event, prev_event_slice)?;
+ cmd_list.close()?;
+ unsafe { stream_data.queue.execute(&cmd_list, None)? };
stream_data.push_event((new_event, new_marker));
Ok(())
})?