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
spack-configs
Commits
b32309a5
Commit
b32309a5
authored
Mar 17, 2026
by
one
Browse files
Remove old installations directly
parent
1dcf055e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
7 deletions
+2
-7
scripts/install-mpi.sh
scripts/install-mpi.sh
+2
-7
No files found.
scripts/install-mpi.sh
View file @
b32309a5
...
...
@@ -82,13 +82,8 @@ exit_with_error() {
# Clone and build OpenMPI+UCX in /opt
install_openmpi
()
{
# Backup old installations if they exist (overwrite existing .bak if present)
[
-d
"
${
ompi_prefix
}
"
]
&&
{
rm
-rf
"
${
ompi_prefix
}
.bak"
;
mv
"
${
ompi_prefix
}
"
"
${
ompi_prefix
}
.bak"
;
}
[
-d
"
${
ucx_prefix
}
"
]
&&
{
rm
-rf
"
${
ucx_prefix
}
.bak"
;
mv
"
${
ucx_prefix
}
"
"
${
ucx_prefix
}
.bak"
;
}
# Remove old installations if they exist
rm
-rf
"
${
ompi_prefix
}
"
"
${
ucx_prefix
}
"
# OpenMPI and UCX install to one of these locations depending on OS
local
ucx_lib_folder
=
"
${
ucx_prefix
}
/lib"
...
...
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