AMDSMI CLI Initial Packaging

- Added CMake packaging to the amdsmi_cli folder
- Updated Headings in the README.md to follow markdown standard
- Updated Compatibility to be based on the built package name in bin
- Added misc error handling and import corrections
- Updated py-interface amdsmi_exception imports to work by relative path
- Cleaned up py-interface cmake & generator code for finding libamd_smi.so
- Changed line endings in tools/generator.py file to unix

Change-Id: I91858ff3dd0cb57ed9b8cd61a0ada27b6af9c51c
Signed-off-by: Maisam Arif <Maisam.Arif@amd.com>
This commit is contained in:
Maisam Arif
2023-03-17 05:34:24 -05:00
committed by Galantsev, Dmitrii
parent aa70b77ec5
commit 235c8db949
13 changed files with 300 additions and 182 deletions
-5
View File
@@ -183,7 +183,6 @@ class AMDSMIParser(argparse.ArgumentParser):
csv_help = "Displays output in CSV format (human readable by default)."
file_help = "Saves output into a file on the provided path (stdout by default)."
loglevel_help = "Set the logging level for the parser commands"
compatibility_help = "Display output in gpuvsmi or rocmsmi legacy format if possible"
command_modifier_group = subcommand_parser.add_argument_group('Command Modifiers')
@@ -197,10 +196,6 @@ class AMDSMIParser(argparse.ArgumentParser):
command_modifier_group.add_argument('--loglevel', action='store', required=False, help=loglevel_help, default='ERROR',
choices=["DEBUG", "INFO", "WARNING", "ERROR", "CRITICAL"])
# Output Compatibility options
command_modifier_group.add_argument('--compatibility', action='store', required=False, help=compatibility_help,
choices=["amdsmi", "gpuvsmi", "rocmsmi"], default='amdsmi')
def _add_device_arguments(self, subcommand_parser, required=False):
# Device arguments help text