diff options
Diffstat (limited to 'zluda/src/impl/function.rs')
-rw-r--r-- | zluda/src/impl/function.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/zluda/src/impl/function.rs b/zluda/src/impl/function.rs index 11f15e6..e236160 100644 --- a/zluda/src/impl/function.rs +++ b/zluda/src/impl/function.rs @@ -144,14 +144,14 @@ pub fn launch_kernel( func.base .set_group_size(block_dim_x, block_dim_y, block_dim_z)?; func.legacy_args.reset(); - let mut cmd_list = stream.command_list()?; + let cmd_list = stream.command_list()?; cmd_list.append_launch_kernel( &mut func.base, &[grid_dim_x, grid_dim_y, grid_dim_z], None, &mut [], )?; - stream.queue.execute(cmd_list)?; + stream.queue.execute_and_synchronize(cmd_list)?; Ok(()) })? } |