Gromacs  2019-beta2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Functions
gmx::anonymous_namespace{taskassignment.cpp} Namespace Reference

Functions

GpuTaskAssignments buildTaskAssignment (const GpuTasksOnRanks &gpuTasksOnRanksOfThisNode, ArrayRef< const int > gpuIds)
 Build data structure of types of GPU tasks on a rank, together with the mapped GPU device IDs, for all GPU tasks on all the ranks of this node. More...
 
bool isAnyGpuSharedBetweenRanks (const GpuTaskAssignments &gpuTaskAssignments)
 Return whether a GPU device is shared between any ranks. More...
 
void logPerformanceHints (const MDLogger &mdlog, size_t numCompatibleGpus, size_t numGpuTasksOnThisNode, const GpuTaskAssignments &gpuTaskAssignments)
 Logs to mdlog information that may help a user learn how to let mdrun make a task assignment that runs faster.
 
size_t countGpuTasksOnThisNode (const GpuTasksOnRanks &gpuTasksOnRanksOfThisNode)
 Counts all the GPU tasks on this node.
 

Function Documentation

GpuTaskAssignments gmx::anonymous_namespace{taskassignment.cpp}::buildTaskAssignment ( const GpuTasksOnRanks &  gpuTasksOnRanksOfThisNode,
ArrayRef< const int >  gpuIds 
)

Build data structure of types of GPU tasks on a rank, together with the mapped GPU device IDs, for all GPU tasks on all the ranks of this node.

Parameters
[in]gpuTasksOnRanksOfThisNodeFor each rank on this node, the set of tasks that are eligible to run on GPUs.
[in]gpuIdsThe user-supplied GPU IDs.
bool gmx::anonymous_namespace{taskassignment.cpp}::isAnyGpuSharedBetweenRanks ( const GpuTaskAssignments &  gpuTaskAssignments)

Return whether a GPU device is shared between any ranks.

Sharing GPUs among multiple ranks is possible via either user or automated selection.