OpenMPCD
Classes | Static Public Member Functions | List of all members
OpenMPCD::SystemInformation Class Reference

Provides information about the system the program is executing on. More...

#include <SystemInformation.hpp>

Classes

struct  CUDADevice
 Holds properties of a CUDA device. More...
 

Static Public Member Functions

static const std::string getHostname ()
 Returns the hostname. More...
 
static std::size_t getTotalPhysicalMainMemory ()
 Returns the total number of bytes of physical main memory. More...
 
static const std::vector< CUDADevicegetCUDADevices ()
 Returns a list of cuda devices. More...
 

Detailed Description

Provides information about the system the program is executing on.

Definition at line 18 of file SystemInformation.hpp.

Member Function Documentation

◆ getCUDADevices()

const std::vector< SystemInformation::CUDADevice > SystemInformation::getCUDADevices ( )
static

Returns a list of cuda devices.

Definition at line 36 of file SystemInformation.cpp.

◆ getHostname()

const std::string SystemInformation::getHostname ( )
static

Returns the hostname.

Exceptions
ExceptionThrows on errors.

Definition at line 12 of file SystemInformation.cpp.

◆ getTotalPhysicalMainMemory()

std::size_t SystemInformation::getTotalPhysicalMainMemory ( )
static

Returns the total number of bytes of physical main memory.

Exceptions
ExceptionThrows on errors.

Definition at line 24 of file SystemInformation.cpp.


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