mirror of
https://github.com/vosen/ZLUDA.git
synced 2025-08-07 00:29:24 +00:00
Use immediate command lists
This commit is contained in:
parent
ecc33f7b10
commit
ce25035051
3 changed files with 28 additions and 18 deletions
|
@ -1122,6 +1122,11 @@ impl<'a> Event<'a> {
|
|||
Ok(unsafe { Self::from_ffi(result) })
|
||||
}
|
||||
|
||||
pub fn host_synchronize(&self, timeout_ns: u64) -> Result<()> {
|
||||
check!{ sys::zeEventHostSynchronize(self.as_ffi(), timeout_ns) };
|
||||
Ok(())
|
||||
}
|
||||
|
||||
pub fn is_ready(&self) -> Result<bool> {
|
||||
let status = unsafe { sys::zeEventQueryStatus(self.as_ffi()) };
|
||||
match status {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue