Skip to content

Check and potentially fix the usage of GetProcessUtilization parameters #27

@metalmatze

Description

@metalmatze

Hey @metalmatze, sorry for chiming in. I was checking this code to see how the nvidia API was used, and I'm wondering if the parameter expected by GetProcessUtilization is the PID.

The function is defined in without a name for the parameter,

https://github.com/NVIDIA/go-nvml/blob/62ce1e3ba862fb2f4ab5d7938bfec0a5ad0044cb/pkg/nvml/zz_generated.api.go#L918

But from

https://github.com/NVIDIA/go-nvml/blob/62ce1e3ba862fb2f4ab5d7938bfec0a5ad0044cb/pkg/nvml/device.go#L1816-L1819

it seems to be the last timestamp instead of pid.

Originally posted by @mauriciovasquezbernal in d80302d

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions