STORMM Source Documentation
|
Take an image of the available system hardware. One or more GPUs can be assigned to a thread based on this information. More...
#include <hpc_config.h>
Public Member Functions | |
HpcConfig (ExceptionResponse policy=ExceptionResponse::DIE) | |
Constructor for an HpcConfig object. One such object should be present in any given STORMM executable. | |
~HpcConfig () | |
Destructor encapsulates HPC shutdown protocols. | |
int | getOverallGpuCount () const |
Return the total number of GPUs in the server or workstation, whether they are supported by STORMM or not, whether they are available or not. | |
int | getAvailableGpuCount () const |
Return the count of available and supported GPUs in the server or workstation. | |
int | getSupportedGpuCount () const |
Return the count of supported and supported GPUs in the server or workstation. The available GPUs are a subset of the supported GPUs. | |
GpuDetails | getGpuInfo (int gpu_index) const |
Return information on a particular GPU in the server or workstation. | |
std::vector< int > | getGpuDevice (int requested_count) const |
Return the indices and specs of one or more GPU devices. | |
Take an image of the available system hardware. One or more GPUs can be assigned to a thread based on this information.
std::vector< int > stormm::card::HpcConfig::getGpuDevice | ( | int | requested_count | ) | const |
Return the indices and specs of one or more GPU devices.
requested_count | The number of available GPUs sought for this program's runtime |
GpuDetails stormm::card::HpcConfig::getGpuInfo | ( | int | gpu_index | ) | const |
Return information on a particular GPU in the server or workstation.
gpu_index | Index of the GPU of interest |