Skip to content

Commit 347bef1

Browse files
committed
adding timestamp when forcing mpi injections
1 parent 08547bb commit 347bef1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

scripts/mpi_support/install_openmpi_host_injection.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ libcuda_exists=0
108108
inject_mpi() {
109109
# Temporary directory for injection
110110
local tmpdir=$1
111+
local timestamp=$(date +%Y%m%d%H%M%S)
111112

112113
local eessi_ldd="${EESSI_EPREFIX}/usr/bin/ldd"
113114
local system_ldd="/usr/bin/ldd"
@@ -122,6 +123,8 @@ inject_mpi() {
122123
echo "MPI was already injected"
123124
if ${FORCE}; then
124125
echo "Forcing new MPI injection"
126+
mv ${host_injection_mpi_path} ${host_injection_mpi_path}-${timestamp}
127+
echo "Previous injection saved on" ${host_injection_mpi_path}-${timestamp}
125128
else
126129
return 0
127130
fi

0 commit comments

Comments
 (0)