NAMD
|
#include "charm++.h"
#include "NamdTypes.h"
#include "ComputeNonbondedUtil.h"
#include "LJTable.h"
#include "CudaUtils.h"
#include "CudaNonbondedTables.h"
Go to the source code of this file.
Functions | |
template<typename T > | |
void | copyTable (int size, T *h_table, T *&d_table, bool update=false) |
template<typename T > | |
void | bindTextureObject (int size, T *h_table, T *&d_table, cudaTextureObject_t &tex, bool update=false) |
template<typename T > | |
void | buildForceAndEnergyTable (const int tableSize, const double *r2list, const BigReal *src_table, const bool flip, const BigReal prefac, const int dst_stride, T *dst_force, T *dst_energy) |
template<typename T > | |
void | bindTextureObject (int tableSize, int tableWidth, T *h_table, cudaArray_t &array, cudaTextureObject_t &tableTex, T **d_table) |
void bindTextureObject | ( | int | size, |
T * | h_table, | ||
T *& | d_table, | ||
cudaTextureObject_t & | tex, | ||
bool | update = false |
||
) |
Definition at line 73 of file CudaNonbondedTables.C.
References cudaCheck.
void bindTextureObject | ( | int | tableSize, |
int | tableWidth, | ||
T * | h_table, | ||
cudaArray_t & | array, | ||
cudaTextureObject_t & | tableTex, | ||
T ** | d_table | ||
) |
Definition at line 207 of file CudaNonbondedTables.C.
References allocate_device_T(), copy_HtoD_T(), and cudaCheck.
void buildForceAndEnergyTable | ( | const int | tableSize, |
const double * | r2list, | ||
const BigReal * | src_table, | ||
const bool | flip, | ||
const BigReal | prefac, | ||
const int | dst_stride, | ||
T * | dst_force, | ||
T * | dst_energy | ||
) |
Definition at line 159 of file CudaNonbondedTables.C.
References ComputeNonbondedUtil::cutoff, ComputeNonbondedUtil::r2_delta, ComputeNonbondedUtil::r2_delta_exp, and ComputeNonbondedUtil::r2_table.
void copyTable | ( | int | size, |
T * | h_table, | ||
T *& | d_table, | ||
bool | update = false |
||
) |
Definition at line 62 of file CudaNonbondedTables.C.