aboutsummaryrefslogtreecommitdiffhomepage
path: root/level_zero/src/ze.rs
diff options
context:
space:
mode:
authorAndrzej Janik <[email protected]>2021-07-04 16:46:07 +0200
committerAndrzej Janik <[email protected]>2021-07-04 16:46:07 +0200
commitce25035051bbe462bbabec7c446cd62c5f07f88f (patch)
treebf70a3fd4d4f9f5a040e440aa4a527592be48211 /level_zero/src/ze.rs
parentecc33f7b105373264807d09f6bdcadb93e59f1f0 (diff)
downloadZLUDA-ce25035051bbe462bbabec7c446cd62c5f07f88f.tar.gz
ZLUDA-ce25035051bbe462bbabec7c446cd62c5f07f88f.zip
Use immediate command lists
Diffstat (limited to 'level_zero/src/ze.rs')
-rw-r--r--level_zero/src/ze.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/level_zero/src/ze.rs b/level_zero/src/ze.rs
index 30146a2..27a61c8 100644
--- a/level_zero/src/ze.rs
+++ b/level_zero/src/ze.rs
@@ -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 {