20#ifndef CUDA_RECYCLING_ALLOCATORS_HPP
21#define CUDA_RECYCLING_ALLOCATORS_HPP
40 void operator()(
const size_t device_id) { cudaSetDevice(device_id); }
45 void operator()(
const size_t device_id) { cudaSetDevice(device_id); }
50template <typename T, std::enable_if_t<std::is_trivial<T>::value,
int> = 0>
54template <typename T, std::enable_if_t<std::is_trivial<T>::value,
int> = 0>
58template <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::aggressive_recycle_allocator< T, detail::cuda_managed_memory_allocator< T > > recycle_allocator_cuda_managed
Definition cuda_recycling_allocators.hpp:59
detail::aggressive_recycle_allocator< T, detail::cuda_pinned_allocator< T > > recycle_allocator_cuda_host
Recycling allocator for CUDA pinned host memory.
Definition cuda_recycling_allocators.hpp:51
detail::recycle_allocator< T, detail::cuda_device_allocator< T > > recycle_allocator_cuda_device
Recycling allocator for CUDA device memory.
Definition cuda_recycling_allocators.hpp:55
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 cuda_recycling_allocators.hpp:40
void operator()(const size_t device_id)
Definition cuda_recycling_allocators.hpp:45
Default device selector - No MultGPU support.
Definition buffer_management.hpp:69