NAMD
|
#include <CudaComputeNonbonded.h>
Classes | |
struct | ComputeRecord |
struct | PatchRecord |
Definition at line 27 of file CudaComputeNonbonded.h.
CudaComputeNonbonded::CudaComputeNonbonded | ( | ComputeID | c, |
int | deviceID, | ||
CudaNonbondedTables & | cudaNonbondedTables, | ||
bool | doStreaming | ||
) |
Definition at line 37 of file CudaComputeNonbonded.C.
References cudaCheck, SimParameters::GBISOn, Compute::gbisPhase, NAMD_die(), Node::Object(), SimParameters::pressureProfileOn, Node::simParameters, and simParams.
CudaComputeNonbonded::~CudaComputeNonbonded | ( | ) |
Definition at line 107 of file CudaComputeNonbonded.C.
References cudaCheck, and ComputeMgr::sendUnregisterBoxesOnPe().
void CudaComputeNonbonded::assignPatches | ( | ComputeMgr * | computeMgrIn | ) |
Definition at line 364 of file CudaComputeNonbonded.C.
References PatchMap::basePatchIDList(), deviceCUDA, findHomePatchPe(), findProxyPatchPes(), DeviceCUDA::getDeviceCount(), DeviceCUDA::getMasterPeForDeviceID(), Compute::getNumPatches(), DeviceCUDA::getNumPesSharingDevice(), DeviceCUDA::getPesSharingDevice(), ComputePmeCUDAMgr::isPmePe(), NAMD_bug(), PatchMap::Object(), ComputePmeCUDAMgr::Object(), PatchMap::ObjectOnPe(), ComputeMgr::sendAssignPatchesOnPe(), Compute::setNumPatches(), and sort.
Referenced by ComputeMgr::createComputes().
void CudaComputeNonbonded::assignPatchesOnPe | ( | ) |
Definition at line 302 of file CudaComputeNonbonded.C.
References ResizeArray< T >::add(), NAMD_bug(), PatchMap::node(), PatchMap::Object(), ResizeArray< T >::size(), and sort.
Referenced by ComputeMgr::recvAssignPatchesOnPe().
Reimplemented from Compute.
Definition at line 645 of file CudaComputeNonbonded.C.
Reimplemented from Compute.
Definition at line 922 of file CudaComputeNonbonded.C.
References Flags::doEnergy, Flags::doFullElectrostatics, Flags::doNonbonded, Flags::doVirial, SimParameters::GBISOn, Compute::gbisPhase, NAMD_bug(), Node::Object(), ComputeMgr::sendOpenBoxesOnPe(), and Node::simParameters.
void CudaComputeNonbonded::finishPatchesOnPe | ( | ) |
Definition at line 1379 of file CudaComputeNonbonded.C.
Referenced by ComputeMgr::recvFinishPatchesOnPe().
void CudaComputeNonbonded::finishPatchOnPe | ( | int | i | ) |
Definition at line 1386 of file CudaComputeNonbonded.C.
Referenced by ComputeMgr::recvFinishPatchOnPe().
void CudaComputeNonbonded::finishReductions | ( | ) |
Definition at line 1213 of file CudaComputeNonbonded.C.
References ADD_TENSOR_OBJECT, cudaCheck, VirialEnergy::energyElec, VirialEnergy::energyGBIS, VirialEnergy::energySlow, VirialEnergy::energyVdw, SimParameters::GBISOn, CudaTileListKernel::getNumExcluded(), SubmitReduction::item(), NAMD_bug(), Node::Object(), REDUCTION_COMPUTE_CHECKSUM, REDUCTION_ELECT_ENERGY, REDUCTION_ELECT_ENERGY_SLOW, REDUCTION_EXCLUSION_CHECKSUM_CUDA, REDUCTION_LJ_ENERGY, Node::simParameters, SubmitReduction::submit(), VirialEnergy::virial, VirialEnergy::virialSlow, Tensor::xx, Tensor::xy, Tensor::xz, Tensor::yx, Tensor::yy, Tensor::yz, Tensor::zx, Tensor::zy, and Tensor::zz.
Referenced by ComputeMgr::recvFinishReductions().
Reimplemented from Compute.
Definition at line 245 of file CudaComputeNonbonded.C.
References Compute::gbisP2PatchReady().
Reimplemented from Compute.
Definition at line 251 of file CudaComputeNonbonded.C.
References Compute::gbisP3PatchReady().
Reimplemented from Compute.
Definition at line 608 of file CudaComputeNonbonded.C.
References ATOMIC_BINS, cudaCheck, ReductionMgr::Object(), Compute::priority(), REDUCTIONS_BASIC, and ReductionMgr::willSubmit().
Referenced by ComputeMgr::createComputes().
void CudaComputeNonbonded::launchWork | ( | ) |
Definition at line 973 of file CudaComputeNonbonded.C.
References CudaComputeNonbonded::PatchRecord::atomStart, cudaCheck, ComputeNonbondedUtil::cutoff, SimParameters::GBISOn, Compute::gbisPhase, CudaTileListKernel::getEmptyPatches(), CudaTileListKernel::getNumEmptyPatches(), CudaTileListKernel::getNumPatches(), CudaComputeNonbondedKernel::getPatchReadyQueue(), SubmitReduction::item(), NAMD_bug(), CudaComputeNonbonded::PatchRecord::numAtoms, Node::Object(), CudaComputeNonbondedKernel::reduceVirialEnergy(), REDUCTION_PAIRLIST_WARNINGS, Flags::savePairlists, Node::simParameters, and Flags::usePairlists.
Referenced by ComputeMgr::recvLaunchWork().
void CudaComputeNonbonded::messageEnqueueWork | ( | ) |
Definition at line 862 of file CudaComputeNonbonded.C.
References WorkDistrib::messageEnqueueWork(), and NAMD_bug().
Referenced by ComputeMgr::recvMessageEnqueueWork().
|
virtual |
Reimplemented from Compute.
Definition at line 887 of file CudaComputeNonbonded.C.
References ComputeMgr::sendMessageEnqueueWork().
void CudaComputeNonbonded::openBoxesOnPe | ( | ) |
Definition at line 868 of file CudaComputeNonbonded.C.
References Compute::getNumPatches(), NAMD_bug(), and ComputeMgr::sendLaunchWork().
Referenced by ComputeMgr::recvOpenBoxesOnPe().
Reimplemented from Compute.
Definition at line 233 of file CudaComputeNonbonded.C.
References NAMD_bug(), and Compute::patchReady().
Definition at line 174 of file CudaComputeNonbonded.C.
References PatchMap::center(), PatchMap::Object(), Vector::x, Vector::y, and Vector::z.
Definition at line 164 of file CudaComputeNonbonded.C.
void CudaComputeNonbonded::skipPatchesOnPe | ( | ) |
Definition at line 687 of file CudaComputeNonbonded.C.
References Compute::getNumPatches(), NAMD_bug(), and ComputeMgr::sendFinishReductions().
Referenced by ComputeMgr::recvSkipPatchesOnPe().
void CudaComputeNonbonded::unregisterBoxesOnPe | ( | ) |
Definition at line 152 of file CudaComputeNonbonded.C.
References NAMD_bug().
Referenced by ComputeMgr::recvUnregisterBoxesOnPe().