hip@6.1: fix reference to hsa-rocr-dev so it works when externally defined (#44528)

This commit is contained in:
eugeneswalker 2024-06-03 14:11:47 -07:00 committed by GitHub
parent 85f13442d2
commit f3cf2e94c4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -413,7 +413,7 @@ def set_variables(self, env):
if self.spec.satisfies("@5.4:"):
env.set("HIPIFY_CLANG_PATH", paths["hipify-clang"])
if self.spec.satisfies("@6.1:"):
env.prepend_path("LD_LIBRARY_PATH", self.spec["hsa-rocr-dev"].prefix.lib)
env.prepend_path("LD_LIBRARY_PATH", paths["hsa-rocr-dev"].lib)
# hipcc recognizes HIP_PLATFORM == hcc and HIP_COMPILER == clang, even
# though below we specified HIP_PLATFORM=rocclr and HIP_COMPILER=clang