From f2c7a45e47712f05abdbbddc069eca8d29241a6a Mon Sep 17 00:00:00 2001 From: Tanguy Pruvot Date: Thu, 28 May 2015 07:07:09 +0200 Subject: [PATCH] nvml: fix pstate api, nvmlDeviceGetPerformanceState works on linux, 346.72 --- nvml.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nvml.cpp b/nvml.cpp index cece192..fac9075 100644 --- a/nvml.cpp +++ b/nvml.cpp @@ -148,7 +148,7 @@ nvml_handle * nvml_create() nvmlh->nvmlDeviceGetFanSpeed = (nvmlReturn_t (*)(nvmlDevice_t, unsigned int *)) wrap_dlsym(nvmlh->nvml_dll, "nvmlDeviceGetFanSpeed"); nvmlh->nvmlDeviceGetPerformanceState = (nvmlReturn_t (*)(nvmlDevice_t, int *)) - wrap_dlsym(nvmlh->nvml_dll, "nvmlDeviceGetPowerUsage"); + wrap_dlsym(nvmlh->nvml_dll, "nvmlDeviceGetPerformanceState"); /* or nvmlDeviceGetPowerState */ nvmlh->nvmlDeviceGetSerial = (nvmlReturn_t (*)(nvmlDevice_t, char *, unsigned int)) wrap_dlsym(nvmlh->nvml_dll, "nvmlDeviceGetSerial"); nvmlh->nvmlDeviceGetUUID = (nvmlReturn_t (*)(nvmlDevice_t, char *, unsigned int))