Gromacs  2026.0-dev-20241121-c76fa1e
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Functions
gmx::anonymous_namespace{reportgpuusage.cpp} Namespace Reference

Functions

size_t countUniqueGpuIdsUsed (ArrayRef< const GpuTaskAssignment > gpuTaskAssignmentOnRanksOfThisNode)
 Count and return the number of unique GPUs (per node) selected. More...
 

Function Documentation

size_t gmx::anonymous_namespace{reportgpuusage.cpp}::countUniqueGpuIdsUsed ( ArrayRef< const GpuTaskAssignment >  gpuTaskAssignmentOnRanksOfThisNode)

Count and return the number of unique GPUs (per node) selected.

As sharing GPUs among multiple ranks is possible, the number of GPUs used (per node) can be different from the number of GPU IDs used.