Skip to content

Commit

Permalink
chore: Improve failed to parse GPU string error
Browse files Browse the repository at this point in the history
Co-authored-by: logan <[email protected]>
  • Loading branch information
bgins and noryev committed Feb 4, 2025
1 parent 5ac7ee5 commit 0150090
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/resourceprovider/preflight/gpu.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,10 @@ func (p *preflightChecker) getGPUInfo(ctx context.Context) ([]gpuInfo, error) {
records := strings.Split(strings.TrimSpace(string(output)), "\n")
gpus := make([]gpuInfo, 0, len(records))

for i, record := range records {
for _, record := range records {
gpu, err := parseGPURecord(record)
if err != nil {
log.Warn().Err(err).Int("index", i).Msg("Failed to parse GPU record")
log.Warn().Err(err).Msgf("Failed to parse GPU record: %s", record)
continue
}

Expand Down

0 comments on commit 0150090

Please sign in to comment.