6 #ifndef ALIGNED_RECYCLING_ALLOCATORS_HPP
7 #define ALIGNED_RECYCLING_ALLOCATORS_HPP
9 #include <boost/align/aligned_allocator.hpp>
17 namespace memory_recycling {
19 namespace device_selection {
20 template <
typename T,
size_t alignement>
25 T, boost::alignment::aligned_allocator<T, alignement>> {
31 template <
typename T, std::size_t alignement,
32 std::enable_if_t<std::is_trivial<T>::value,
int> = 0>
34 T, boost::alignment::aligned_allocator<T, alignement>>;
36 template <
typename T, std::size_t alignement,
37 std::enable_if_t<std::is_trivial<T>::value,
int> = 0>
39 T, boost::alignment::aligned_allocator<T, alignement>>;
Definition: config.hpp:31
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: aligned_recycling_allocators.hpp:26
Default device selector - No MultGPU support.
Definition: buffer_management.hpp:55