![]() |
Documentation 6b54b78464
|
Functions | |
| template<class T , bool ZeroInit = false> | |
| T * | gpu_alloc (size_t size) noexcept |
| Memory allocation for variables on the GPU. | |
| template<class T > | |
| void | gpu_free (T *ptr) noexcept |
| Free memory allocated on the GPU with gpu_alloc. | |
| template<class T > | |
| T * | gpu_alloc_cpy (const T *src_ptr, size_t size) noexcept |
| Memory allocation for variables on the GPU along with initialization from a source host array. | |
| template<class T , bool ZeroInit = false> | |
| T * | pinned_alloc (size_t size) noexcept |
| Page-locked ("pinned") host memory allocation. | |
| template<class T > | |
| void | pinned_free (T *ptr) noexcept |
| Free memory allocated with pinned_alloc. | |
|
inlinenoexcept |
Memory allocation for variables on the GPU.
| [in] | size | in bytes. |
| ZeroInit,initialize | memory to 0. |
|
inlinenoexcept |
Memory allocation for variables on the GPU along with initialization from a source host array.
| [in] | size | in bytes. |
|
inlinenoexcept |
Free memory allocated on the GPU with gpu_alloc.
| [in] | ptr,pointer | to memory we want to release. |
|
inlinenoexcept |
Page-locked ("pinned") host memory allocation.
| [in] | size | in bytes. |
| ZeroInit,initialize | memory to 0. |
|
inlinenoexcept |
Free memory allocated with pinned_alloc.
| [in] | ptr,pointer | to memory we want to release. |