Allocate pinned memory using ArrayFire's memory manager. More...
Functions | |
| af_err | af_alloc_pinned (void **ptr, const dim_t bytes) |
| void * | pinned (const size_t elements, const dtype type) |
| Allocate pinned memory using ArrayFire's memory manager. | |
| template<typename T> | |
| T * | pinned (const size_t elements) |
| Allocate pinned memory using ArrayFire's memory manager. | |
Allocate pinned memory using ArrayFire's memory manager.
These functions allocate page locked memory. This type of memory has better performance characteristics but require additional care because they are a limited resource.
| T * pinned | ( | const size_t | elements | ) |
Allocate pinned memory using ArrayFire's memory manager.
These functions allocate page locked memory. This type of memory has better performance characteristics but require additional care because they are a limited resource.
| [in] | elements | the number of elements to allocate |
| void * pinned | ( | const size_t | elements, |
| const dtype | type ) |
Allocate pinned memory using ArrayFire's memory manager.
These functions allocate page locked memory. This type of memory has better performance characteristics but require additional care because they are a limited resource.
| [in] | elements | the number of elements to allocate |
| [in] | type | is the type of the elements to allocate |