Skip to content

ValueError when nvidia-smi finds no GPU  #41

Open
@kuangdai

Description

In Line 90:

lines = output.split(os.linesep)

returns [''] instead of [] when nvidia-smi finds no GPU, which then causes ValueError by the parser.

Suggested update:

lines = list(filter(None, output.split(os.linesep)))

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions