I’m trying to use NVML APIs to obtain some information. when I call nvmlDeviceGetGraphicsRunningProcesses to get the running processes, it often prints an error named failed with Insufficient Size (7).. The source code is in here.
When I comment the above function nvmlDeviceGetGraphicsRunningProcesses, the output of memory usage is wired.
Yes. I did it in the code. But the results of nvmlDeviceGetMemoryInfo_v2 is different from nvmlDeviceGetMemoryInfo. For example, the GPU memory used is 0MB in the result of nvmlDeviceGetMemoryInfo_v2 but I do have some gpu processes. and the result of nvmlDeviceGetMemoryInfo is correct.