FLImaging 7.8.25.3
AmdGPUInformation.h
1#pragma once
2
10
11#include "FLString.h"
12
13namespace FLImaging
14{
15 namespace Base
16 {
24 class FL_EXPORT CAmdGPUInformation : public CFLBase
25 {
26 private:
34 CAmdGPUInformation();
35
36 public:
37
46
56 static uint32_t GetCount();
57
69 static CFLString<wchar_t> GetName(uint32_t u32PhysicalGPUIndex);
70
82 static uint64_t GetTotalMemory(uint32_t u32PhysicalGPUIndex);
83
95 static uint64_t GetUsedMemory(uint32_t u32PhysicalGPUIndex);
96
108 static uint64_t GetFreeMemory(uint32_t u32PhysicalGPUIndex);
109
121 static uint32_t GetProcessorUsage(uint32_t u32PhysicalGPUIndex);
122
134 static int32_t GetTemperature(uint32_t u32PhysicalGPUIndex);
135
136
148 static int32_t GetBusID(uint32_t u32PhysicalGPUIndex);
149
163 static const CResult GetPhysicalGPUIndexByBusID(int32_t i32BusID, uint32_t& u32PhysicalGPUIndex);
164
165 DeclareGetClassType();
166
167 private:
168
169 static CAmdGPUInformation* GetInstance();
170
171 size_t m_stModule;
172 size_t m_stContext;
173
174 int32_t m_arrI32AdapterIndex[64];
175 int32_t m_arrI32BusID[64];
176 char m_arrSzName[64][256];
177 uint32_t m_u32Count;
178 };
179 }
180}
static uint64_t GetUsedMemory(uint32_t u32PhysicalGPUIndex)
Returns the used memory of the physical GPU at the specified index.
static uint64_t GetTotalMemory(uint32_t u32PhysicalGPUIndex)
Returns the total memory of the physical GPU at the specified index.
static int32_t GetTemperature(uint32_t u32PhysicalGPUIndex)
Returns the temperature of the physical GPU at the specified index.
static uint64_t GetFreeMemory(uint32_t u32PhysicalGPUIndex)
Returns the free memory of the physical GPU at the specified index.
static CFLString< wchar_t > GetName(uint32_t u32PhysicalGPUIndex)
Returns the name of the physical GPU at the specified index.
static int32_t GetBusID(uint32_t u32PhysicalGPUIndex)
Retrieves the Bus ID for the specified index.
virtual ~CAmdGPUInformation()
Destructor.
static const CResult GetPhysicalGPUIndexByBusID(int32_t i32BusID, uint32_t &u32PhysicalGPUIndex)
Retrieves the Physical GPU Index corresponding to the specified Bus ID.
static uint32_t GetCount()
Returns the number of GPUs available in the system.
static uint32_t GetProcessorUsage(uint32_t u32PhysicalGPUIndex)
Returns the physical GPU utilization rate at the specified index.
CFLBase()
Default constructor.
Template type string class.
Definition FLString.h:34
FLImaging module execution result object.
Definition ResultsDef.h:1704
Definition AESCryptography.h:18