mirror of
https://github.com/XuehaiPan/nvitop.git
synced 2026-05-21 06:45:24 -06:00
fix(api/libnvml): fix upstream changes for process info v3 APIs on 535.104.05 driver
This commit is contained in:
parent
9f3ff53425
commit
6ac518a775
1 changed files with 9 additions and 3 deletions
|
|
@ -606,9 +606,15 @@ if not _pynvml_installation_corrupted:
|
|||
|
||||
if lookup('nvmlDeviceGetConfComputeMemSizeInfo'):
|
||||
if lookup('nvmlDeviceGetComputeRunningProcesses_v3'):
|
||||
LOGGER.debug(
|
||||
'NVML get running process version 3 API with v3 type struct is available.',
|
||||
)
|
||||
if lookup('nvmlDeviceGetRunningProcessDetailList'):
|
||||
c_nvmlProcessInfo_t = c_nvmlProcessInfo_v2_t
|
||||
LOGGER.debug(
|
||||
'NVML get running process version 3 API with v2 type struct is available.',
|
||||
)
|
||||
else:
|
||||
LOGGER.debug(
|
||||
'NVML get running process version 3 API with v3 type struct is available.',
|
||||
)
|
||||
else:
|
||||
c_nvmlProcessInfo_t = c_nvmlProcessInfo_v2_t
|
||||
__get_running_processes_version_suffix = '_v2'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue