HAMR
The Heterogeneous Accelerator Memory Resource
hamr_buffer_allocator.h File Reference
#include "hamr_config.h"
#include <cassert>
Include dependency graph for hamr_buffer_allocator.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 hamr
 heterogeneous accelerator memory resource
 

Enumerations

enum  hamr::buffer_allocator {
  hamr::buffer_allocator::same = -2, hamr::buffer_allocator::none = -1, hamr::buffer_allocator::cpp = 0, hamr::buffer_allocator::malloc = 1,
  hamr::buffer_allocator::cuda = 2, hamr::buffer_allocator::cuda_async = 3, hamr::buffer_allocator::cuda_uva = 4, hamr::buffer_allocator::cuda_host = 5,
  hamr::buffer_allocator::hip = 6, hamr::buffer_allocator::hip_uva = 7, hamr::buffer_allocator::openmp = 8
}
 allocator types that may be used with hamr::buffer More...
 

Functions

const HAMR_EXPORT char * hamr::get_allocator_name (buffer_allocator alloc)
 return the human readable name of the allocator More...
 
HAMR_EXPORT int hamr::host_accessible (buffer_allocator alloc)
 
HAMR_EXPORT int hamr::cuda_accessible (buffer_allocator alloc)
 
HAMR_EXPORT int hamr::hip_accessible (buffer_allocator alloc)
 
HAMR_EXPORT int hamr::openmp_accessible (buffer_allocator alloc)
 
HAMR_EXPORT void hamr::assert_valid_allocator (buffer_allocator alloc)
 asserts that the passed value is one of the known allocators More...
 
HAMR_EXPORT buffer_allocator hamr::get_device_allocator ()
 get the allocator type most suitable for the current build configuration. More...
 
HAMR_EXPORT buffer_allocator hamr::get_host_allocator ()
 get the allocator type most suitable for the current build configuration. More...