Skip to content

Empty column nvidia-smi #21

Description

@vinnik-dmitry07

Sometimes there is no information from sensors and nvidia-smi return "-" so consider replacing parce_line with:

def parse_line(line_string):
    parsed_list = list(('-' if val == '-' else func(val)  for func, val in zip(conversion_funcs, tmp)))
    logger.debug(parsed_list)
    return [datetime.combine(*parsed_list[:2])] + parsed_list[2:]

Also I don't realy now what gpu headers you have but I have a bit other:

conversion_funcs =   convert_datetime,  convert_time,   int,    int,    int,        int,        int,        int,    int,    int,    int,    int,    int
gpu_headers =                           'timestamp',    'gpu',  'pwr',  'gtemp',    'mtemp',    'mtemp',    'sm',   'mem',  'enc',  'dec',  'mclk', 'pclk'

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

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