-
Notifications
You must be signed in to change notification settings - Fork 43
Open
Labels
Description
The current implementation of Device::field_values_for
is too limiting. The caller can only pass in a slice of field IDs to populate nvmlFieldValue_t::fieldId
while all other struct members are set to zero, while nvmlDeviceGetFieldValues
actually also uses nvmlFieldValue_t::scopeId
as input when querying several fields such as NVLink remote IDs, NVLink ECC counters, or power draw and power limits.
I would like to contribute a function that allows passing in both fieldId
and scopeId
and was wondering whether that should replace Device::field_values_for
or be a separate function, e.g. Device::scoped_field_values_for
.