NAMD
|
#include <DeviceCUDA.h>
Public Member Functions | |
DeviceCUDA () | |
~DeviceCUDA () | |
void | initialize () |
int | getDeviceCount () |
int | getNumDevice () |
bool | device_shared_with_pe (int pe) |
bool | one_device_per_node () |
int | getNoStreaming () |
int | getNoMergeGrids () |
int | getMergeGrids () |
void | setMergeGrids (const int val) |
bool | getSharedGpu () |
int | getNextPeSharingGpu () |
int | getMasterPe () |
int | getNumPesSharingDevice () |
int | getPesSharingDevice (const int i) |
int | getGpuIsMine () |
void | setGpuIsMine (const int val) |
int | getDeviceID () |
int | getDeviceIDbyRank (int rank) |
int | getDeviceIDforPe (int pe) |
int | getMasterPeForDeviceID (int deviceID) |
int | getMaxNumThreads () |
int | getMaxNumBlocks () |
Definition at line 38 of file DeviceCUDA.h.
DeviceCUDA::DeviceCUDA | ( | ) |
Definition at line 84 of file DeviceCUDA.C.
DeviceCUDA::~DeviceCUDA | ( | ) |
Definition at line 369 of file DeviceCUDA.C.
bool DeviceCUDA::device_shared_with_pe | ( | int | pe | ) |
Definition at line 392 of file DeviceCUDA.C.
Referenced by ComputeMgr::createComputes().
|
inline |
Definition at line 92 of file DeviceCUDA.h.
Referenced by CudaComputeNonbonded::assignPatches(), and ComputeCUDAMgr::initialize().
|
inline |
Definition at line 112 of file DeviceCUDA.h.
Referenced by ComputeNonbondedCUDA::ComputeNonbondedCUDA(), ComputeCUDAMgr::createCudaComputeNonbonded(), ComputePme::doWork(), ComputeCUDAMgr::getCudaComputeNonbonded(), ComputePmeMgr::initialize(), ComputePmeMgr::initialize_computes(), and ComputePmeMgr::ungridCalc().
|
inline |
Definition at line 113 of file DeviceCUDA.h.
Referenced by ComputeCUDAMgr::initialize(), ComputePmeCUDAMgr::initialize_pencils(), ComputePmeCUDAMgr::isPmeDevice(), and ComputeCUDAMgr::update().
int DeviceCUDA::getDeviceIDforPe | ( | int | pe | ) |
|
inline |
Definition at line 109 of file DeviceCUDA.h.
Referenced by ComputeNonbondedCUDA::doWork().
|
inline |
Definition at line 105 of file DeviceCUDA.h.
Referenced by build_cuda_exclusions(), build_cuda_force_table(), ComputePmeMgr::chargeGridSubmitted(), ComputeMgr::createComputes(), ComputePme::doWork(), ComputePmeMgr::initialize_computes(), and ComputePmeMgr::initialize_pencils().
int DeviceCUDA::getMasterPeForDeviceID | ( | int | deviceID | ) |
Definition at line 385 of file DeviceCUDA.C.
References masterPeList.
Referenced by CudaComputeNonbonded::assignPatches().
int DeviceCUDA::getMaxNumBlocks | ( | ) |
Definition at line 419 of file DeviceCUDA.C.
References cudaCheck.
Referenced by ComputeBondedCUDAKernel::bondedForce(), CudaTileListKernel::buildTileLists(), CudaComputeGBISKernel::GBISphase1(), CudaComputeGBISKernel::GBISphase2(), CudaComputeGBISKernel::GBISphase3(), CudaComputeNonbondedKernel::nonbondedForce(), and CudaComputeNonbondedKernel::reduceVirialEnergy().
int DeviceCUDA::getMaxNumThreads | ( | ) |
|
inline |
Definition at line 100 of file DeviceCUDA.h.
Referenced by ComputeNonbondedCUDA::ComputeNonbondedCUDA(), cuda_check_remote_progress(), ComputeNonbondedCUDA::finishWork(), ComputeNonbondedCUDA::recvYieldDevice(), and ComputeNonbondedCUDA::requirePatch().
|
inline |
Definition at line 104 of file DeviceCUDA.h.
Referenced by cuda_check_local_calc(), and cuda_check_remote_calc().
|
inline |
Definition at line 99 of file DeviceCUDA.h.
Referenced by ComputeNonbondedCUDA::ComputeNonbondedCUDA().
|
inline |
Definition at line 98 of file DeviceCUDA.h.
Referenced by ComputeNonbondedCUDA::ComputeNonbondedCUDA(), ComputeCUDAMgr::createCudaComputeNonbonded(), ComputeNonbondedCUDA::doWork(), and ComputeNonbondedCUDA::recvYieldDevice().
|
inline |
Definition at line 93 of file DeviceCUDA.h.
Referenced by ComputeCUDAMgr::initialize(), ComputePmeCUDAMgr::initialize_pencils(), ComputePmeCUDAMgr::isPmeDevice(), ComputePmeCUDAMgr::setupPencils(), and ComputeCUDAMgr::update().
|
inline |
Definition at line 106 of file DeviceCUDA.h.
Referenced by ComputeNonbondedCUDA::assignPatches(), and CudaComputeNonbonded::assignPatches().
|
inline |
Definition at line 107 of file DeviceCUDA.h.
Referenced by ComputeNonbondedCUDA::assignPatches(), and CudaComputeNonbonded::assignPatches().
|
inline |
Definition at line 103 of file DeviceCUDA.h.
Referenced by ComputeNonbondedCUDA::ComputeNonbondedCUDA(), and ComputeNonbondedCUDA::recvYieldDevice().
Definition at line 89 of file DeviceCUDA.C.
References cuda_args, cudaCheck, cudaDie(), deviceIDList, cuda_args_t::devicelist, cuda_args_t::devicesperreplica, dummy(), cuda_args_t::ignoresharing, masterPeList, MAX_NUM_DEVICES, MAX_NUM_RANKS, cuda_args_t::mergegrids, NAMD_die(), cuda_args_t::nomergegrids, cuda_args_t::nostreaming, and cuda_args_t::usedevicelist.
Referenced by cuda_initialize().
bool DeviceCUDA::one_device_per_node | ( | ) |
|
inline |
Definition at line 110 of file DeviceCUDA.h.
Referenced by ComputeNonbondedCUDA::ComputeNonbondedCUDA(), and ComputeNonbondedCUDA::recvYieldDevice().
|
inline |
Definition at line 101 of file DeviceCUDA.h.
Referenced by ComputeNonbondedCUDA::ComputeNonbondedCUDA().