Medical Imaging Interaction Toolkit  2024.06.00
Medical Imaging Interaction Toolkit
QmitkGPULoader Class Reference

Class to load and save GPU information for further validation. More...

#include <QmitknnUNetGPU.h>

Public Member Functions

 QmitkGPULoader ()
 Construct a new Qmitk GPU Loader object. Parses GPU info using nvidia-smi command and saves it as QmitkGPUSpec objects. More...
 
 ~QmitkGPULoader ()=default
 
int GetGPUCount () const
 Returns the number of GPUs parsed and saved as QmitkGPUSpec objects. More...
 
std::vector< QmitkGPUSpecGetAllGPUSpecs ()
 Returns all the parsed GPU information. More...
 

Detailed Description

Class to load and save GPU information for further validation.

Definition at line 35 of file QmitknnUNetGPU.h.

Constructor & Destructor Documentation

◆ QmitkGPULoader()

QmitkGPULoader::QmitkGPULoader ( )

Construct a new Qmitk GPU Loader object. Parses GPU info using nvidia-smi command and saves it as QmitkGPUSpec objects.

◆ ~QmitkGPULoader()

QmitkGPULoader::~QmitkGPULoader ( )
default

Member Function Documentation

◆ GetAllGPUSpecs()

std::vector<QmitkGPUSpec> QmitkGPULoader::GetAllGPUSpecs ( )

Returns all the parsed GPU information.

Returns
std::vector<QmitkGPUSpec>

◆ GetGPUCount()

int QmitkGPULoader::GetGPUCount ( ) const

Returns the number of GPUs parsed and saved as QmitkGPUSpec objects.

Returns
int

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