Skip to content

Commit

Permalink
Shorten recommendation texts
Browse files Browse the repository at this point in the history
Change texts returned in system_compatibility() dictionary for "OS"
from "Recommended" to "Recommend".
This avoid a line wrap for Ubuntu 20.04+ check in tt-smi UI.

For consistency also do the same for "Memory".

Partially addresses tenstorrent/tt-smi#47.

Signed-off-by: Andreas Färber <[email protected]>
  • Loading branch information
afaerber committed Sep 14, 2024
1 parent 2a83468 commit 83378bc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tt_tools_common/utils_common/system_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,11 +117,11 @@ def system_compatibility() -> dict:
if distro_version >= 20.04:
checklist["OS"] = (True, "Pass")
else:
checklist["OS"] = (False, "Recommended Ubuntu 20.04+")
checklist["OS"] = (False, "Recommend Ubuntu 20.04+")
else:
checklist["OS"] = (False, "Recommended Ubuntu 20.04+")
checklist["OS"] = (False, "Recommend Ubuntu 20.04+")
else:
checklist["OS"] = (False, "Recommended Ubuntu 20.04+")
checklist["OS"] = (False, "Recommend Ubuntu 20.04+")

if host_info["Driver"]:
checklist["Driver"] = (True, "Pass")
Expand All @@ -130,7 +130,7 @@ def system_compatibility() -> dict:
if psutil.virtual_memory().total >= 32 * 1e9:
checklist["Memory"] = (True, "Pass")
else:
checklist["Memory"] = (False, "Recommended 32GB+")
checklist["Memory"] = (False, "Recommend 32GB+")

# Due do how ARM pcie device rescans are handled, we can't perform a wormhole reset on ARM systems
if host_info["Platform"].startswith("arm") or host_info["Platform"].startswith(
Expand Down

0 comments on commit 83378bc

Please sign in to comment.