Skip to content

Commit

Permalink
HIP: Add RUNPATH compiled so files. (#510)
Browse files Browse the repository at this point in the history
  • Loading branch information
xinyazhang authored Mar 19, 2024
1 parent d1564fa commit b395044
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/triton/common/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def _build(name, src, srcdir):
if is_hip():
ret = subprocess.check_call([
cc, src, f"-I{hip_include_dir}", f"-I{py_include_dir}", f"-I{srcdir}", "-shared", "-fPIC",
f"-L{hip_lib_dir}", "-lamdhip64", "-o", so
f"-L{hip_lib_dir}", "-lamdhip64", f"-Wl,-rpath,{hip_lib_dir}", "-o", so
])
else:
cc_cmd = [
Expand Down

0 comments on commit b395044

Please sign in to comment.