mirror of
https://github.com/clearml/clearml
synced 2025-05-09 15:10:38 +00:00
Fix GPU metrics collection broken by annotations
This commit is contained in:
parent
9541a99762
commit
960165d425
@ -392,10 +392,10 @@ class GPUStatCollection(object):
|
|||||||
return b.decode() # for python3, to unicode
|
return b.decode() # for python3, to unicode
|
||||||
return b
|
return b
|
||||||
|
|
||||||
def get_gpu_info(index: int, handle: N.nvmlDevice_t, is_mig: bool = False) -> dict:
|
def get_gpu_info(index: int, handle: Any, is_mig: bool = False) -> dict:
|
||||||
"""Get one GPU information specified by nvml handle"""
|
"""Get one GPU information specified by nvml handle"""
|
||||||
|
|
||||||
def get_process_info(nv_process: N.nvmlProcessInfo) -> dict:
|
def get_process_info(nv_process: Any) -> dict:
|
||||||
"""Get the process information of specific pid"""
|
"""Get the process information of specific pid"""
|
||||||
process = {}
|
process = {}
|
||||||
if nv_process.pid not in GPUStatCollection.global_processes:
|
if nv_process.pid not in GPUStatCollection.global_processes:
|
||||||
|
Loading…
Reference in New Issue
Block a user