Skip to content

Commit

Permalink
Use relative path to find librocm_smi
Browse files Browse the repository at this point in the history
Change-Id: Ifca3f54d680a802c1c5fa360d17e64338b9ac9a8
  • Loading branch information
Chris Freehill authored and Chris Freehill committed Oct 28, 2020
1 parent a45d958 commit 0ee670d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion python_smi_tools/rsmiBindings.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@
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:
Expand Down

0 comments on commit 0ee670d

Please sign in to comment.