blob: 53f2bea672e3c475f2282217cafec3260832bbf5 (
plain) (
tree)
|
|
From cf5f9124a629e0594c71daa6ea12ee823bf6a9fb Mon Sep 17 00:00:00 2001
From: Harmen Stoppels <harmenstoppels@gmail.com>
Date: Fri, 7 Aug 2020 23:09:43 +0200
Subject: [PATCH] Make it possible to specify the package folder of
rocm_agent_enumerator from the command line
---
bin/hipcc | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/bin/hipcc b/bin/hipcc
index 8c0a4796..48192ed1 100755
--- a/bin/hipcc
+++ b/bin/hipcc
@@ -684,7 +684,8 @@ if($HIP_PLATFORM eq "hcc" or $HIP_PLATFORM eq "clang"){
$targetsStr = $ENV{HCC_AMDGPU_TARGET};
} else {
# Else try using rocm_agent_enumerator
- $ROCM_AGENT_ENUM = "${ROCM_PATH}/bin/rocm_agent_enumerator";
+ $ROCMINFO_PATH = $ENV{'ROCMINFO_PATH'} // $ROCM_PATH;
+ $ROCM_AGENT_ENUM = "${ROCMINFO_PATH}/bin/rocm_agent_enumerator";
$targetsStr = `${ROCM_AGENT_ENUM} -t GPU`;
$targetsStr =~ s/\n/,/g;
}
--
2.25.1
|