diff --git a/projects/amdsmi/py-interface/README.md b/projects/amdsmi/py-interface/README.md index 4cc6ecaf0d..6061152f8b 100644 --- a/projects/amdsmi/py-interface/README.md +++ b/projects/amdsmi/py-interface/README.md @@ -3367,13 +3367,8 @@ Example: ```python try: - devices = amdsmi_get_processor_handles() - if len(devices) == 0: - print("No GPUs on machine") - else: - for device in devices: - version = amdsmi_get_lib_version() - print(version) + version = amdsmi_get_lib_version() + print(version) except AmdSmiException as e: print(e) ```