Sync all operations on given device # Parameters - `device` on which the operations are to be synced # Return Values None
(device: i32)
| 313 | /// |
| 314 | /// None |
| 315 | pub 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 |
| 323 | pub unsafe fn alloc_pinned(bytes: usize) -> void_ptr { |