Fixed a latent memory allocation issue with NVML.

This commit is contained in:
moosecrap 2025-02-27 05:19:05 -08:00
parent edd575042e
commit 5319945f08

View File

@ -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 */