suanPan
🧮 An Open Source, Parallel and Heterogeneous Finite Element Analysis Framework
Loading...
Searching...
No Matches
cuda_ptr Class Reference

#include <cuda_ptr.hpp>

Collaboration diagram for cuda_ptr:

Public Member Functions

 cuda_ptr (const size_t in_unit=0, const int in_size=0)
 
 cuda_ptr (const cuda_ptr &other)
 
 cuda_ptr (cuda_ptr &&)=delete
 
cuda_ptroperator= (const cuda_ptr &)=delete
 
cuda_ptroperator= (cuda_ptr &&other) noexcept
 
 ~cuda_ptr ()
 
template<typename T = int>
T * get (const unsigned long long offset=0) const
 
auto copy_from (const void *src, const cudaStream_t s) const
 
auto copy_to (void *dest, const cudaStream_t s) const
 

Public Attributes

size_t unit {}
 
int size {}
 

Detailed Description

Author
tlc
Date
17/05/2025
Version
0.1.0

Constructor & Destructor Documentation

◆ cuda_ptr() [1/3]

cuda_ptr::cuda_ptr ( const size_t  in_unit = 0,
const int  in_size = 0 
)
inlineexplicit

◆ cuda_ptr() [2/3]

cuda_ptr::cuda_ptr ( const cuda_ptr other)
inline

◆ cuda_ptr() [3/3]

cuda_ptr::cuda_ptr ( cuda_ptr &&  )
delete

◆ ~cuda_ptr()

cuda_ptr::~cuda_ptr ( )
inline

Member Function Documentation

◆ copy_from()

auto cuda_ptr::copy_from ( const void *  src,
const cudaStream_t  s 
) const
inline
Here is the caller graph for this function:

◆ copy_to()

auto cuda_ptr::copy_to ( void *  dest,
const cudaStream_t  s 
) const
inline

◆ get()

template<typename T = int>
T * cuda_ptr::get ( const unsigned long long  offset = 0) const
inline

◆ operator=() [1/2]

cuda_ptr & cuda_ptr::operator= ( const cuda_ptr )
delete

◆ operator=() [2/2]

cuda_ptr & cuda_ptr::operator= ( cuda_ptr &&  other)
inlinenoexcept

Member Data Documentation

◆ size

int cuda_ptr::size {}

◆ unit

size_t cuda_ptr::unit {}

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