diff options
author | Andrzej Janik <[email protected]> | 2020-09-24 01:54:16 +0200 |
---|---|---|
committer | Andrzej Janik <[email protected]> | 2020-09-24 01:54:16 +0200 |
commit | 3f41f21acb51f7a1d305630dc2a4e5c5df5e4a83 (patch) | |
tree | d6d2fb03034b00b8b711bed08802bf0e2dbb275e /level_zero | |
parent | 03005140dde6c45a47d1fe03a183d76af38b7a12 (diff) | |
download | ZLUDA-3f41f21acb51f7a1d305630dc2a4e5c5df5e4a83.tar.gz ZLUDA-3f41f21acb51f7a1d305630dc2a4e5c5df5e4a83.zip |
Implement more host code, moving execution further
Diffstat (limited to 'level_zero')
-rw-r--r-- | level_zero/src/ze.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/level_zero/src/ze.rs b/level_zero/src/ze.rs index cee736c..16b9130 100644 --- a/level_zero/src/ze.rs +++ b/level_zero/src/ze.rs @@ -118,6 +118,12 @@ impl Device { Ok(props)
}
+ pub fn get_compute_properties(&self) -> Result<Box<sys::ze_device_compute_properties_t>> {
+ let mut props = Box::new(unsafe { mem::zeroed::<sys::ze_device_compute_properties_t>() });
+ check! { sys::zeDeviceGetComputeProperties(self.0, props.as_mut()) };
+ Ok(props)
+ }
+
pub unsafe fn mem_alloc_device(
&mut self,
ctx: &mut Context,
|