Fix dependency on rocm-dkms pkg
SWDEV-249463- hipcc can't find the rocm_agent_enumerator Change-Id: I768a0d09753047508734d8360eb3d154edc0b0ef
Этот коммит содержится в:
коммит произвёл
Maneesh Gupta
родитель
08cf695e1f
Коммит
df1dc87d0f
+2
-2
@@ -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
|
# derive HIP_PATH, as dirname $0 could be /opt/rocm/bin or /opt/rocm/hip/bin
|
||||||
# depending on how it gets invoked.
|
# depending on how it gets invoked.
|
||||||
# ROCM_PATH which points to <rocm_install_dir> is determined based on whether
|
# 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.
|
# 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
|
$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
|
$ROCM_PATH=$ENV{'ROCM_PATH'} // dirname("$HIP_PATH"); # use parent directory of HIP_PATH
|
||||||
} else {
|
} else {
|
||||||
$ROCM_PATH=$ENV{'ROCM_PATH'} // "/opt/rocm";
|
$ROCM_PATH=$ENV{'ROCM_PATH'} // "/opt/rocm";
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user