12 #include <cuda_runtime.h> 15 #include <hip/hip_runtime.h> 47 #if defined(NAMD_CUDA) || defined(NAMD_HIP) 50 :
i(input.x),
j(input.y),
k(input.z) { ; }
64 #ifndef USE_NO_BITFIELDS 116 #endif // USE_NO_BITFIELDS 141 #ifndef USE_NO_BITFIELDS 143 #define NAMD_ATOM_ID_MASK 0x3FFFFFFFu 144 #define NAMD_ATOM_FIXED_MASK 0x40000000u 145 #define NAMD_GROUP_FIXED_MASK 0x80000000u 148 #if defined(NAMD_CUDA) || defined(NAMD_MIC) || defined(NAMD_AVXTILES) || defined(NAMD_HIP) 151 #ifdef MEM_OPT_VERSION 165 #if defined(NAMD_CUDA) || defined(NAMD_MIC) || defined(NAMD_AVXTILES) || defined(NAMD_HIP) 168 #ifdef MEM_OPT_VERSION 177 static_assert(
sizeof(
CompAtomExt)==
sizeof(
CompAtomExtCopy),
"NAMD fails to compile due to sizeof(CompAtomExt) != sizeof(CompAtomExtCopy)");
182 #if defined(NAMD_CUDA) || defined(NAMD_HIP) || defined(NAMD_MIC) 185 #ifdef MEM_OPT_VERSION 198 #endif // USE_NO_BITFIELDS 211 #ifdef MEM_OPT_VERSION 223 #ifdef MEM_OPT_VERSION 227 #ifdef MEM_OPT_VERSION 236 return hydVal < a.hydVal;
256 #if !(defined(__CUDACC__) || defined(__HIPCC__)) 303 #if NAMD_ComputeNonbonded_SortAtoms != 0
ResizeArray< GBReal > GBRealList
ResizeArray< Real > RealList
ResizeArray< CudaAtom > CudaAtomList
proxyTreeNode & operator=(const proxyTreeNode &n)
ResizeArray< PatchID > PatchIDList
int32 maxAtoms
max number of atoms available, multiple of MAXFACTOR
float * langScalVelBBK2
derived from langevinParam
int32 * migrationGroupSize
ResizeArray< Force > ForceList
ResizeArray< Velocity > VelocityList
ResizeArray< Position > PositionList
int32 * hydrogenGroupSize
size_t numBytes
number of bytes allocated for soa_buffer
ResizeArray< BigReal > BigRealList
proxyTreeNode(const proxyTreeNode &n)
float * gaussrand_x
fill with Gaussian distributed random numbers
double * vel_x
Jim recommends double precision velocity.
ResizeArray< FullAtom > FullAtomList
ResizeArray< Transform > TransformList
struct __sort_entry SortEntry
bool operator<(const intpair &lhs, const intpair &rhs)
ResizeArray< Compute * > ComputeList
ResizeArray< AtomID > AtomIDList
int32 status
Atom status bit fields defined in structures.h.
ResizeArray< proxyTreeNode > proxyTreeNodeList
double * recipMass
derived from mass
proxyTreeNode(int nid, int numPes_, int *pes)
ResizeArray< CompAtom > CompAtomList
ResizeArray< CompAtomExt > CompAtomExtList
ResizeArray< Patch * > PatchList
ResizeArray< int > IntList
float * langScalRandBBK2
from langevinParam and recipMass
int32 * nonbondedGroupSize
double * velNew_x
temp storage for rigid bond constraints
ResizeArray< InputAtom > InputAtomList
ResizeArray< NodeID > NodeIDList
int32 numAtoms
number of atoms