From f756e3c2cd9257e2c5ee0fc102a34fe99d027b02 Mon Sep 17 00:00:00 2001 From: limengxuan <391013634@qq.com> Date: Tue, 15 Oct 2024 09:52:28 +0800 Subject: [PATCH] fix error code on device utilization Signed-off-by: limengxuan <391013634@qq.com> --- src/multiprocess/multiprocess_utilization_watcher.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/multiprocess/multiprocess_utilization_watcher.c b/src/multiprocess/multiprocess_utilization_watcher.c index 61cec41..c9cd4bf 100644 --- a/src/multiprocess/multiprocess_utilization_watcher.c +++ b/src/multiprocess/multiprocess_utilization_watcher.c @@ -150,7 +150,7 @@ int get_used_gpu_utilization(int *userutil,int *sysprocnum) { res = nvmlDeviceGetProcessUtilization(device,processes_sample,&processes_num,microsec); LOG_DEBUG("processes_num=%d\n",processes_num); LOG_DEBUG("Device UUID: %s\n", uuid); - if (res==NVML_ERROR_INSUFFICIENT_SIZE){ + if ((res==NVML_ERROR_INSUFFICIENT_SIZE) || (res==NVML_ERROR_NOT_FOUND)){ userutil[cudadev] = 0; for (i=0; i