mirror of
https://github.com/XuehaiPan/nvitop.git
synced 2026-05-21 06:45:24 -06:00
chore(cli): remove unreachable warnings
This commit is contained in:
parent
090cd6baa0
commit
ce46b3ad1b
1 changed files with 0 additions and 17 deletions
|
|
@ -402,23 +402,6 @@ def main() -> int:
|
|||
colored('https://github.com/XuehaiPan/nvitop#installation', attrs=('underline',)),
|
||||
),
|
||||
)
|
||||
message = '\n'.join(unknown_function_messages)
|
||||
if (
|
||||
'nvmlDeviceGetComputeRunningProcesses' in message
|
||||
or 'nvmlDeviceGetGraphicsRunningProcesses' in message
|
||||
) and Device.cuda_driver_version().startswith('10.'):
|
||||
message = '\n'.join(
|
||||
(
|
||||
message,
|
||||
'',
|
||||
'You are using CUDA 10.x driver (yours is: @VERSION@) which is too old. Please contact',
|
||||
'your system admin to update the NVIDIA driver, or reinstall `nvitop` using:',
|
||||
'',
|
||||
' pip3 install "nvitop[cuda10]"',
|
||||
'',
|
||||
),
|
||||
).replace('@VERSION@', Device.driver_version())
|
||||
messages.append(message)
|
||||
|
||||
if libnvml._pynvml_installation_corrupted: # pylint: disable=protected-access
|
||||
message = '\n'.join(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue