aboutsummaryrefslogtreecommitdiffhomepage
path: root/zluda/src/impl/context.rs
diff options
context:
space:
mode:
authorAndrzej Janik <[email protected]>2024-11-22 18:57:19 +0100
committerAndrzej Janik <[email protected]>2024-11-22 18:57:19 +0100
commit9f677e23c022955d552f2d530488ef51a95f0d6c (patch)
treefe1e5c51594e03e365bebaa51bc3dc66ccefaf1f /zluda/src/impl/context.rs
parent3ec7bffdc5706b4302e5b39411354f09dec02421 (diff)
downloadZLUDA-9f677e23c022955d552f2d530488ef51a95f0d6c.tar.gz
ZLUDA-9f677e23c022955d552f2d530488ef51a95f0d6c.zip
Add basic cuModule*, add handful of missing stuff
Diffstat (limited to 'zluda/src/impl/context.rs')
-rw-r--r--zluda/src/impl/context.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/zluda/src/impl/context.rs b/zluda/src/impl/context.rs
index 61cb92e..d1a135f 100644
--- a/zluda/src/impl/context.rs
+++ b/zluda/src/impl/context.rs
@@ -7,3 +7,7 @@ pub(crate) unsafe fn get_limit(pvalue: *mut usize, limit: hipLimit_t) -> hipErro
pub(crate) fn set_limit(limit: hipLimit_t, value: usize) -> hipError_t {
unsafe { hipDeviceSetLimit(limit, value) }
}
+
+pub(crate) fn synchronize() -> hipError_t {
+ unsafe { hipDeviceSynchronize() }
+}