[SWDEV-488276/SWDEV-497613] Update memory partition set functionality
Changes:
- [CLI] Added warning screen to AMD SMI users
setting memory partition
- [CLI] Added a progress bar time-bar for CLI sets display to 40 seconds
- [API] Updated to wait until the driver reloads with SYSFS files active
- [CLI] Now users can set or reset without providing:
amd-smi set -g all <set arguments>
or amd-smi reset -g all <set arguments>
now can directly call -> sudo amd-smi set <set arguments>
or sudo amd-smi reset <set arguments>
- [SWDEV-475712][CLI/API] Fixed target_graphics_version field
not properly displaying for older MI or Navi ASICs.
- [All APIs] Added a catch for the driver to report invalid arguments
now these APIs will show AMDSMI_STATUS_INVAL
(ex. changing to NPS8 if the device does not support it)
- [Install] Modified paths for Python install commands to support
multi-ROCm installs
Change-Id: Id11f25d68a82d23c6b2d77ccb30b51e860dd0ca7
Signed-off-by: Charis Poag <Charis.Poag@amd.com>
This commit is contained in:
@@ -26,6 +26,7 @@ import atexit
|
||||
import logging
|
||||
import signal
|
||||
import sys
|
||||
import os
|
||||
|
||||
from pathlib import Path
|
||||
|
||||
@@ -134,8 +135,11 @@ def amdsmi_cli_shutdown():
|
||||
|
||||
def signal_handler(sig, frame):
|
||||
logging.debug(f"Handling signal: {sig}")
|
||||
sys.exit(0)
|
||||
|
||||
try:
|
||||
sys.exit(0)
|
||||
except Exception as e:
|
||||
logging.error("Unable to cleanly shut down amd-smi-lib, exception: %s", str(type(e).__name__))
|
||||
os._exit(0)
|
||||
|
||||
if not AMDSMI_INITIALIZED:
|
||||
AMDSMI_INIT_FLAG = amdsmi_cli_init()
|
||||
|
||||
Reference in New Issue
Block a user