Don't hard code rocm_smi_lib path
During rocm_smi_lib installation the path should be set using ldconfig Signed-off-by: Harish Kasiviswanathan <Harish.Kasiviswanathan@amd.com> Change-Id: I0cab18f492013b783d1ce632591ce295f934a168
This commit is contained in:
committed by
Elena Sakhnovitch
parent
54d4b9d500
commit
f1786a3095
@@ -7,8 +7,7 @@ import ctypes.util
|
||||
from ctypes import *
|
||||
from enum import Enum
|
||||
|
||||
path_librocm = '/opt/rocm/rocm_smi/lib/librocm_smi64.so'
|
||||
# ----------> TODO: ^^ Make the above path dynamic ^^ (try to look for $DIR/../lib)
|
||||
path_librocm = 'librocm_smi64.so'
|
||||
# ----------> TODO: Support static libs as well as SO
|
||||
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user