mirror of
https://github.com/NVIDIA/nvidia-container-toolkit
synced 2024-11-25 21:39:10 +00:00
[bugfix] Process error type instead of nvml.Return in internal/platform-support/dgpu
Signed-off-by: Christopher Desiniotis <cdesiniotis@nvidia.com>
This commit is contained in:
parent
c5c124b882
commit
d8ccd50349
@ -145,9 +145,9 @@ type toRequiredMigInfo struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (d *toRequiredMigInfo) getPlacementInfo() (int, int, int, error) {
|
func (d *toRequiredMigInfo) getPlacementInfo() (int, int, int, error) {
|
||||||
gpu, ret := d.parent.GetMinorNumber()
|
gpu, err := d.parent.GetMinorNumber()
|
||||||
if ret != nvml.SUCCESS {
|
if err != nil {
|
||||||
return 0, 0, 0, fmt.Errorf("error getting GPU minor: %v", ret)
|
return 0, 0, 0, fmt.Errorf("error getting GPU minor: %w", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
gi, ret := d.GetGpuInstanceId()
|
gi, ret := d.GetGpuInstanceId()
|
||||||
|
Loading…
Reference in New Issue
Block a user