YAKL
Namespaces | Functions
YAKL_allocators.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 yakl
 

Functions

void * yakl::alloc_device (size_t bytes, char const *label)
 Allocate on the device using YAKL's device allocator. More...
 
void yakl::free_device (void *ptr, char const *label)
 Free on the device using YAKL's device deallocator. More...
 
Gator & yakl::get_pool ()
 
void yakl::set_device_allocator (std::function< void *(size_t)> func)
 Override YAKL's device allocator with the passed function (No Label). More...
 
void yakl::set_device_allocator (std::function< void *(size_t, char const *)> func)
 Override YAKL's device allocator with the passed function (WITH Label). More...
 
void yakl::set_device_deallocator (std::function< void(void *)> func)
 Override YAKL's device deallocator with the passed function (No Label). More...
 
void yakl::set_device_deallocator (std::function< void(void *, char const *)> func)
 Override YAKL's device deallocator with the passed function (WITH Label). More...
 
void yakl::set_yakl_allocators_to_default ()
 Return all YAKL allocators to their defaults. More...
 
bool yakl::use_pool ()
 If true, then the pool allocator is being used for all device allocations. More...
 

Detailed Description

Contains functions related to controlling YAKL's allocators and deallocators.