Skip to content

Commit

Permalink
Merge pull request #927 from marceloamaral/gpu-patch
Browse files Browse the repository at this point in the history
Fix GPU ratio bug to use GPU metrics
  • Loading branch information
marceloamaral authored Sep 13, 2023
2 parents fecec8b + 08186fe commit d5ab5d7
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 d5ab5d7

Please sign in to comment.