#include <CudaNonbondedTables.h>
Definition at line 14 of file CudaNonbondedTables.h.
CudaNonbondedTables::CudaNonbondedTables |
( |
const int |
deviceID | ) |
|
Definition at line 10 of file CudaNonbondedTables.C.
References cudaCheck, and FORCE_ENERGY_TABLE_SIZE.
10 : deviceID(deviceID) {
20 exclusionTable = NULL;
23 modifiedExclusionForceTableTex = 0;
24 modifiedExclusionEnergyTableTex = 0;
25 modifiedExclusionForceTable = NULL;
26 modifiedExclusionEnergyTable = NULL;
__global__ void const int const TileList *__restrict__ TileExcl *__restrict__ const int *__restrict__ const int const float2 *__restrict__ cudaTextureObject_t const int *__restrict__ const float3 const float3 const float3 const float4 *__restrict__ const float cudaTextureObject_t forceTableTex
__global__ void const int const TileList *__restrict__ TileExcl *__restrict__ const int *__restrict__ const int vdwCoefTableWidth
__global__ void const int const TileList *__restrict__ TileExcl *__restrict__ const int *__restrict__ const int const float2 *__restrict__ vdwCoefTable
#define FORCE_ENERGY_TABLE_SIZE
__global__ void const int const TileList *__restrict__ TileExcl *__restrict__ const int *__restrict__ const int const float2 *__restrict__ cudaTextureObject_t const int *__restrict__ const float3 const float3 const float3 const float4 *__restrict__ const float cudaTextureObject_t cudaTextureObject_t energyTableTex
CudaNonbondedTables::~CudaNonbondedTables |
( |
| ) |
|
Definition at line 33 of file CudaNonbondedTables.C.
References cudaCheck.
36 if (exclusionTable != NULL) deallocate_device<float4>(&exclusionTable);
37 if (r2_table != NULL) deallocate_device<float>(&r2_table);
41 cudaCheck(cudaFreeArray(modifiedExclusionForceArray));
42 cudaCheck(cudaFreeArray(modifiedExclusionEnergyArray));
46 cudaCheck(cudaDestroyTextureObject(modifiedExclusionForceTableTex));
47 cudaCheck(cudaDestroyTextureObject(modifiedExclusionEnergyTableTex));
49 if (forceTable != NULL) deallocate_device<float4>(&forceTable);
50 if (energyTable != NULL) deallocate_device<float4>(&energyTable);
51 if (modifiedExclusionForceTable != NULL) deallocate_device<float4>(&modifiedExclusionForceTable);
52 if (modifiedExclusionEnergyTable != NULL) deallocate_device<float4>(&modifiedExclusionEnergyTable);
__global__ void const int const TileList *__restrict__ TileExcl *__restrict__ const int *__restrict__ const int const float2 *__restrict__ cudaTextureObject_t const int *__restrict__ const float3 const float3 const float3 const float4 *__restrict__ const float cudaTextureObject_t forceTableTex
__global__ void const int const TileList *__restrict__ TileExcl *__restrict__ const int *__restrict__ const int const float2 *__restrict__ vdwCoefTable
__global__ void const int const TileList *__restrict__ TileExcl *__restrict__ const int *__restrict__ const int const float2 *__restrict__ cudaTextureObject_t const int *__restrict__ const float3 const float3 const float3 const float4 *__restrict__ const float cudaTextureObject_t cudaTextureObject_t energyTableTex
float* CudaNonbondedTables::get_r2_table |
( |
| ) |
|
|
inline |
cudaTextureObject_t CudaNonbondedTables::get_r2_table_tex |
( |
| ) |
|
|
inline |
float4* CudaNonbondedTables::getEnergyTable |
( |
| ) |
|
|
inline |
cudaTextureObject_t CudaNonbondedTables::getEnergyTableTex |
( |
| ) |
|
|
inline |
Definition at line 68 of file CudaNonbondedTables.h.
__global__ void const int const TileList *__restrict__ TileExcl *__restrict__ const int *__restrict__ const int const float2 *__restrict__ cudaTextureObject_t const int *__restrict__ const float3 const float3 const float3 const float4 *__restrict__ const float cudaTextureObject_t cudaTextureObject_t energyTableTex
float4* CudaNonbondedTables::getExclusionTable |
( |
| ) |
|
|
inline |
cudaTextureObject_t CudaNonbondedTables::getExclusionTableTex |
( |
| ) |
|
|
inline |
float2* CudaNonbondedTables::getExclusionVdwCoefTable |
( |
| ) |
|
|
inline |
cudaTextureObject_t CudaNonbondedTables::getExclusionVdwCoefTableTex |
( |
| ) |
|
|
inline |
int CudaNonbondedTables::getForceAndEnergyTableSize |
( |
| ) |
|
|
inline |
float4* CudaNonbondedTables::getForceTable |
( |
| ) |
|
|
inline |
cudaTextureObject_t CudaNonbondedTables::getForceTableTex |
( |
| ) |
|
|
inline |
Definition at line 67 of file CudaNonbondedTables.h.
__global__ void const int const TileList *__restrict__ TileExcl *__restrict__ const int *__restrict__ const int const float2 *__restrict__ cudaTextureObject_t const int *__restrict__ const float3 const float3 const float3 const float4 *__restrict__ const float cudaTextureObject_t forceTableTex
float4* CudaNonbondedTables::getModifiedExclusionEnergyTable |
( |
| ) |
|
|
inline |
cudaTextureObject_t CudaNonbondedTables::getModifiedExclusionEnergyTableTex |
( |
| ) |
|
|
inline |
float4* CudaNonbondedTables::getModifiedExclusionForceTable |
( |
| ) |
|
|
inline |
cudaTextureObject_t CudaNonbondedTables::getModifiedExclusionForceTableTex |
( |
| ) |
|
|
inline |
float2* CudaNonbondedTables::getVdwCoefTable |
( |
| ) |
|
|
inline |
Definition at line 63 of file CudaNonbondedTables.h.
__global__ void const int const TileList *__restrict__ TileExcl *__restrict__ const int *__restrict__ const int const float2 *__restrict__ vdwCoefTable
cudaTextureObject_t CudaNonbondedTables::getVdwCoefTableTex |
( |
| ) |
|
|
inline |
Definition at line 66 of file CudaNonbondedTables.h.
__global__ void const int const TileList *__restrict__ TileExcl *__restrict__ const int *__restrict__ const int const float2 *__restrict__ cudaTextureObject_t vdwCoefTableTex
int CudaNonbondedTables::getVdwCoefTableWidth |
( |
| ) |
|
|
inline |
Definition at line 64 of file CudaNonbondedTables.h.
__global__ void const int const TileList *__restrict__ TileExcl *__restrict__ const int *__restrict__ const int vdwCoefTableWidth
void CudaNonbondedTables::updateTables |
( |
| ) |
|
The documentation for this class was generated from the following files: