13 #include <pstreams/pstream.h> 31 std::string
json(
const std::string
name = {
"static"})
const override;
ObSensorGpu(std::string _name={"gpu"})
std::vector< std::vector< nvmlProcessInfo_t > > fComputeProc
Compute processes (ex. CUDA Applications)
void process() override
Process function.
nvmlMemory_t mem
GPU memory stats.
Structure for device stat simplification.
struct ObSensorGpu::devStat_t devStat_t
Structure for device stat simplification.
std::string getProcUser(unsigned int) const
std::string name() const
Returns name of sensor.
std::string name
Device name reported by NVML.
std::string json(const std::string name={"static"}) const override
unsigned int _count
Count of NVIDIA devices.
void speed(ObSensor *s1, ObSensor *s2, unsigned int timeout=1000) override
Calculate time change (speed)
virtual ~ObSensorGpu() override
std::vector< nvmlDevice_t > fDevices
NVML device handles.
std::vector< devStat_t > fStatus
Device statistics.
nvmlUtilization_t util
GPU utilization stats.
std::string _name
Sensor name.
std::vector< std::vector< nvmlProcessInfo_t > > fGraphicsProc
Graphics processes (ex. desktop env)