SWDEV-429037 - Automatically install amdsmi python lib with package

Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: I9c8c1335982ebd61a29da6f66c635f0a97d95f6e
Este cometimento está contido em:
Maisam Arif criou e Maisam Arif cometeu 2023-11-02 15:15:27 -04:00
1 ascendente aeef485034
cometimento c2e12feb6a
12 ficheiros modificados
+213 -133

Não existem ficheiros que correspondam à sua pesquisa

+1 -1
Ver ficheiro
@@ -46,7 +46,7 @@ if(NOT GOOD_CLANG_FOUND)
COMMAND mkdir -p ${PY_PACKAGE_DIR}
COMMAND ln -Pf ${CMAKE_CURRENT_BINARY_DIR}/amdsmi_wrapper.py ${PY_PACKAGE_DIR}/)
else()
find_package(Python3 3.7 COMPONENTS Interpreter Development REQUIRED)
find_package(Python3 3.6 COMPONENTS Interpreter Development REQUIRED)
# --break-system-packages is needed for python 3.11
# see: https://peps.python.org/pep-0668/
if (NOT Python3_VERSION VERSION_LESS "3.11")
+1 -1
Ver ficheiro
@@ -2,7 +2,7 @@
## Requirements
* python 3.7+ 64-bit
* python 3.6+ 64-bit
* driver must be loaded for amdsmi_init() to pass
## Overview
+1
Ver ficheiro
@@ -168,6 +168,7 @@ def char_pointer_cast(string, encoding='utf-8'):
_libraries = {}
from pathlib import Path
### TODO: Add lib build folder cmake variable or dynamic
libamd_smi_cpack = Path("@CPACK_PACKAGING_INSTALL_PREFIX@/@CMAKE_INSTALL_LIBDIR@/libamd_smi.so")
libamd_smi_optrocm = Path("/opt/rocm/lib/libamd_smi.so")
libamd_smi_parent_dir = Path(__file__).resolve().parent / "libamd_smi.so"