NAMD
Public Member Functions | Public Attributes | List of all members
GBISInput< 1 > Struct Template Reference

Public Member Functions

__device__ __forceinline__ void loadI (const int i, const float *inp1, const float *inp2, const float *inp3)
 
__device__ __forceinline__ void loadJ (const int i, const float *inp1, const float *inp2, const float *inp3)
 
__device__ __forceinline__ void initQi (const GBISParam< 1 > param, const float q)
 
__device__ __forceinline__ void initQj (const float q)
 
__device__ __forceinline__ void shuffleNext ()
 

Public Attributes

float qi
 
float qj
 
float intRad0j
 
float intRadSi
 

Detailed Description

template<>
struct GBISInput< 1 >

Definition at line 39 of file CudaComputeGBISKernel.cu.

Member Function Documentation

__device__ __forceinline__ void GBISInput< 1 >::initQi ( const GBISParam< 1 >  param,
const float  q 
)
inline

Definition at line 52 of file CudaComputeGBISKernel.cu.

52 {}
__device__ __forceinline__ void GBISInput< 1 >::initQj ( const float  q)
inline

Definition at line 53 of file CudaComputeGBISKernel.cu.

53 {}
__device__ __forceinline__ void GBISInput< 1 >::loadI ( const int  i,
const float *  inp1,
const float *  inp2,
const float *  inp3 
)
inline

Definition at line 44 of file CudaComputeGBISKernel.cu.

44  {
45  qi = inp1[i];
46  intRadSi = inp2[i];
47  }
__device__ __forceinline__ void GBISInput< 1 >::loadJ ( const int  i,
const float *  inp1,
const float *  inp2,
const float *  inp3 
)
inline

Definition at line 48 of file CudaComputeGBISKernel.cu.

48  {
49  qj = inp2[i];
50  intRad0j = inp1[i];
51  }
__device__ __forceinline__ void GBISInput< 1 >::shuffleNext ( )
inline

Definition at line 54 of file CudaComputeGBISKernel.cu.

References WARP_FULL_MASK, WARP_SHUFFLE, and WARPSIZE.

54  {
55  qj = WARP_SHUFFLE(WARP_FULL_MASK, qj, (threadIdx.x+1) & (WARPSIZE-1), WARPSIZE);
56  intRad0j = WARP_SHUFFLE(WARP_FULL_MASK, intRad0j, (threadIdx.x+1) & (WARPSIZE-1), WARPSIZE);
57  }
#define WARP_FULL_MASK
Definition: CudaUtils.h:11
#define WARPSIZE
#define WARP_SHUFFLE(MASK, VAR, LANE, SIZE)
Definition: CudaUtils.h:38

Member Data Documentation

float GBISInput< 1 >::intRad0j

Definition at line 41 of file CudaComputeGBISKernel.cu.

Referenced by calcGBISPhase().

float GBISInput< 1 >::intRadSi

Definition at line 41 of file CudaComputeGBISKernel.cu.

Referenced by calcGBISPhase().

float GBISInput< 1 >::qi

Definition at line 40 of file CudaComputeGBISKernel.cu.

Referenced by calcGBISPhase().

float GBISInput< 1 >::qj

Definition at line 40 of file CudaComputeGBISKernel.cu.

Referenced by calcGBISPhase().


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