Skip to content

Bug: Incorrect implementation of nvml.GpmQueryDeviceSupport #168

@wss321

Description

@wss321

The implementation of GpmQueryDeviceSupport in gpm.go#L134 is incorrect and always returns ERROR_ARGUMENT_VERSION_MISMATCH.

The issue appears to be that the version field of GpmDeviceSupport is incorrectly initialized before being passed to the NVML C API. According to the usage in DCGM (source), the version field must be set to NVML_GPM_SUPPORT_VERSION.

This results in a version mismatch error from NVML.

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