hip: don't set HIP_PATH in ROCm 5.5+ (#42882)

This commit is contained in:
Richard Berger 2024-03-23 06:22:06 -06:00 committed by GitHub
parent 9ab3c1332b
commit 0abf5ba43c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -415,7 +415,9 @@ def set_variables(self, env):
env.set("HIP_DEVICE_LIB_PATH", paths["bitcode"])
# Just the prefix of hip (used in hipcc)
env.set("HIP_PATH", paths["hip-path"])
# Deprecated in 5.1.0 and breaks hipcc in 5.5.1+
if self.spec.satisfies("@:5.4"):
env.set("HIP_PATH", paths["hip-path"])
# Used in comgr and seems necessary when using the JIT compiler, e.g.
# hiprtcCreateProgram: