Make use of nvmlDeviceGetCount()
This commit is contained in:
@@ -168,6 +168,7 @@ typedef nvmlDevice_t HM_ADAPTER_NVML;
|
||||
typedef const char * (*NVML_API_CALL NVML_ERROR_STRING) (nvmlReturn_t);
|
||||
typedef int (*NVML_API_CALL NVML_INIT) (void);
|
||||
typedef int (*NVML_API_CALL NVML_SHUTDOWN) (void);
|
||||
typedef nvmlReturn_t (*NVML_API_CALL NVML_DEVICE_GET_COUNT) (unsigned int *);
|
||||
typedef nvmlReturn_t (*NVML_API_CALL NVML_DEVICE_GET_NAME) (nvmlDevice_t, char *, unsigned int);
|
||||
typedef nvmlReturn_t (*NVML_API_CALL NVML_DEVICE_GET_HANDLE_BY_INDEX) (unsigned int, nvmlDevice_t *);
|
||||
typedef nvmlReturn_t (*NVML_API_CALL NVML_DEVICE_GET_TEMPERATURE) (nvmlDevice_t, nvmlTemperatureSensors_t, unsigned int *);
|
||||
@@ -199,6 +200,7 @@ typedef struct hm_nvml_lib
|
||||
NVML_ERROR_STRING nvmlErrorString;
|
||||
NVML_INIT nvmlInit;
|
||||
NVML_SHUTDOWN nvmlShutdown;
|
||||
NVML_DEVICE_GET_COUNT nvmlDeviceGetCount;
|
||||
NVML_DEVICE_GET_NAME nvmlDeviceGetName;
|
||||
NVML_DEVICE_GET_HANDLE_BY_INDEX nvmlDeviceGetHandleByIndex;
|
||||
NVML_DEVICE_GET_TEMPERATURE nvmlDeviceGetTemperature;
|
||||
|
||||
Reference in New Issue
Block a user