Fix dependency on rocm-dkms pkg

SWDEV-249463- hipcc can't find the rocm_agent_enumerator

Change-Id: I768a0d09753047508734d8360eb3d154edc0b0ef
Cette révision appartient à :
Rahul Garg
2020-09-01 23:42:12 +00:00
révisé par Maneesh Gupta
Parent 08cf695e1f
révision df1dc87d0f
+2 -2
Voir le fichier
@@ -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 <rocm_install_dir> 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";