cuLite v0.3.1
A lite CUDA C++ Interface
Loading...
Searching...
No Matches
imalloc.hpp File Reference

Classes

class  culite::DeviceBufferVoid
 A RAII wrapper for untyped device memory allocation. More...
class  culite::DeviceBuffer< T >
 A RAII wrapper for device memory allocation. More...
class  culite::PinnedBufferVoid
 A RAII wrapper for untyped pinned host memory allocation. More...
class  culite::PinnedBuffer< T >
 A RAII wrapper for pinned host memory allocation. More...

Functions

alloc_t culite::detect_allocation_type (const void *ptr)
 Detects the allocation type of a given memory pointer.
void * culite::device_alloc (std::size_t size)
 Allocates memory on the device.
void culite::device_free (void *ptr) noexcept
 Frees a block of memory on the device.
template<typename T>
T * culite::device_alloc_t (std::size_t n)
 Allocates typed memory on the device.
void * culite::pinned_alloc (std::size_t size)
 Allocates page-locked (pinned) host memory.
void culite::pinned_free (void *ptr) noexcept
 Frees a block of pinned host memory.
template<typename T>
T * culite::pinned_alloc_t (std::size_t n)
 Allocates typed pinned host memory.
void culite::auto_free (void *ptr)
 Automatically detects and frees memory based on allocation type.