1 #ifndef CUDANONBONDEDTABLES_H
2 #define CUDANONBONDEDTABLES_H
8 #include <hip/hip_runtime.h>
12 #if defined(NAMD_CUDA) || defined(NAMD_HIP)
19 int vdwCoefTableWidth;
20 cudaTextureObject_t vdwCoefTableTex;
21 int forceAndEnergyTableSize;
24 cudaArray_t forceArray;
25 cudaTextureObject_t forceTableTex;
28 cudaArray_t energyArray;
29 cudaTextureObject_t energyTableTex;
33 cudaArray_t modifiedExclusionForceArray;
34 cudaTextureObject_t modifiedExclusionForceTableTex;
35 float4* modifiedExclusionForceTable;
37 cudaArray_t modifiedExclusionEnergyArray;
38 cudaTextureObject_t modifiedExclusionEnergyTableTex;
39 float4* modifiedExclusionEnergyTable;
42 float2 *exclusionVdwCoefTable;
43 cudaTextureObject_t exclusionVdwCoefTableTex;
51 float4* exclusionTable;
53 cudaTextureObject_t exclusionTableTex;
54 cudaTextureObject_t r2_table_tex;
56 void buildVdwCoefTable(
bool update=
false);
57 void buildForceAndEnergyTables(
int tableSize);
91 #endif // CUDANONBONDEDTABLES_H
cudaTextureObject_t getEnergyTableTex()
cudaTextureObject_t getModifiedExclusionForceTableTex()
float4 * getModifiedExclusionEnergyTable()
int getVdwCoefTableWidth()
float4 * getModifiedExclusionForceTable()
cudaTextureObject_t get_r2_table_tex()
cudaTextureObject_t getModifiedExclusionEnergyTableTex()
float4 * getEnergyTable()
float4 * getExclusionTable()
int getForceAndEnergyTableSize()
cudaTextureObject_t getExclusionVdwCoefTableTex()
cudaTextureObject_t getExclusionTableTex()
float2 * getVdwCoefTable()
cudaTextureObject_t getForceTableTex()
cudaTextureObject_t getVdwCoefTableTex()
float2 * getExclusionVdwCoefTable()
CudaNonbondedTables(const int deviceID)