Skip to content

Commit

Permalink
nits(nvidia/query): make detect logs debug level (#135)
Browse files Browse the repository at this point in the history
Signed-off-by: Gyuho Lee <[email protected]>
  • Loading branch information
gyuho authored Oct 25, 2024
1 parent c14bee2 commit 1a0ff53
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/accelerator/nvidia/query/detect.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,15 @@ func GPUsInstalled(ctx context.Context) (bool, error) {
if len(pciDevices) == 0 {
return false, nil
}
log.Logger.Infow("nvidia PCI devices found", "devices", len(pciDevices))
log.Logger.Debugw("nvidia PCI devices found", "devices", len(pciDevices))

// now that we have the NVIDIA PCI devices,
// call NVML C-based API for NVML API
gpuDeviceName, err := LoadGPUDeviceName(ctx)
if err != nil {
return false, err
}
log.Logger.Infow("detected nvidia gpu", "gpuDeviceName", gpuDeviceName)
log.Logger.Debugw("detected nvidia gpu", "gpuDeviceName", gpuDeviceName)

return true, nil
}
Expand Down

0 comments on commit 1a0ff53

Please sign in to comment.