6 #ifndef CUDA_RECYCLING_ALLOCATORS_HPP
7 #define CUDA_RECYCLING_ALLOCATORS_HPP
19 namespace memory_recycling {
22 namespace device_selection {
26 void operator()(
const size_t device_id) { cudaSetDevice(device_id); }
31 void operator()(
const size_t device_id) { cudaSetDevice(device_id); }
36 template <typename T, std::enable_if_t<std::is_trivial<T>::value,
int> = 0>
40 template <typename T, std::enable_if_t<std::is_trivial<T>::value,
int> = 0>
Definition: config.hpp:31
cppuddle::memory_recycling::detail::cuda_device_allocator< T > cuda_device_allocator
Definition: cuda_buffer_util.hpp:28
cppuddle::memory_recycling::detail::cuda_pinned_allocator< T > cuda_pinned_allocator
Definition: cuda_buffer_util.hpp:23
Recycles not only allocations but also the contents of a buffer.
Definition: buffer_management.hpp:840
Definition: buffer_management.hpp:770
void operator()(const size_t device_id)
Definition: cuda_recycling_allocators.hpp:26
void operator()(const size_t device_id)
Definition: cuda_recycling_allocators.hpp:31
Default device selector - No MultGPU support.
Definition: buffer_management.hpp:55