Skip to content

Commit

Permalink
ratio: update gpu ratio to use gpu metrics
Browse files Browse the repository at this point in the history
Signed-off-by: Marcelo Amaral <[email protected]>
  • Loading branch information
marceloamaral committed Sep 13, 2023
1 parent fecec8b commit 08186fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/model/estimator/local/ratio_process.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,9 @@ func (r *RatioProcessPowerModel) GetGPUPower(isIdlePower bool) ([]float64, error

// TODO: idle power should be divided accordinly to the process requested resource
if isIdlePower {
processPower = r.getPowerByRatio(processIdx, int(GpuDynPower), int(GpuIdlePower), numProcesss)
processPower = r.getPowerByRatio(processIdx, int(GpuUsageMetric), int(GpuIdlePower), numProcesss)
} else {
processPower = r.getPowerByRatio(processIdx, int(GpuDynPower), int(GpuDynPower), numProcesss)
processPower = r.getPowerByRatio(processIdx, int(GpuUsageMetric), int(GpuDynPower), numProcesss)
}
nodeComponentsPowerOfAllProcesss = append(nodeComponentsPowerOfAllProcesss, processPower)
}
Expand Down

0 comments on commit 08186fe

Please sign in to comment.