Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
tsoc
hg-misc-tools
Commits
37b24a07
Commit
37b24a07
authored
Feb 24, 2026
by
one
Browse files
Fix rocHPL install.sh
parent
9727a645
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
45 deletions
+38
-45
projects/rocHPL/rochpl-install.patch
projects/rocHPL/rochpl-install.patch
+38
-45
No files found.
projects/rocHPL/rochpl-install.patch
View file @
37b24a07
...
...
@@ -131,7 +131,7 @@ index 6d6be5d..d11c01a 100644
include(ROCMSetupVersion)
diff --git a/install.sh b/install.sh
index b30a3fb..
e577627
100755
index b30a3fb..
4016a90
100755
--- a/install.sh
+++ b/install.sh
@@ -2,7 +2,7 @@
...
...
@@ -174,7 +174,7 @@ index b30a3fb..e577627 100755
printf "sudo dnf install -y ${library_dependencies_fedora[*]}\n"
;;
@@ -105,42 +106,6
2
@@
check_exit_code( )
@@ -105,42 +106,6
0
@@
check_exit_code( )
# Clone and build OpenMPI+UCX in rochpl/tpl
install_openmpi( )
{
...
...
@@ -194,6 +194,24 @@ index b30a3fb..e577627 100755
- check_exit_code 2
- cd ucx;
- ./autogen.sh; ./autogen.sh #why do we have to run this twice?
- check_exit_code 2
- mkdir build; cd build
- ../contrib/configure-opt --prefix=${PWD}/../ --with-rocm=${with_rocm} --without-knem --without-cuda --without-java
- check_exit_code 2
- make -j$(nproc)
- check_exit_code 2
- make install
- check_exit_code 2
- cd ../../..
- elif ([ ! -f "${ucx_lib_folder}/libucm.so" ] || [ ! -f "${ucx_lib_folder}/libucp.so" ] || \
- [ ! -f "${ucx_lib_folder}/libucs.so" ] || [ ! -f "${ucx_lib_folder}/libuct.so" ]) && \
- ([ ! -f "${ucx_lib64_folder}/libucm.so" ] || [ ! -f "${ucx_lib64_folder}/libucp.so" ] || \
- [ ! -f "${ucx_lib64_folder}/libucs.so" ] || [ ! -f "${ucx_lib64_folder}/libuct.so" ]); then
- cd tpl/ucx;
- ./autogen.sh; ./autogen.sh
- check_exit_code 2
- mkdir build; cd build
- ../contrib/configure-opt --prefix=${PWD}/../ --with-rocm=${with_rocm} --without-knem --without-cuda --without-java
+ local ucx_lib_folder=${ucx_prefix}/lib
+ local ompi_lib_folder=${ompi_prefix}/lib
+ local ucx_lib64_folder=${ucx_prefix}/lib64
...
...
@@ -210,37 +228,21 @@ index b30a3fb..e577627 100755
+ local ompi_tarball=openmpi-${ompi_version}.tar.gz
+
+ # Download UCX on demand
+ if [ ! -d "${ucx_src}" ]; then
+ if [ ! -f "${ucx_tarball}" ]; then
+ wget https://github.com/openucx/ucx/releases/download/v${ucx_version}/${ucx_tarball}
+ fi
check_exit_code 2
- mkdir build; cd build
- ../contrib/configure-opt --prefix=${PWD}/../ --with-rocm=${with_rocm} --without-knem --without-cuda --without-java
+ tar -zxf ${ucx_tarball}
check_exit_code 2
- make -j$(nproc)
- check_exit_code 2
- make install
+ rm -rf ${ucx_src}
+ if [ ! -f "${ucx_tarball}" ]; then
+ wget https://github.com/openucx/ucx/releases/download/v${ucx_version}/${ucx_tarball}
+ fi
+ check_exit_code 2
+ tar -zxf ${ucx_tarball}
+ check_exit_code 2
+ # Download OpenMPI on demand
+ if [ ! -d "${ompi_src}" ]; then
+ if [ ! -f "${ompi_tarball}" ]; then
+ wget https://download.open-mpi.org/release/open-mpi/v${ompi_version%.*}/${ompi_tarball}
+ fi
check_exit_code 2
- cd ../../..
- elif ([ ! -f "${ucx_lib_folder}/libucm.so" ] || [ ! -f "${ucx_lib_folder}/libucp.so" ] || \
- [ ! -f "${ucx_lib_folder}/libucs.so" ] || [ ! -f "${ucx_lib_folder}/libuct.so" ]) && \
- ([ ! -f "${ucx_lib64_folder}/libucm.so" ] || [ ! -f "${ucx_lib64_folder}/libucp.so" ] || \
- [ ! -f "${ucx_lib64_folder}/libucs.so" ] || [ ! -f "${ucx_lib64_folder}/libuct.so" ]); then
- cd tpl/ucx;
- ./autogen.sh; ./autogen.sh
+ tar -zxf ${ompi_tarball}
check_exit_code 2
- mkdir build; cd build
- ../contrib/configure-opt --prefix=${PWD}/../ --with-rocm=${with_rocm} --without-knem --without-cuda --without-java
+ rm -rf ${ompi_src}
+ if [ ! -f "${ompi_tarball}" ]; then
+ wget https://download.open-mpi.org/release/open-mpi/v${ompi_version%.*}/${ompi_tarball}
+ fi
+ check_exit_code 2
+ tar -zxf ${ompi_tarball}
+ check_exit_code 2
+
+ # Build UCX on demand
+ if ([ ! -f "${ucx_lib_folder}/libucm.so" ] || [ ! -f "${ucx_lib_folder}/libucp.so" ] || \
...
...
@@ -263,7 +265,7 @@ index b30a3fb..e577627 100755
fi
# Check for successful build
@@ -152,31 +17
3
,24 @@
install_openmpi( )
@@ -152,31 +17
1
,24 @@
install_openmpi( )
exit 3
fi
...
...
@@ -308,7 +310,7 @@ index b30a3fb..e577627 100755
fi
# Check for successful build
@@ -184,6 +19
8
,13 @@
install_openmpi( )
@@ -184,6 +19
6
,13 @@
install_openmpi( )
echo "Error: OpenMPI install unsuccessful."
exit_with_error 2
fi
...
...
@@ -322,7 +324,7 @@ index b30a3fb..e577627 100755
}
# #################################################
@@ -232,7 +25
3
,7 @@
enable_tracing=false
@@ -232,7 +25
1
,7 @@
enable_tracing=false
# check if we have a modern version of getopt that can handle whitespace and long parameters
getopt -T
if [[ $? -eq 4 ]]; then
...
...
@@ -331,7 +333,7 @@ index b30a3fb..e577627 100755
else
echo "Need a new version of getopt"
exit_with_error 1
@@ -263,6 +28
4
,9 @@
while true; do
@@ -263,6 +28
2
,9 @@
while true; do
--with-mpi)
with_mpi=${2}
shift 2 ;;
...
...
@@ -341,7 +343,7 @@ index b30a3fb..e577627 100755
--with-mpi-gtl)
with_mpi_gtl=${2}
shift 2 ;;
@@ -294,9 +31
8
,6 @@
printf "\033[32mCreating project build directory in: \033[33m${build_dir}\033[0m
@@ -294,9 +31
6
,6 @@
printf "\033[32mCreating project build directory in: \033[33m${build_dir}\033[0m
# #################################################
# prep
# #################################################
...
...
@@ -351,16 +353,7 @@ index b30a3fb..e577627 100755
# Default cmake executable is called cmake
cmake_executable=cmake
@@ -311,7 +332,7 @@
pushd .
# #################################################
if [[ "${with_mpi}" == tpl/openmpi ]]; then
- with_mpi=${PWD}/tpl/openmpi
+ with_mpi=${ompi_prefix}
install_openmpi
fi
@@ -347,11 +368,14 @@
pushd .
@@ -347,11 +366,14 @@
pushd .
if [[ "${enable_tracing}" == on || "${enable_tracing}" == true || "${enable_tracing}" == 1 || "${enable_tracing}" == enabled ]]; then
cmake_common_options="${cmake_common_options} -DHPL_TRACING=ON"
fi
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment