Skip to content

Commit

Permalink
fix: nvml/dcgm builds
Browse files Browse the repository at this point in the history
Signed-off-by: Maryam Tahhan <[email protected]>
  • Loading branch information
maryamtahhan committed Sep 3, 2024
1 parent 9d14581 commit 5b95acb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/sensors/accelerator/device/sources/dcgm.go
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ func (d *GPUDcgm) AbsEnergyFromDevice() []uint32 {
}
// since Kepler collects metrics at intervals of SamplePeriodSec, which is greater than 1 second, it is
// necessary to calculate the energy consumption for the entire waiting period
energy := uint32(uint64(power) * config.SamplePeriodSec)
energy := uint32(uint64(power) * config.SamplePeriodSec())
gpuEnergy = append(gpuEnergy, energy)
}
return gpuEnergy
Expand Down
2 changes: 1 addition & 1 deletion pkg/sensors/accelerator/device/sources/nvml.go
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ func (n *GPUNvml) AbsEnergyFromDevice() []uint32 {
}
// since Kepler collects metrics at intervals of SamplePeriodSec, which is greater than 1 second, it is
// necessary to calculate the energy consumption for the entire waiting period
energy := uint32(uint64(power) * config.SamplePeriodSec)
energy := uint32(uint64(power) * config.SamplePeriodSec())
gpuEnergy = append(gpuEnergy, energy)
}
return gpuEnergy
Expand Down

0 comments on commit 5b95acb

Please sign in to comment.