Changed RPM dependencies to suggestions
Change-Id: I3d2918cc1f86733aaee41f86e1619bd22316398b Signed-off-by: Maisam Arif <Maisam.Arif@amd.com>
This commit is contained in:
+1
-4
@@ -227,10 +227,7 @@ endif()
|
||||
set(CPACK_RPM_PACKAGE_PROVIDES "amd-smi")
|
||||
set(CPACK_RPM_DEV_PACKAGE_PROVIDES "${AMD_SMI_PACKAGE}")
|
||||
set(CPACK_RPM_ASAN_PACKAGE_PROVIDES "${AMD_SMI_PACKAGE}-asan")
|
||||
set(CPACK_RPM_PACKAGE_REQUIRES "python3 >= 3.7.9")
|
||||
set(CPACK_RPM_DEV_PACKAGE_REQUIRES ${CPACK_RPM_PACKAGE_REQUIRES})
|
||||
set(CPACK_RPM_ASAN_PACKAGE_REQUIRES ${CPACK_RPM_PACKAGE_REQUIRES})
|
||||
set(CPACK_RPM_PACKAGE_SUGGESTS "python38")
|
||||
set(CPACK_RPM_PACKAGE_SUGGESTS "python3 >= 3.7.9")
|
||||
set(CPACK_RPM_DEV_PACKAGE_SUGGESTS ${CPACK_RPM_PACKAGE_SUGGESTS})
|
||||
set(CPACK_RPM_ASAN_PACKAGE_SUGGESTS ${CPACK_RPM_PACKAGE_SUGGESTS})
|
||||
|
||||
|
||||
@@ -22,6 +22,7 @@ add_custom_command(
|
||||
${PY_PACKAGE_DIR}/amdsmi_cli_exceptions.py
|
||||
${PY_PACKAGE_DIR}/BDF.py
|
||||
${PY_PACKAGE_DIR}/README.md
|
||||
${PY_PACKAGE_DIR}/Release_Notes.md
|
||||
DEPENDS amdsmi_cli
|
||||
COMMAND mkdir -p ${PY_PACKAGE_DIR}/
|
||||
COMMAND ln -Pf ${CMAKE_CURRENT_SOURCE_DIR}/__init__.py ${PY_PACKAGE_DIR}/
|
||||
@@ -34,7 +35,8 @@ add_custom_command(
|
||||
COMMAND ln -Pf ${CMAKE_CURRENT_SOURCE_DIR}/amdsmi_parser.py ${PY_PACKAGE_DIR}/
|
||||
COMMAND ln -Pf ${CMAKE_CURRENT_SOURCE_DIR}/amdsmi_cli_exceptions.py ${PY_PACKAGE_DIR}/
|
||||
COMMAND ln -Pf ${CMAKE_CURRENT_SOURCE_DIR}/BDF.py ${PY_PACKAGE_DIR}/
|
||||
COMMAND ln -Pf ${CMAKE_CURRENT_SOURCE_DIR}/README.md ${PY_PACKAGE_DIR}/)
|
||||
COMMAND ln -Pf ${CMAKE_CURRENT_SOURCE_DIR}/README.md ${PY_PACKAGE_DIR}/
|
||||
COMMAND ln -Pf ${CMAKE_CURRENT_SOURCE_DIR}/Release_Notes.md ${PY_PACKAGE_DIR}/)
|
||||
|
||||
# The CLI requires the python amdsmi wrapper to be installed
|
||||
add_custom_target(
|
||||
@@ -50,7 +52,8 @@ add_custom_target(
|
||||
${PY_PACKAGE_DIR}/amdsmi_parser.py
|
||||
${PY_PACKAGE_DIR}/amdsmi_cli_exceptions.py
|
||||
${PY_PACKAGE_DIR}/BDF.py
|
||||
${PY_PACKAGE_DIR}/README.md)
|
||||
${PY_PACKAGE_DIR}/README.md
|
||||
${PY_PACKAGE_DIR}/Release_Notes.md)
|
||||
|
||||
install(
|
||||
DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/${PY_PACKAGE_DIR}
|
||||
|
||||
@@ -22,17 +22,15 @@ Recommended: At least one AMD GPU with AMD driver installed
|
||||
|
||||
Add /opt/rocm/bin to your shell's path to access amd-smi via the cmdline
|
||||
|
||||
### RHEL 8
|
||||
### RHEL 8 & SLES 15
|
||||
|
||||
The default python version in RHEL 8 is python 3.6.8
|
||||
The default python versions in RHEL 8 and SLES 15 are 3.6.8 and 3.6.15
|
||||
|
||||
To install the python library you need to upgrade to python 3.7+
|
||||
While the CLI may work with these python versions, to install the python library you need to upgrade to python 3.7+
|
||||
|
||||
The package's dependency manager will attempt to install python 3.8+
|
||||
Verify that your python version is 3.7+ to install the python library
|
||||
|
||||
Verify that your python version is 3.7+ and if not you can use python3.8 instead of python3
|
||||
|
||||
### Example of Ubuntu 22.04 post amdgpu driver install
|
||||
### Install Example for Ubuntu 22.04
|
||||
|
||||
``` bash
|
||||
apt install amd-smi-lib
|
||||
@@ -44,6 +42,10 @@ python3 -m pip install --user .
|
||||
|
||||
Add /opt/rocm/bin to your shell's path to access amd-smi via the cmdline
|
||||
|
||||
``` bash
|
||||
export PATH=$PATH:/opt/rocm/bin
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
amd-smi will report the version and current platform detected when running the command without arguments:
|
||||
|
||||
@@ -4,12 +4,19 @@
|
||||
|
||||
Documentation for AMDSMI-CLI is available post install in /opt/<rocm_instance>/libexec/amdsmi_cli/README.md
|
||||
|
||||
## AMDSMI-CLI 23.0.1.1
|
||||
|
||||
### Known Issues
|
||||
|
||||
- not all ecc fields are currently supported
|
||||
- RHEL 8 & SLES 15 have extra install steps
|
||||
|
||||
## AMDSMI-CLI 23.0.1.0
|
||||
|
||||
### Known Issues
|
||||
|
||||
- not all ecc fields are currently supported
|
||||
- RHEL 8 has extra install steps
|
||||
- RHEL 8 & SLES 15 have extra install steps
|
||||
|
||||
## AMDSMI-CLI 23.0.0.4
|
||||
|
||||
@@ -22,7 +29,7 @@ Documentation for AMDSMI-CLI is available post install in /opt/<rocm_instance>/l
|
||||
### Known Issues
|
||||
|
||||
- not all ecc fields are currently supported
|
||||
- RHEL 8 has extra install steps
|
||||
- RHEL 8 & SLES 15 have extra install steps
|
||||
|
||||
## AMDSMI-CLI 0.0.2
|
||||
|
||||
@@ -1 +1 @@
|
||||
__version__ = "23.0.1.0"
|
||||
__version__ = "23.0.1.1"
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
```{include} ../amdsmi_cli/Release_Notes.md
|
||||
```
|
||||
@@ -15,6 +15,8 @@ subtrees:
|
||||
entries:
|
||||
- file: amdsmi_cli_readme_link
|
||||
title: Python CLI Tool
|
||||
- file: amdsmi_release_notes_link
|
||||
title: Python CLI Release Notes
|
||||
- caption: About
|
||||
entries:
|
||||
- file: license
|
||||
|
||||
@@ -10,7 +10,7 @@ name = "amdsmi"
|
||||
authors = [
|
||||
{name = "AMD", email = "amd-smi.support@amd.com"},
|
||||
]
|
||||
version = '23.0.1.0'
|
||||
version = '23.0.1.1'
|
||||
license = {file = "amdsmi/LICENSE"}
|
||||
readme = {file = "amdsmi/README.md", content-type = "text/markdown"}
|
||||
description = "SMI LIB - AMD GPU Monitoring Library"
|
||||
|
||||
Reference in New Issue
Block a user