| 
    Template Numerical Library version\ main:6a1fe78
    
   | 
 
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) | 
| Cuda & | operator= (const Cuda &)=default | 
| template<class U> | |
| Cuda & | operator= (const Cuda< U > &) | 
| Cuda & | operator= (Cuda &&) noexcept=default | 
| template<class U> | |
| Cuda & | operator= (Cuda< U > &&) | 
Allocator for the CUDA device memory space.
The allocation is done using the cudaMalloc function and the deallocation is done using the cudaFree function.