diff options
author | Andrzej Janik <[email protected]> | 2021-05-28 00:14:45 +0200 |
---|---|---|
committer | Andrzej Janik <[email protected]> | 2021-05-28 00:14:45 +0200 |
commit | 2fc7af0434256a353af130708a2dafb97be99d24 (patch) | |
tree | ac9321f4b909824c37fbd21b6de6c76bff985d40 /zluda/src/impl/function.rs | |
parent | e40785aa7491de16c65de7aa599105102ffa7355 (diff) | |
download | ZLUDA-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.rs | 14 |
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(()) })? |