6#ifndef HIP_RECYCLING_ALLOCATORS_HPP
7#define HIP_RECYCLING_ALLOCATORS_HPP
26 void operator()(
const size_t device_id) { hipSetDevice(device_id); }
31 void operator()(
const size_t device_id) { hipSetDevice(device_id); }
36template <typename T, std::enable_if_t<std::is_trivial<T>::value,
int> = 0>
40template <typename T, std::enable_if_t<std::is_trivial<T>::value,
int> = 0>
Definition buffer_management.hpp:79
Definition aligned_recycling_allocators.hpp:19
CPPuddle namespace containing the memory recycling functionality.
Definition aligned_recycling_allocators.hpp:17
detail::recycle_allocator< T, detail::hip_device_allocator< T > > recycle_allocator_hip_device
Recycling allocator for HIP device memory.
Definition hip_recycling_allocators.hpp:41
detail::aggressive_recycle_allocator< T, detail::hip_pinned_allocator< T > > recycle_allocator_hip_host
Recycling allocator for HIP pinned host memory.
Definition hip_recycling_allocators.hpp:37
Recycles not only allocations but also the contents of a buffer.
Definition buffer_management.hpp:865
Definition buffer_management.hpp:795
void operator()(const size_t device_id)
Definition hip_recycling_allocators.hpp:31
void operator()(const size_t device_id)
Definition hip_recycling_allocators.hpp:26
Default device selector - No MultGPU support.
Definition buffer_management.hpp:69