MCPcopy Index your code
hub / github.com/arrayfire/arrayfire-rust / sync

Function sync

src/core/device.rs:315–320  ·  view source on GitHub ↗

Sync all operations on given device # Parameters - `device` on which the operations are to be synced # Return Values None

(device: i32)

Source from the content-addressed store, hash-verified

313///
314/// None
315pub fn sync(device: i32) {
316 unsafe {
317 let err_val = af_sync(device as c_int);
318 HANDLE_ERROR(AfError::from(err_val));
319 }
320}
321
322/// Allocate non-pageable memory on HOST memory
323pub unsafe fn alloc_pinned(bytes: usize) -> void_ptr {

Callers 2

mainFunction · 0.85

Calls 1

HANDLE_ERRORFunction · 0.85

Tested by 1