GBISResults< 2 > Struct Template Reference

List of all members.

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


Member Function Documentation

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

Definition at line 125 of file CudaComputeGBISKernel.cu.

00125 {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 126 of file CudaComputeGBISKernel.cu.

References WARP_FULL_MASK, WARP_SHUFFLE, and WARPSIZE.

00126                                                 {
00127     force.x = WARP_SHUFFLE(WARP_FULL_MASK, force.x, (threadIdx.x+1) & (WARPSIZE-1), WARPSIZE);
00128     force.y = WARP_SHUFFLE(WARP_FULL_MASK, force.y, (threadIdx.x+1) & (WARPSIZE-1), WARPSIZE);
00129     force.z = WARP_SHUFFLE(WARP_FULL_MASK, force.z, (threadIdx.x+1) & (WARPSIZE-1), WARPSIZE);
00130     dEdaSum = WARP_SHUFFLE(WARP_FULL_MASK, dEdaSum, (threadIdx.x+1) & (WARPSIZE-1), WARPSIZE);
00131   }


Member Data Documentation

float GBISResults< 2 >::dEdaSum

Definition at line 124 of file CudaComputeGBISKernel.cu.

float3 GBISResults< 2 >::force

Definition at line 123 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