mirror of
https://github.com/vosen/ZLUDA.git
synced 2025-07-29 04:18:39 +00:00
Support more property queries
This commit is contained in:
parent
a6765baa3a
commit
eac5fbd806
7 changed files with 103 additions and 16 deletions
|
@ -833,6 +833,12 @@ impl<'a> Kernel<'a> {
|
|||
check!(sys::zeKernelSetGroupSize(self.0, x, y, z));
|
||||
Ok(())
|
||||
}
|
||||
|
||||
pub fn get_properties(&self) -> Result<Box<sys::ze_kernel_properties_t>> {
|
||||
let mut props = Box::new(unsafe { mem::zeroed::<sys::ze_kernel_properties_t>() });
|
||||
check!(sys::zeKernelGetProperties(self.0, props.as_mut() as *mut _));
|
||||
Ok(props)
|
||||
}
|
||||
}
|
||||
|
||||
impl<'a> Drop for Kernel<'a> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue