CPPuddle
buffer_manager.hpp
Go to the documentation of this file.
1 // Copyright (c) 2024 Gregor Daiß
2 //
3 // Distributed under the Boost Software License, Version 1.0. (See accompanying
4 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
5 
6 // DEPRECATED: Do not use this file
7 // Only intended to make the old interface work a bit longer.
8 // See deprecation warnings for the new location of the functionality
9 
10 #ifndef BUFFER_MANAGER_HPP
11 #define BUFFER_MANAGER_HPP
12 
17 
19 namespace recycler {
20 
21 namespace detail {
22 using buffer_recycler [[deprecated(
23  "Use buffer_interface from header "
24  "cppuddle/memory_recycling/detail/buffer_management.hpp instead")]] =
26 }
27 
28 template <typename T, std::enable_if_t<std::is_trivial<T>::value, int> = 0>
30  [[deprecated("Use from header std_recycling_allocators.hpp instead")]] =
32 
33 template <typename T, std::enable_if_t<std::is_trivial<T>::value, int> = 0>
35  [[deprecated("Use from header std_recycling_allocators.hpp instead")]] =
37 
38 [[deprecated("Use cppuddle::memory_recycling::print_buffer_counters() instead")]]
41 }
44 [[deprecated("Use cppuddle::memory_recycling::force_buffer_cleanup() instead")]]
47 [[deprecated("Use cppuddle::memory_recycling::unused_buffer_cleanup() instead")]]
51 [[deprecated("Use cppuddle::memory_recycling::finalize() instead")]]
53 
54 [[deprecated("Use cppuddle::max_number_gpus instead")]] constexpr auto max_number_gpus =
56 [[deprecated("Use cppuddle::number_instances instead")]] constexpr auto number_instances =
58 
59 } // namespace recycler
60 
61 #endif
Singleton interface to all buffer_managers.
Definition: buffer_management.hpp:68
void finalize()
Definition: buffer_management_interface.hpp:32
void print_buffer_counters()
Print performance counters of all buffer managers to stdout.
Definition: buffer_management_interface.hpp:19
void unused_buffer_cleanup()
Deletes all buffers currently marked as unused.
Definition: buffer_management_interface.hpp:27
void force_buffer_cleanup()
Definition: buffer_management_interface.hpp:24
constexpr size_t max_number_gpus
Definition: config.hpp:52
constexpr size_t number_instances
Definition: config.hpp:50
Deprecated LEGACY namespace. Kept around for compatiblity with old code for now.
Definition: aligned_buffer_util.hpp:15
void cleanup()
Deletes all buffers currently marked as unused.
Definition: buffer_manager.hpp:48
constexpr auto number_instances
Definition: buffer_manager.hpp:56
constexpr auto max_number_gpus
Definition: buffer_manager.hpp:54
void force_cleanup()
Definition: buffer_manager.hpp:45
void finalize()
Definition: buffer_manager.hpp:52
void print_performance_counters()
Definition: buffer_manager.hpp:39
Recycles not only allocations but also the contents of a buffer.
Definition: buffer_management.hpp:840
Definition: buffer_management.hpp:770