#include <gromacs/taskassignment/include/gromacs/taskassignment/taskassignment.h>
Contains the GPU task assignment for all ranks on this physical node.
This can be used to configure the modules on this rank that might run tasks on GPUs.
This assignment is made by a GpuTaskAssignmentsBuilder object.
|
class | GpuTaskAssignmentsBuilder |
|
Return handle to the initialized GPU to use in this rank.
- Parameters
-
[out] | deviceId | Index of the assigned device. |
- Returns
- Device information on the selected devicce. Returns nullptr if no GPU task is assigned to this rank.
void gmx::GpuTaskAssignments::logPerformanceHints |
( |
const MDLogger & |
mdlog, |
|
|
size_t |
numAvailableDevicesOnThisNode |
|
) |
| |
Logs to mdlog
information that may help a user learn how to let mdrun make a task assignment that runs faster.
- Parameters
-
[in] | mdlog | Logging object. |
[in] | numAvailableDevicesOnThisNode | The number of compatible devices on this node that the user permitted us to use. |
Log a report on how GPUs are being used on the ranks of the physical node of rank 0 of the simulation.
- Todo:
- It could be useful to report also whether any nodes differed, and in what way.
- Parameters
-
[in] | mdlog | Logging object. |
[in] | printHostName | Print the hostname in the usage information. |
[in] | pmeRunMode | Describes the execution of PME tasks. |
[in] | simulationWork | Simulation workload descriptor |
- Exceptions
-
std::bad_alloc | if out of memory |
The documentation for this class was generated from the following files: