OpenFPM  5.2.0
Project that contain the implementation of distributed structures
encap_shmem< sz > Struct Template Reference

memcpy it split the copy across threads More...

#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)
 

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.


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