aboutsummaryrefslogtreecommitdiffhomepage
path: root/level_zero/src/ze.rs
diff options
context:
space:
mode:
authorAndrzej Janik <[email protected]>2020-08-05 01:58:01 +0200
committerAndrzej Janik <[email protected]>2020-08-05 01:58:01 +0200
commit7b407d1c44535c2aef2c1ca0eb1fbbb58a1513d2 (patch)
treec7d03a648d8fdd38893aa57f2c0393d9ab626614 /level_zero/src/ze.rs
parenta10ee48e91dba08f4709d9e9928a530bec8e93bb (diff)
downloadZLUDA-7b407d1c44535c2aef2c1ca0eb1fbbb58a1513d2.tar.gz
ZLUDA-7b407d1c44535c2aef2c1ca0eb1fbbb58a1513d2.zip
Implement initial support for cvt instruction (only integer-to-integer)
Diffstat (limited to 'level_zero/src/ze.rs')
-rw-r--r--level_zero/src/ze.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/level_zero/src/ze.rs b/level_zero/src/ze.rs
index 4f120de..eb3887b 100644
--- a/level_zero/src/ze.rs
+++ b/level_zero/src/ze.rs
@@ -743,7 +743,7 @@ impl<'a> Kernel<'a> {
check!(sys::zeKernelSetArgumentValue(
self.0,
index,
- mem::size_of::<T>(),
+ mem::size_of::<*const ()>(),
&ptr as *const _ as *const _,
));
Ok(())