aboutsummaryrefslogtreecommitdiffhomepage
path: root/notcuda/src/impl/context.rs
diff options
context:
space:
mode:
Diffstat (limited to 'notcuda/src/impl/context.rs')
-rw-r--r--notcuda/src/impl/context.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/notcuda/src/impl/context.rs b/notcuda/src/impl/context.rs
index 9689ecf..873fc47 100644
--- a/notcuda/src/impl/context.rs
+++ b/notcuda/src/impl/context.rs
@@ -249,6 +249,11 @@ pub fn detach(pctx: *mut Context) -> Result<(), CUresult> {
})?
}
+pub(crate) fn synchronize() -> CUresult {
+ // TODO: change the implementation once we do async stream operations
+ CUresult::CUDA_SUCCESS
+}
+
#[cfg(test)]
mod test {
use super::super::test::CudaDriverFns;