Fixed a latent memory allocation issue with NVML.
This commit is contained in:
parent
edd575042e
commit
5319945f08
@ -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 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user