From 9f677e23c022955d552f2d530488ef51a95f0d6c Mon Sep 17 00:00:00 2001 From: Andrzej Janik Date: Fri, 22 Nov 2024 18:57:19 +0100 Subject: Add basic cuModule*, add handful of missing stuff --- zluda/src/impl/context.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'zluda/src/impl/context.rs') 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() } +} -- cgit v1.2.3