GBISInput< 2 > Struct Template Reference

List of all members.

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 100 of file CudaComputeGBISKernel.cu.


Member Function Documentation

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

Definition at line 110 of file CudaComputeGBISKernel.cu.

References param.

00110                                                                                   {
00111     qi = -q*param.scaling;    
00112   }

__device__ __forceinline__ void GBISInput< 2 >::initQj ( const float  q  )  [inline]

Definition at line 113 of file CudaComputeGBISKernel.cu.

00113                                                         {
00114     qj = q;
00115   }

__device__ __forceinline__ void GBISInput< 2 >::loadI ( const int  i,
const float *  inp1,
const float *  inp2,
const float *  inp3 
) [inline]

Definition at line 104 of file CudaComputeGBISKernel.cu.

00104                                                                                                               {
00105     bornRadI = inp1[i];
00106   }

__device__ __forceinline__ void GBISInput< 2 >::loadJ ( const int  i,
const float *  inp1,
const float *  inp2,
const float *  inp3 
) [inline]

Definition at line 107 of file CudaComputeGBISKernel.cu.

00107                                                                                                               {
00108     bornRadJ = inp1[i];
00109   }

__device__ __forceinline__ void GBISInput< 2 >::shuffleNext (  )  [inline]

Definition at line 116 of file CudaComputeGBISKernel.cu.

References WARP_FULL_MASK, WARP_SHUFFLE, and WARPSIZE.

00116                                                 {
00117     qj       = WARP_SHUFFLE(WARP_FULL_MASK, qj,       (threadIdx.x+1) & (WARPSIZE-1), WARPSIZE);
00118     bornRadJ = WARP_SHUFFLE(WARP_FULL_MASK, bornRadJ, (threadIdx.x+1) & (WARPSIZE-1), WARPSIZE);
00119   }


Member Data Documentation

float GBISInput< 2 >::bornRadI

Definition at line 102 of file CudaComputeGBISKernel.cu.

float GBISInput< 2 >::bornRadJ

Definition at line 102 of file CudaComputeGBISKernel.cu.

float GBISInput< 2 >::qi

Definition at line 101 of file CudaComputeGBISKernel.cu.

float GBISInput< 2 >::qj

Definition at line 101 of file CudaComputeGBISKernel.cu.


The documentation for this struct was generated from the following file:
Generated on Wed Nov 22 01:17:20 2017 for NAMD by  doxygen 1.4.7