Fix python loading of librocm_smi64

The librocm_smi64.so is used for development, while
librocm_smi64.so.MAJOR is used for runtime, thus the python front end
should not be loading the .so binary, but rather the .so.MAJOR binary.

As well, it's good not to hardcode "lib" as some distros will change
this.

rsmiBindings.py is now generated with CMake

Signed-off-by: Jeremy Newton <Jeremy.Newton@amd.com>
Change-Id: I7cb745f8936fdf10d3ebd6c1e606031f713184ca
This commit is contained in:
Jeremy Newton
2023-07-05 12:54:24 -05:00
parent 828f46b445
commit 2d2c73a5e6
3 changed files with 13 additions and 9 deletions
+3 -3
View File
@@ -117,12 +117,12 @@ CTestTestfile.cmake
_deps
#
# ROCm files
# Removes generated config headers like rocmsmi64Config.h & oamConfig.h
# below files are generated via CMake
#
*Config.h
python_smi_tools/rsmiBindings.py
#
# Fake SYSFS files
#
/device/*
/device/*