[SWDEV-522336] Enabled Topology command in Guest (#304)
Enabled Topology command in Guest
---------
Signed-off-by: gabrpham_amdeng <Gabriel.Pham@amd.com>
[ROCm/amdsmi commit: 34678cc0ae]
Этот коммит содержится в:
коммит произвёл
Maisam Arif
родитель
cab1c46165
Коммит
4992a7b2bd
@@ -13,6 +13,9 @@ Full documentation for amd_smi_lib is available at [https://rocm.docs.amd.com/pr
|
||||
|
||||
### Changed
|
||||
|
||||
- **The `amd-smi topology` command has been enabled for Guest environments**.
|
||||
- `amd-smi topology` is now availabe in Guest environments. This includes full functionality so users can use the command just as they would in Bare Metal environments.
|
||||
|
||||
### Removed
|
||||
|
||||
### Optimized
|
||||
|
||||
@@ -1076,10 +1076,6 @@ class AMDSMIParser(argparse.ArgumentParser):
|
||||
|
||||
|
||||
def _add_topology_parser(self, subparsers: argparse._SubParsersAction, func):
|
||||
if not(self.helpers.is_baremetal() and self.helpers.is_linux()):
|
||||
# This subparser is only applicable to Baremetal Linux
|
||||
return
|
||||
|
||||
if not self.helpers.is_amdgpu_initialized():
|
||||
# The topology subcommand is only applicable to systems with amdgpu initialized
|
||||
return
|
||||
@@ -1107,6 +1103,10 @@ class AMDSMIParser(argparse.ArgumentParser):
|
||||
topology_parser.formatter_class=lambda prog: AMDSMISubparserHelpFormatter(prog)
|
||||
topology_parser.set_defaults(func=func)
|
||||
|
||||
# Add Universal Arguments
|
||||
self._add_command_modifiers(topology_parser)
|
||||
self._add_device_arguments(topology_parser, required=False)
|
||||
|
||||
# Optional Args
|
||||
topology_parser.add_argument('-a', '--access', action='store_true', required=False, help=access_help)
|
||||
topology_parser.add_argument('-w', '--weight', action='store_true', required=False, help=weight_help)
|
||||
@@ -1118,10 +1118,6 @@ class AMDSMIParser(argparse.ArgumentParser):
|
||||
topology_parser.add_argument('-d', '--dma', action='store_true', required=False, help=dma_help)
|
||||
topology_parser.add_argument('-z', '--bi-dir', action='store_true', required=False, help=bi_dir_help)
|
||||
|
||||
# Add Universal Arguments
|
||||
self._add_device_arguments(topology_parser, required=False)
|
||||
self._add_command_modifiers(topology_parser)
|
||||
|
||||
|
||||
def _add_set_value_parser(self, subparsers: argparse._SubParsersAction, func):
|
||||
if not self.helpers.is_linux():
|
||||
|
||||
Ссылка в новой задаче
Block a user