CPPuddle
Namespaces | Typedefs | Functions | Variables
recycler Namespace Reference

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

Namespaces

 detail
 

Typedefs

template<typename T , std::size_t alignement, std::enable_if_t< std::is_trivial< T >::value, int > = 0>
using recycle_aligned = cppuddle::memory_recycling::recycle_aligned< T, alignement >
 
template<typename T , std::size_t alignement, std::enable_if_t< std::is_trivial< T >::value, int > = 0>
using aggressive_recycle_aligned = cppuddle::memory_recycling::aggressive_recycle_aligned< T, alignement >
 
template<typename T , std::enable_if_t< std::is_trivial< T >::value, int > = 0>
using recycle_std = cppuddle::memory_recycling::recycle_std< T >
 
template<typename T , std::enable_if_t< std::is_trivial< T >::value, int > = 0>
using aggressive_recycle_std = cppuddle::memory_recycling::aggressive_recycle_std< T >
 
template<typename T , std::enable_if_t< std::is_trivial< T >::value, int > = 0>
using recycle_allocator_cuda_host = cppuddle::memory_recycling::recycle_allocator_cuda_host< T >
 
template<typename T , std::enable_if_t< std::is_trivial< T >::value, int > = 0>
using recycle_allocator_cuda_device = cppuddle::memory_recycling::recycle_allocator_cuda_device< T >
 
template<typename T , std::enable_if_t< std::is_trivial< T >::value, int > = 0>
using cuda_device_buffer = cppuddle::memory_recycling::cuda_device_buffer< T >
 
template<typename T , typename Host_Allocator , std::enable_if_t< std::is_trivial< T >::value, int > = 0>
using cuda_aggregated_device_buffer = cppuddle::memory_recycling::cuda_aggregated_device_buffer< T, Host_Allocator >
 
template<typename T , std::enable_if_t< std::is_trivial< T >::value, int > = 0>
using recycle_allocator_hip_host = cppuddle::memory_recycling::recycle_allocator_hip_host< T >
 
template<typename T , std::enable_if_t< std::is_trivial< T >::value, int > = 0>
using recycle_allocator_hip_device = cppuddle::memory_recycling::recycle_allocator_hip_device< T >
 
template<typename T , std::enable_if_t< std::is_trivial< T >::value, int > = 0>
using hip_device_buffer = cppuddle::memory_recycling::hip_device_buffer< T >
 
template<typename T , typename Host_Allocator , std::enable_if_t< std::is_trivial< T >::value, int > = 0>
using hip_aggregated_device_buffer = cppuddle::memory_recycling::hip_aggregated_device_buffer< T, Host_Allocator >
 
template<typename kokkos_type , typename alloc_type , typename element_type >
using aggregated_recycled_view = cppuddle::memory_recycling::aggregated_recycling_view< kokkos_type, alloc_type, element_type >
 
template<typename kokkos_type , typename alloc_type , typename element_type >
using recycled_view = cppuddle::memory_recycling::recycling_view< kokkos_type, alloc_type, element_type >
 
template<typename T , std::enable_if_t< std::is_trivial< T >::value, int > = 0>
using recycle_allocator_sycl_host = cppuddle::memory_recycling::recycle_allocator_sycl_host< T >
 
template<typename T , std::enable_if_t< std::is_trivial< T >::value, int > = 0>
using recycle_allocator_sycl_device = cppuddle::memory_recycling::recycle_allocator_sycl_device< T >
 

Functions

void print_performance_counters ()
 
void force_cleanup ()
 
void cleanup ()
 Deletes all buffers currently marked as unused. More...
 
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

◆ aggregated_recycled_view

template<typename kokkos_type , typename alloc_type , typename element_type >
using recycler::aggregated_recycled_view = typedef cppuddle::memory_recycling::aggregated_recycling_view<kokkos_type, alloc_type, element_type>

◆ aggressive_recycle_aligned

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

◆ aggressive_recycle_std

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

◆ cuda_aggregated_device_buffer

template<typename T , typename Host_Allocator , std::enable_if_t< std::is_trivial< T >::value, int > = 0>
using recycler::cuda_aggregated_device_buffer = typedef cppuddle::memory_recycling::cuda_aggregated_device_buffer<T, Host_Allocator>

◆ cuda_device_buffer

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

◆ hip_aggregated_device_buffer

template<typename T , typename Host_Allocator , std::enable_if_t< std::is_trivial< T >::value, int > = 0>
using recycler::hip_aggregated_device_buffer = typedef cppuddle::memory_recycling::hip_aggregated_device_buffer<T, Host_Allocator>

◆ hip_device_buffer

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

◆ recycle_aligned

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

◆ recycle_allocator_cuda_device

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

◆ recycle_allocator_cuda_host

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

◆ recycle_allocator_hip_device

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

◆ recycle_allocator_hip_host

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

◆ recycle_allocator_sycl_device

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

◆ recycle_allocator_sycl_host

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

◆ recycle_std

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

◆ recycled_view

template<typename kokkos_type , typename alloc_type , typename element_type >
using recycler::recycled_view = typedef cppuddle::memory_recycling::recycling_view<kokkos_type, alloc_type, element_type>

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

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

◆ number_instances

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