Template Numerical Library  version develop:3271efbb
Classes | Typedefs | Functions
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...
 

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 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 > &)
 

Detailed Description

Namespace for TNL allocators.

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