CPPuddle
Loading...
Searching...
No Matches
recycler Namespace Reference

Deprecated LEGACY namespace. Kept around for compatiblity with old code for now. More...

Namespaces

namespace  detail

Classes

struct  cuda_device_buffer
 RAII wrapper for CUDA device memory (ideally used with a recycling allocator). More...
struct  cuda_aggregated_device_buffer
 RAII wrapper for CUDA device memory using a passed aggregated allocator (which ideally should be an allocator_slice from the work aggregation). More...
struct  hip_device_buffer
struct  hip_aggregated_device_buffer
class  aggregated_recycling_view
class  kokkos_type
class  recycling_view

Typedefs

template<typename T, std::size_t alignement, std::enable_if_t< std::is_trivial< T >::value, int > = 0>
using recycle_aligned
 Recycling allocator for boost aligned memory.
template<typename T, std::size_t alignement, std::enable_if_t< std::is_trivial< T >::value, int > = 0>
using aggressive_recycle_aligned
 Recycling allocator for boost aligned memory (reusing previous content as well).
template<typename T, std::enable_if_t< std::is_trivial< T >::value, int > = 0>
using recycle_std
 Recycling allocator for std memory.
template<typename T, std::enable_if_t< std::is_trivial< T >::value, int > = 0>
using aggressive_recycle_std
 Recycling allocator for boost aligned memory (reusing previous content as well).
template<typename T, std::enable_if_t< std::is_trivial< T >::value, int > = 0>
using recycle_allocator_cuda_host
 Recycling allocator for CUDA pinned host memory.
template<typename T, std::enable_if_t< std::is_trivial< T >::value, int > = 0>
using recycle_allocator_cuda_device
 Recycling allocator for CUDA device memory.
template<typename T, std::enable_if_t< std::is_trivial< T >::value, int > = 0>
using recycle_allocator_hip_host
 Recycling allocator for HIP pinned host memory.
template<typename T, std::enable_if_t< std::is_trivial< T >::value, int > = 0>
using recycle_allocator_hip_device
 Recycling allocator for HIP device memory.
template<typename T, std::enable_if_t< std::is_trivial< T >::value, int > = 0>
using recycle_allocator_sycl_host
 Recycling allocator for SYCL pinned host memory (default device).
template<typename T, std::enable_if_t< std::is_trivial< T >::value, int > = 0>
using recycle_allocator_sycl_device
 Recycling allocator for SYCL device memory (default device).

Functions

void print_performance_counters ()
void force_cleanup ()
void cleanup ()
 Deletes all buffers currently marked as unused.
void finalize ()

Variables

constexpr auto max_number_gpus
constexpr auto number_instances

Detailed Description

Deprecated LEGACY namespace. Kept around for compatiblity with old code for now.

Typedef Documentation

◆ aggressive_recycle_aligned

template<typename T, std::size_t alignement, std::enable_if_t< std::is_trivial< T >::value, int > = 0>
using cppuddle::memory_recycling::aggressive_recycle_aligned

Recycling allocator for boost aligned memory (reusing previous content as well).

◆ aggressive_recycle_std

template<typename T, std::enable_if_t< std::is_trivial< T >::value, int > = 0>
using cppuddle::memory_recycling::aggressive_recycle_std

Recycling allocator for boost aligned memory (reusing previous content as well).

◆ recycle_aligned

template<typename T, std::size_t alignement, std::enable_if_t< std::is_trivial< T >::value, int > = 0>
using cppuddle::memory_recycling::recycle_aligned

Recycling allocator for boost aligned memory.

◆ recycle_allocator_cuda_device

template<typename T, std::enable_if_t< std::is_trivial< T >::value, int > = 0>
using cppuddle::memory_recycling::recycle_allocator_cuda_device

Recycling allocator for CUDA device memory.

◆ recycle_allocator_cuda_host

template<typename T, std::enable_if_t< std::is_trivial< T >::value, int > = 0>
using cppuddle::memory_recycling::recycle_allocator_cuda_host

Recycling allocator for CUDA pinned host memory.

◆ recycle_allocator_hip_device

template<typename T, std::enable_if_t< std::is_trivial< T >::value, int > = 0>
using cppuddle::memory_recycling::recycle_allocator_hip_device

Recycling allocator for HIP device memory.

◆ recycle_allocator_hip_host

template<typename T, std::enable_if_t< std::is_trivial< T >::value, int > = 0>
using cppuddle::memory_recycling::recycle_allocator_hip_host

Recycling allocator for HIP pinned host memory.

◆ recycle_allocator_sycl_device

template<typename T, std::enable_if_t< std::is_trivial< T >::value, int > = 0>
using cppuddle::memory_recycling::recycle_allocator_sycl_device

Recycling allocator for SYCL device memory (default device).

◆ recycle_allocator_sycl_host

template<typename T, std::enable_if_t< std::is_trivial< T >::value, int > = 0>
using cppuddle::memory_recycling::recycle_allocator_sycl_host

Recycling allocator for SYCL pinned host memory (default device).

◆ recycle_std

template<typename T, std::enable_if_t< std::is_trivial< T >::value, int > = 0>
using cppuddle::memory_recycling::recycle_std

Recycling allocator for std memory.

Function Documentation

◆ cleanup()

void recycler::cleanup ( )
inline

Deletes all buffers currently marked as unused.

◆ finalize()

void recycler::finalize ( )
inline

Deletes all buffers (even ones still marked as used), delete the buffer managers and the recycler itself. Disallows further usage.

◆ force_cleanup()

void recycler::force_cleanup ( )
inline

Deletes all buffers (even ones still marked as used), delete the buffer managers and the recycler itself

◆ print_performance_counters()

void recycler::print_performance_counters ( )
inline

Variable Documentation

◆ max_number_gpus

auto recycler::max_number_gpus
constexpr
Initial value:
=
constexpr size_t max_number_gpus
Definition config.hpp:52

◆ number_instances

auto recycler::number_instances
constexpr
Initial value:
=
constexpr size_t number_instances
Definition config.hpp:50