From 383ed4cedfb2000d33410428139f8835cab3a220 Mon Sep 17 00:00:00 2001 From: David Salinas Date: Fri, 8 Mar 2024 17:15:59 +0000 Subject: [PATCH] roc-obj uses incorrect path to find ROCm's llvm-objdump SWDEV-448278 - [LLNLA-260] (ELCAP-546) roc-obj uses bad path Change-Id: I1a19f1fea29b301cfc183018fa050a8b8aeaaf02 --- hipamd/bin/roc-obj | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hipamd/bin/roc-obj b/hipamd/bin/roc-obj index 0b0d12f5f2..cb5925d485 100755 --- a/hipamd/bin/roc-obj +++ b/hipamd/bin/roc-obj @@ -49,7 +49,7 @@ #| one containing the hard-link to the roc-obj being executed, known as the #| "base directory". Next, if the environment variable HIP_CLANG_PATH is set, #| it is searched; otherwise, the base directory path is appended with -#| "../../llvm/bin" and it is searched. Finally, the PATH is searched as if by +#| "../llvm/bin" and it is searched. Finally, the PATH is searched as if by #| a POSIX "execvp" function. #| #| Option Descriptions: @@ -137,7 +137,7 @@ find_rocm_executable_or_fail() { local -r command="$1"; shift local file local searched=() - for dir in "$BASE_DIR" "${HIP_CLANG_PATH:-"$BASE_DIR/../../llvm/bin"}"; do + for dir in "$BASE_DIR" "${HIP_CLANG_PATH:-"$BASE_DIR/../llvm/bin"}"; do file="$dir/$command" if [[ -x $file ]]; then printf "%s" "$file"