Template Numerical Library version\ main:4e58ea6
Loading...
Searching...
No Matches
TNL::Allocators Namespace Reference

Namespace for TNL allocators. More...

Classes

struct  Cuda
 Allocator for the CUDA device memory space. More...
 
struct  CudaHost
 Allocator for page-locked memory on the host. More...
 
struct  CudaManaged
 Allocator for the CUDA Unified Memory system. More...
 
struct  Default
 A trait-like class used for the selection of a default allocators for given device. More...
 
struct  Default< Devices::Cuda >
 Sets Allocators::Cuda as the default allocator for Devices::Cuda. More...
 
struct  Default< Devices::Host >
 Sets Allocators::Host as the default allocator for Devices::Host. More...
 
struct  Default< Devices::Sequential >
 Sets Allocators::Host as the default allocator for Devices::Sequential. More...
 
struct  Hip
 Allocator for the HIP device memory space. More...
 
struct  HipHost
 Allocator for page-locked memory on the host. More...
 
struct  HipManaged
 Allocator for the HIP Unified Memory system. More...
 

Typedefs

template<class T >
using Host = std::allocator< T >
 Allocator for the host memory space – alias for std::allocator.
 

Functions

template<class T1 , class T2 >
bool operator!= (const Cuda< T1 > &lhs, const Cuda< T2 > &rhs)
 
template<class T1 , class T2 >
bool operator!= (const CudaHost< T1 > &lhs, const CudaHost< T2 > &rhs)
 
template<class T1 , class T2 >
bool operator!= (const CudaManaged< T1 > &lhs, const CudaManaged< T2 > &rhs)
 
template<class T1 , class T2 >
bool operator!= (const Hip< T1 > &lhs, const Hip< T2 > &rhs)
 
template<class T1 , class T2 >
bool operator!= (const HipHost< T1 > &lhs, const HipHost< T2 > &rhs)
 
template<class T1 , class T2 >
bool operator!= (const HipManaged< T1 > &lhs, const HipManaged< T2 > &rhs)
 
template<class T1 , class T2 >
bool operator== (const Cuda< T1 > &, const Cuda< T2 > &)
 
template<class T1 , class T2 >
bool operator== (const CudaHost< T1 > &, const CudaHost< T2 > &)
 
template<class T1 , class T2 >
bool operator== (const CudaManaged< T1 > &, const CudaManaged< T2 > &)
 
template<class T1 , class T2 >
bool operator== (const Hip< T1 > &, const Hip< T2 > &)
 
template<class T1 , class T2 >
bool operator== (const HipHost< T1 > &, const HipHost< T2 > &)
 
template<class T1 , class T2 >
bool operator== (const HipManaged< T1 > &, const HipManaged< T2 > &)
 

Detailed Description

Namespace for TNL allocators.

All TNL allocators must satisfy the requirements imposed by the Allocator concept from STL.