Typesafe wrapper of free_list_base for maintaining free-list memory pools. More...
#include <CUDA/cudafreelist.H>
Public Member Functions | |
cuda_free_list () | |
Construct an (empty) free list. | |
void * | allocate (std::size_t bytes, int dev) |
void | deallocate (void *space, int dev) |
void | release_free_nodes () |
Release all nodes currently on the free list (e.g. to conserve memory). | |
int | get_num_nodes (int dev) |
Typesafe wrapper of free_list_base for maintaining free-list memory pools.
Definition at line 102 of file cudafreelist.H.
rutz::cuda_free_list< T >::cuda_free_list | ( | ) | [inline] |
Construct an (empty) free list.
All objects allocated from this list must be of size sizeof(T).
Definition at line 110 of file cudafreelist.H.
void rutz::cuda_free_list< T >::release_free_nodes | ( | ) | [inline] |
Release all nodes currently on the free list (e.g. to conserve memory).
Definition at line 123 of file cudafreelist.H.
References rutz::cuda_free_list_base::release_free_nodes().