#include <CudaNonbondedTables.h>
Definition at line 16 of file CudaNonbondedTables.h.
◆ CudaNonbondedTables()
CudaNonbondedTables::CudaNonbondedTables |
( |
const int |
deviceID | ) |
|
Definition at line 13 of file CudaNonbondedTables.C.
References cudaCheck, and FORCE_ENERGY_TABLE_SIZE.
13 : deviceID(deviceID) {
16 vdwCoefTableWidth = 0;
17 #if !defined(USE_TABLE_ARRAYS) 23 drudeNbTholeTijTable = NULL;
25 numPotentialNbtholeTerms = 0;
27 exclusionTable = NULL;
30 #if !defined(USE_TABLE_ARRAYS) 31 drudeNbTholeTijTableTex = 0;
32 modifiedExclusionForceTableTex = 0;
33 modifiedExclusionEnergyTableTex = 0;
35 modifiedExclusionForceTable = NULL;
36 modifiedExclusionEnergyTable = NULL;
#define FORCE_ENERGY_TABLE_SIZE
◆ ~CudaNonbondedTables()
CudaNonbondedTables::~CudaNonbondedTables |
( |
| ) |
|
Definition at line 43 of file CudaNonbondedTables.C.
References cudaCheck, and deallocate_device().
45 if (vdwCoefTable != NULL) deallocate_device<float2>(&vdwCoefTable);
46 if (exclusionTable != NULL) deallocate_device<float4>(&exclusionTable);
47 if (r2_table != NULL) deallocate_device<float>(&r2_table);
50 #if !defined(USE_TABLE_ARRAYS) 53 cudaCheck(cudaFreeArray(modifiedExclusionForceArray));
54 cudaCheck(cudaFreeArray(modifiedExclusionEnergyArray));
56 cudaCheck(cudaDestroyTextureObject(forceTableTex));
57 cudaCheck(cudaDestroyTextureObject(energyTableTex));
58 cudaCheck(cudaDestroyTextureObject(modifiedExclusionForceTableTex));
59 cudaCheck(cudaDestroyTextureObject(modifiedExclusionEnergyTableTex));
61 if (drudeNbthole)
cudaCheck(cudaDestroyTextureObject(drudeNbTholeTijTableTex));
64 if (forceTable != NULL) deallocate_device<float4>(&forceTable);
65 if (energyTable != NULL) deallocate_device<float4>(&energyTable);
66 if (modifiedExclusionForceTable != NULL) deallocate_device<float4>(&modifiedExclusionForceTable);
67 if (modifiedExclusionEnergyTable != NULL) deallocate_device<float4>(&modifiedExclusionEnergyTable);
void deallocate_device(T **pp)
◆ get_r2_table()
float* CudaNonbondedTables::get_r2_table |
( |
| ) |
|
|
inline |
◆ get_r2_table_tex()
cudaTextureObject_t CudaNonbondedTables::get_r2_table_tex |
( |
| ) |
|
|
inline |
◆ getDrudeNbTholeTijTable()
float* CudaNonbondedTables::getDrudeNbTholeTijTable |
( |
| ) |
|
|
inline |
◆ getDrudeNbTholeTijTableTex()
cudaTextureObject_t CudaNonbondedTables::getDrudeNbTholeTijTableTex |
( |
| ) |
|
|
inline |
◆ getEnergyTable()
float4* CudaNonbondedTables::getEnergyTable |
( |
| ) |
|
|
inline |
◆ getEnergyTableTex()
cudaTextureObject_t CudaNonbondedTables::getEnergyTableTex |
( |
| ) |
|
|
inline |
◆ getExclusionTable()
float4* CudaNonbondedTables::getExclusionTable |
( |
| ) |
|
|
inline |
◆ getExclusionTableTex()
cudaTextureObject_t CudaNonbondedTables::getExclusionTableTex |
( |
| ) |
|
|
inline |
◆ getExclusionVdwCoefTable()
float2* CudaNonbondedTables::getExclusionVdwCoefTable |
( |
| ) |
|
|
inline |
◆ getExclusionVdwCoefTableTex()
cudaTextureObject_t CudaNonbondedTables::getExclusionVdwCoefTableTex |
( |
| ) |
|
|
inline |
◆ getForceAndEnergyTableSize()
int CudaNonbondedTables::getForceAndEnergyTableSize |
( |
| ) |
const |
|
inline |
◆ getForceTable()
float4* CudaNonbondedTables::getForceTable |
( |
| ) |
|
|
inline |
◆ getForceTableTex()
cudaTextureObject_t CudaNonbondedTables::getForceTableTex |
( |
| ) |
|
|
inline |
◆ getModifiedExclusionEnergyTable()
float4* CudaNonbondedTables::getModifiedExclusionEnergyTable |
( |
| ) |
|
|
inline |
◆ getModifiedExclusionEnergyTableTex()
cudaTextureObject_t CudaNonbondedTables::getModifiedExclusionEnergyTableTex |
( |
| ) |
|
|
inline |
◆ getModifiedExclusionForceTable()
float4* CudaNonbondedTables::getModifiedExclusionForceTable |
( |
| ) |
|
|
inline |
◆ getModifiedExclusionForceTableTex()
cudaTextureObject_t CudaNonbondedTables::getModifiedExclusionForceTableTex |
( |
| ) |
|
|
inline |
◆ getNumPotentialNbtholeTerms()
int CudaNonbondedTables::getNumPotentialNbtholeTerms |
( |
| ) |
const |
|
inline |
◆ getVdwCoefTable()
float2* CudaNonbondedTables::getVdwCoefTable |
( |
| ) |
|
|
inline |
◆ getVdwCoefTableTex()
cudaTextureObject_t CudaNonbondedTables::getVdwCoefTableTex |
( |
| ) |
|
|
inline |
◆ getVdwCoefTableWidth()
int CudaNonbondedTables::getVdwCoefTableWidth |
( |
| ) |
|
|
inline |
◆ updateTables()
void CudaNonbondedTables::updateTables |
( |
| ) |
|
The documentation for this class was generated from the following files: