OpenFPM_pdata  4.1.0
Project that contain the implementation of distributed structures
 
Loading...
Searching...
No Matches
encap_shmem< sz > Struct Template Reference

memcpy it split the copy across threads More...

Detailed Description

template<unsigned int sz>
struct encap_shmem< sz >

memcpy it split the copy across threads

it assume that the memory to copy is smaller than blockDim.x * 4 byte

Definition at line 17 of file encap_shmem.hpp.

#include <encap_shmem.hpp>

Static Public Member Functions

static __device__ void copy (int *src, int *dst)
 

Static Public Attributes

static const int size = (sz / 4)*4 + (sz % 4 != 0)*4
 
static const int nthr = (sz / 4) + (sz % 4 != 0)
 

Member Function Documentation

◆ copy()

template<unsigned int sz>
static __device__ void encap_shmem< sz >::copy ( int *  src,
int *  dst 
)
inlinestatic

Definition at line 22 of file encap_shmem.hpp.

Field Documentation

◆ nthr

template<unsigned int sz>
const int encap_shmem< sz >::nthr = (sz / 4) + (sz % 4 != 0)
static

Definition at line 20 of file encap_shmem.hpp.

◆ size

template<unsigned int sz>
const int encap_shmem< sz >::size = (sz / 4)*4 + (sz % 4 != 0)*4
static

Definition at line 19 of file encap_shmem.hpp.


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