STORMM Source Documentation
Loading...
Searching...
No Matches
stormm::card::HpcConfig Class Reference

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.
 

Detailed Description

Take an image of the available system hardware. One or more GPUs can be assigned to a thread based on this information.

Member Function Documentation

◆ getGpuDevice()

std::vector< int > stormm::card::HpcConfig::getGpuDevice ( int requested_count) const

Return the indices and specs of one or more GPU devices.

Parameters
requested_countThe number of available GPUs sought for this program's runtime

◆ getGpuInfo()

GpuDetails stormm::card::HpcConfig::getGpuInfo ( int gpu_index) const

Return information on a particular GPU in the server or workstation.

Parameters
gpu_indexIndex of the GPU of interest

The documentation for this class was generated from the following file: