Skip to content

Commit 0fd8824

Browse files
author
Riyaz Haque
committed
rpath changes
1 parent c56efe7 commit 0fd8824

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

repo/branson/package.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,11 @@ class Branson(CMakePackage, CudaPackage, ROCmPackage):
5959

6060
flag_handler = build_system_flags
6161

62+
def setup_run_environment(self, env):
63+
if self.compiler.extra_rpaths:
64+
for rpath in self.compiler.extra_rpaths:
65+
env.prepend_path("LD_LIBRARY_PATH", rpath)
66+
6267
def setup_build_environment(self, env):
6368
if "+cuda" in self.spec:
6469
env.set("NVCC_APPEND_FLAGS", "-allow-unsupported-compiler")
@@ -92,7 +97,6 @@ def cmake_args(self):
9297
args.append("-DENABLE_HIP=ON")
9398
rocm_arch_vals = spec.variants["amdgpu_target"].value
9499
args.append(f"-DROCM_PATH={spec['hip'].prefix}")
95-
args.append(f"-DHIP_PATH={spec['hip'].prefix}/hip")
96100
if rocm_arch_vals:
97101
rocm_arch_sorted = list(sorted(rocm_arch_vals, reverse=True))
98102
rocm_arch = rocm_arch_sorted[0]

0 commit comments

Comments
 (0)