From ce46b3ad1b4c6ce45b8aae4d0b0df6b10849b82e Mon Sep 17 00:00:00 2001 From: Xuehai Pan Date: Sun, 16 Jul 2023 23:36:19 +0800 Subject: [PATCH] chore(cli): remove unreachable warnings --- nvitop/cli.py | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/nvitop/cli.py b/nvitop/cli.py index ecc8389..bbb959d 100644 --- a/nvitop/cli.py +++ b/nvitop/cli.py @@ -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(