diff --git a/evga-icx.c b/evga-icx.c index 2433d0c..cfa8442 100644 --- a/evga-icx.c +++ b/evga-icx.c @@ -180,8 +180,10 @@ int main (int argc, char **argv) /* NVML init */ #ifdef USE_NVML init_nvml(); - for (int i = 0; i < gpu_count; i++) + for (int i = 0; i < gpu_count; i++) { + gpus[i].nvml_device = malloc(sizeof(nvmlDevice_t)); get_nvml_handle(&gpus[i]); + } #endif /* PCI init for VRAM/hotspot temps */