Use relative path to find librocm_smi

Change-Id: Ifca3f54d680a802c1c5fa360d17e64338b9ac9a8
Cette révision appartient à :
Chris Freehill a révisé 2020-10-29 14:36:48 -05:00
1 Parent 4117719edd
révision 438d28612f
1 fichier modifié
+4 -1
+4 -1
Voir le fichier
@@ -7,7 +7,10 @@ import ctypes.util
from ctypes import *
from enum import Enum
path_librocm = 'librocm_smi64.so'
import os
# Use ROCm installation path if running from standard installation
path_librocm = os.path.dirname(os.path.realpath(__file__)) + '/../lib/librocm_smi64.so'
# ----------> TODO: Support static libs as well as SO
try: