From df1dc87d0fa879a3fbd97908082ea3469b1f0435 Mon Sep 17 00:00:00 2001 From: Rahul Garg Date: Tue, 1 Sep 2020 23:42:12 +0000 Subject: [PATCH] Fix dependency on rocm-dkms pkg SWDEV-249463- hipcc can't find the rocm_agent_enumerator Change-Id: I768a0d09753047508734d8360eb3d154edc0b0ef --- bin/hipcc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/hipcc b/bin/hipcc index 0e3027e03a..9b5756d160 100755 --- a/bin/hipcc +++ b/bin/hipcc @@ -73,11 +73,11 @@ $HIPCC_LINK_FLAGS_APPEND=$ENV{'HIPCC_LINK_FLAGS_APPEND'}; # derive HIP_PATH, as dirname $0 could be /opt/rocm/bin or /opt/rocm/hip/bin # depending on how it gets invoked. # ROCM_PATH which points to is determined based on whether -# we find .info/version in the parent of HIP_PATH or not. If it is found, +# we find bin/rocminfo in the parent of HIP_PATH or not. If it is found, # ROCM_PATH is defined relative to HIP_PATH else it is hardcoded to /opt/rocm. # $HIP_PATH=$ENV{'HIP_PATH'} // dirname(Cwd::abs_path("$0/../")); # use parent directory of hipcc -if (-e "$HIP_PATH/../.info/version") { +if (-e "$HIP_PATH/../bin/rocminfo") { $ROCM_PATH=$ENV{'ROCM_PATH'} // dirname("$HIP_PATH"); # use parent directory of HIP_PATH } else { $ROCM_PATH=$ENV{'ROCM_PATH'} // "/opt/rocm";