Template Numerical Library version\ main:1437bf49
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
TNL::Allocators::Cuda< T > Struct Template Reference

Allocator for the CUDA device memory space. More...

#include <TNL/Allocators/Cuda.h>

Public Types

using difference_type = std::ptrdiff_t
 
using size_type = std::size_t
 
using value_type = T
 

Public Member Functions

 Cuda (const Cuda &)=default
 
template<class U >
 Cuda (const Cuda< U > &)
 
 Cuda (Cuda &&) noexcept=default
 
template<class U >
 Cuda (Cuda< U > &&)
 
value_type * allocate (size_type n)
 
void deallocate (value_type *ptr, size_type)
 
Cudaoperator= (const Cuda &)=default
 
template<class U >
Cudaoperator= (const Cuda< U > &)
 
Cudaoperator= (Cuda &&) noexcept=default
 
template<class U >
Cudaoperator= (Cuda< U > &&)
 

Detailed Description

template<class T>
struct TNL::Allocators::Cuda< T >

Allocator for the CUDA device memory space.

The allocation is done using the cudaMalloc function and the deallocation is done using the cudaFree function.


The documentation for this struct was generated from the following file: