NAMD
Public Member Functions | Public Attributes | List of all members
GBISResults< 2 > Struct Template Reference

Public Member Functions

__device__ __forceinline__ void init ()
 
__device__ __forceinline__ void shuffleNext ()
 

Public Attributes

float3 force
 
float dEdaSum
 

Detailed Description

template<>
struct GBISResults< 2 >

Definition at line 126 of file CudaComputeGBISKernel.cu.

Member Function Documentation

__device__ __forceinline__ void GBISResults< 2 >::init ( )
inline

Definition at line 129 of file CudaComputeGBISKernel.cu.

129 {force.x = 0.0f; force.y = 0.0f; force.z = 0.0f; dEdaSum = 0.0f;}
__device__ __forceinline__ void GBISResults< 2 >::shuffleNext ( )
inline

Definition at line 130 of file CudaComputeGBISKernel.cu.

References WARP_FULL_MASK, WARP_SHUFFLE, and WARPSIZE.

130  {
131  force.x = WARP_SHUFFLE(WARP_FULL_MASK, force.x, (threadIdx.x+1) & (WARPSIZE-1), WARPSIZE);
132  force.y = WARP_SHUFFLE(WARP_FULL_MASK, force.y, (threadIdx.x+1) & (WARPSIZE-1), WARPSIZE);
133  force.z = WARP_SHUFFLE(WARP_FULL_MASK, force.z, (threadIdx.x+1) & (WARPSIZE-1), WARPSIZE);
134  dEdaSum = WARP_SHUFFLE(WARP_FULL_MASK, dEdaSum, (threadIdx.x+1) & (WARPSIZE-1), WARPSIZE);
135  }
#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 GBISResults< 2 >::dEdaSum

Definition at line 128 of file CudaComputeGBISKernel.cu.

Referenced by calcGBISPhase(), and writeResult().

float3 GBISResults< 2 >::force

Definition at line 127 of file CudaComputeGBISKernel.cu.

Referenced by calcGBISPhase(), and writeResult().


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