fn ctx_sync(ptr: CUcontext) -> Result<()> {
    ctx_push(ptr)?;
    unsafe { ffi_call!(cuCtxSynchronize) }?;
    let ptr_new = ctx_pop()?;
    assert_eq!(ptr, ptr_new);
    Ok(())
}
/// Block until all tasks in this context to be complete.
Block until all tasks in this context to be complete.
Block until all tasks in this context to be complete .
fn ctx_sync(ptr: CUcontext) -> Result<()> {
    ctx_push(ptr)?;
    unsafe { ffi_call!(cuCtxSynchronize) }?;
    let ptr_new = ctx_pop()?;
    assert_eq!(ptr, ptr_new);
    Ok(())
}
fn ctx_sync ( ptr : CUcontext ) -> Result < ( ) > { ctx_push ( ptr ) ? ; unsafe { ffi_call ! ( cuCtxSynchronize ) } ? ; let ptr_new = ctx_pop ( ) ? ; assert_eq ! ( ptr ptr_new ) ; Ok ( ( ) ) }
Block until all tasks in this context to be complete.
Block until all tasks in this context to be complete .
ptr
CUcontext
ptr
CUcontext