NAMD
Public Member Functions | Public Attributes | List of all members
GBISInput< 2 > 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< 2 > param, const float q)
 
__device__ __forceinline__ void initQj (const float q)
 
__device__ __forceinline__ void shuffleNext ()
 

Public Attributes

float qi
 
float qj
 
float bornRadI
 
float bornRadJ
 

Detailed Description

template<>
struct GBISInput< 2 >

Definition at line 104 of file CudaComputeGBISKernel.cu.

Member Function Documentation

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

Definition at line 114 of file CudaComputeGBISKernel.cu.

References GBISParam< 2 >::scaling.

114  {
115  qi = -q*param.scaling;
116  }
__device__ __forceinline__ void GBISInput< 2 >::initQj ( const float  q)
inline

Definition at line 117 of file CudaComputeGBISKernel.cu.

117  {
118  qj = q;
119  }
__device__ __forceinline__ void GBISInput< 2 >::loadI ( const int  i,
const float *  inp1,
const float *  inp2,
const float *  inp3 
)
inline

Definition at line 108 of file CudaComputeGBISKernel.cu.

108  {
109  bornRadI = inp1[i];
110  }
__device__ __forceinline__ void GBISInput< 2 >::loadJ ( const int  i,
const float *  inp1,
const float *  inp2,
const float *  inp3 
)
inline

Definition at line 111 of file CudaComputeGBISKernel.cu.

111  {
112  bornRadJ = inp1[i];
113  }
__device__ __forceinline__ void GBISInput< 2 >::shuffleNext ( )
inline

Definition at line 120 of file CudaComputeGBISKernel.cu.

References WARP_FULL_MASK, WARP_SHUFFLE, and WARPSIZE.

120  {
121  qj = WARP_SHUFFLE(WARP_FULL_MASK, qj, (threadIdx.x+1) & (WARPSIZE-1), WARPSIZE);
122  bornRadJ = WARP_SHUFFLE(WARP_FULL_MASK, bornRadJ, (threadIdx.x+1) & (WARPSIZE-1), WARPSIZE);
123  }
#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< 2 >::bornRadI

Definition at line 106 of file CudaComputeGBISKernel.cu.

Referenced by calcGBISPhase().

float GBISInput< 2 >::bornRadJ

Definition at line 106 of file CudaComputeGBISKernel.cu.

Referenced by calcGBISPhase().

float GBISInput< 2 >::qi

Definition at line 105 of file CudaComputeGBISKernel.cu.

Referenced by calcGBISPhase().

float GBISInput< 2 >::qj

Definition at line 105 of file CudaComputeGBISKernel.cu.

Referenced by calcGBISPhase().


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