aboutsummaryrefslogtreecommitdiffhomepage
path: root/zluda/src/impl/function.rs
diff options
context:
space:
mode:
authorAndrzej Janik <[email protected]>2021-05-28 00:14:45 +0200
committerAndrzej Janik <[email protected]>2021-05-28 00:14:45 +0200
commit2fc7af0434256a353af130708a2dafb97be99d24 (patch)
treeac9321f4b909824c37fbd21b6de6c76bff985d40 /zluda/src/impl/function.rs
parente40785aa7491de16c65de7aa599105102ffa7355 (diff)
downloadZLUDA-2fc7af0434256a353af130708a2dafb97be99d24.tar.gz
ZLUDA-2fc7af0434256a353af130708a2dafb97be99d24.zip
Fix level zero bindings
Diffstat (limited to 'zluda/src/impl/function.rs')
-rw-r--r--zluda/src/impl/function.rs14
1 files changed, 8 insertions, 6 deletions
diff --git a/zluda/src/impl/function.rs b/zluda/src/impl/function.rs
index e236160..bcb7bd6 100644
--- a/zluda/src/impl/function.rs
+++ b/zluda/src/impl/function.rs
@@ -145,12 +145,14 @@ pub fn launch_kernel(
.set_group_size(block_dim_x, block_dim_y, block_dim_z)?;
func.legacy_args.reset();
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 [],
- )?;
+ unsafe {
+ cmd_list.append_launch_kernel(
+ &mut func.base,
+ &[grid_dim_x, grid_dim_y, grid_dim_z],
+ None,
+ &mut [],
+ )?;
+ }
stream.queue.execute_and_synchronize(cmd_list)?;
Ok(())
})?