NAMD
ComputeConsForceCUDAKernel.h
Go to the documentation of this file.
1 #ifndef CONSFORCEKERNEL_H
2 #define CONSFORCEKERNEL_H
3 
4 #include "Lattice.h"
5 #include "CudaUtils.h"
6 #include "CudaRecord.h"
7 
8 #ifdef NODEGROUP_FORCE_REGISTER
9 void computeConsForce(
10  const bool doVirial,
11  const int nConsForceAtoms,
12  const int* __restrict d_consForceSOA,
13  const int* __restrict d_consForceID,
14  const double* __restrict d_pos_x,
15  const double* __restrict d_pos_y,
16  const double* __restrict d_pos_z,
17  const double3* __restrict d_consForce,
18  const char3* __restrict d_transform,
19  double* __restrict f_normal_x,
20  double* __restrict f_normal_y,
21  double* __restrict f_normal_z,
22  double3* __restrict d_extForce,
23  double3* __restrict h_extForce,
24  cudaTensor* __restrict d_virial,
25  cudaTensor* __restrict h_virial,
26  const double scaling,
27  const Lattice lat,
28  unsigned int* __restrict tbcatomic,
29  cudaStream_t stream
30 );
31 
32 #endif // NODEGROUP_FORCE_REGISTER
33 #endif