Vlasiator ebf0dd394 on dev (v5.4.0 + 1054 commits)
Loading...
Searching...
No Matches
arch::buf< T > Class Template Reference

#include <arch_device_cuda.h>

Public Member Functions

void syncDeviceData (void)
void syncHostData (void)
 buf (T *const _ptr, uint _bytes)
__host__ __device__ buf (const buf &u)
__host__ ~buf (void)
__host__ __device__ T & operator[] (uint i) const
void syncDeviceData (void)
void syncHostData (void)
 buf (T *const _ptr, uint _bytes)
__host__ __device__ buf (const buf &u)
__host__ ~buf (void)
__host__ __device__ T & operator[] (uint i) const
void syncDeviceData (void)
void syncHostData (void)
 buf (T *const _ptr, uint _bytes)
 buf (const buf &u)
T & operator[] (uint i) const

Private Attributes

T * ptr
T * d_ptr
uint bytes
uint is_copy = 0
uint thread_id = 0

Detailed Description

template<typename T>
class arch::buf< T >

Definition at line 180 of file arch_device_cuda.h.

Constructor & Destructor Documentation

◆ buf() [1/6]

template<typename T>
arch::buf< T >::buf ( T *const _ptr,
uint _bytes )
inline

Definition at line 198 of file arch_device_cuda.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ buf() [2/6]

template<typename T>
__host__ __device__ arch::buf< T >::buf ( const buf< T > & u)
inline

Definition at line 208 of file arch_device_cuda.h.

Here is the call graph for this function:

◆ ~buf() [1/2]

template<typename T>
__host__ arch::buf< T >::~buf ( void )
inline

Definition at line 211 of file arch_device_cuda.h.

◆ buf() [3/6]

template<typename T>
arch::buf< T >::buf ( T *const _ptr,
uint _bytes )
inline

Definition at line 194 of file arch_device_hip.h.

Here is the call graph for this function:

◆ buf() [4/6]

template<typename T>
__host__ __device__ arch::buf< T >::buf ( const buf< T > & u)
inline

Definition at line 200 of file arch_device_hip.h.

Here is the call graph for this function:

◆ ~buf() [2/2]

template<typename T>
__host__ arch::buf< T >::~buf ( void )
inline

Definition at line 203 of file arch_device_hip.h.

◆ buf() [5/6]

template<typename T>
arch::buf< T >::buf ( T *const _ptr,
uint _bytes )
inline

Definition at line 28 of file arch_device_host.h.

◆ buf() [6/6]

template<typename T>
arch::buf< T >::buf ( const buf< T > & u)
inline

Definition at line 30 of file arch_device_host.h.

Here is the call graph for this function:

Member Function Documentation

◆ operator[]() [1/3]

template<typename T>
__host__ __device__ T & arch::buf< T >::operator[] ( uint i) const
inline

Definition at line 220 of file arch_device_cuda.h.

◆ operator[]() [2/3]

template<typename T>
__host__ __device__ T & arch::buf< T >::operator[] ( uint i) const
inline

Definition at line 212 of file arch_device_hip.h.

◆ operator[]() [3/3]

template<typename T>
T & arch::buf< T >::operator[] ( uint i) const
inline

Definition at line 33 of file arch_device_host.h.

◆ syncDeviceData() [1/3]

template<typename T>
void arch::buf< T >::syncDeviceData ( void )
inline

Definition at line 190 of file arch_device_cuda.h.

Here is the caller graph for this function:

◆ syncDeviceData() [2/3]

template<typename T>
void arch::buf< T >::syncDeviceData ( void )
inline

Definition at line 186 of file arch_device_hip.h.

◆ syncDeviceData() [3/3]

template<typename T>
void arch::buf< T >::syncDeviceData ( void )
inline

Definition at line 24 of file arch_device_host.h.

◆ syncHostData() [1/3]

template<typename T>
void arch::buf< T >::syncHostData ( void )
inline

Definition at line 194 of file arch_device_cuda.h.

◆ syncHostData() [2/3]

template<typename T>
void arch::buf< T >::syncHostData ( void )
inline

Definition at line 190 of file arch_device_hip.h.

◆ syncHostData() [3/3]

template<typename T>
void arch::buf< T >::syncHostData ( void )
inline

Definition at line 26 of file arch_device_host.h.

Member Data Documentation

◆ bytes

template<typename T>
uint arch::buf< T >::bytes
private

Definition at line 184 of file arch_device_cuda.h.

◆ d_ptr

template<typename T>
T * arch::buf< T >::d_ptr
private

Definition at line 183 of file arch_device_cuda.h.

◆ is_copy

template<typename T>
uint arch::buf< T >::is_copy = 0
private

Definition at line 185 of file arch_device_cuda.h.

◆ ptr

template<typename T>
T * arch::buf< T >::ptr
private

Definition at line 182 of file arch_device_cuda.h.

◆ thread_id

template<typename T>
uint arch::buf< T >::thread_id = 0
private

Definition at line 186 of file arch_device_cuda.h.


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