Commit 8adb0d0b authored by i-bird's avatar i-bird

Reverting back to openmpi 4.0.4

parent 4bf7cd52
Pipeline #2657 failed with stages
in 68 minutes and 28 seconds
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
# check if the directory $1/MPI exist # check if the directory $1/MPI exist
rm -rf openmpi-4.1.0 rm -rf openmpi-4.0.4
rm openmpi-4.1.0.tar.gz rm openmpi-4.0.4.tar.gz
wget http://ppmcore.mpi-cbg.de/upload/openmpi-4.1.0.tar.gz wget http://ppmcore.mpi-cbg.de/upload/openmpi-4.0.4.tar.gz
tar -xvf openmpi-4.1.0.tar.gz tar -xvf openmpi-4.0.4.tar.gz
...@@ -8,7 +8,7 @@ if [ -d "$1/MPI" ]; then ...@@ -8,7 +8,7 @@ if [ -d "$1/MPI" ]; then
fi fi
./script/download_MPI.sh ./script/download_MPI.sh
cd openmpi-4.1.0 cd openmpi-4.0.4
if [ -f ../mpi_add_options ]; then if [ -f ../mpi_add_options ]; then
mpi_options=$(cat ../mpi_add_options) mpi_options=$(cat ../mpi_add_options)
...@@ -30,5 +30,5 @@ make -j $2 ...@@ -30,5 +30,5 @@ make -j $2
make install make install
# Mark the installation # Mark the installation
echo 7 > $1/MPI/version echo 8 > $1/MPI/version
...@@ -169,9 +169,9 @@ function remove_old() ...@@ -169,9 +169,9 @@ function remove_old()
if [ -d $1/MPI ]; then if [ -d $1/MPI ]; then
version=$(cat $1/MPI/version) version=$(cat $1/MPI/version)
if [ x"$version" != x"7" ]; then if [ x"$version" != x"8" ]; then
echo -e "\033[1;34;5m -------------------------------------------------------------------------------------- \033[0m" echo -e "\033[1;34;5m -------------------------------------------------------------------------------------- \033[0m"
echo -e "\033[1;34;5m MPI has been updated to version 4.1.0, the component will be updated automatically \033[0m" echo -e "\033[1;34;5m MPI has been updated to version 4.0.4, the component will be updated automatically \033[0m"
echo -e "\033[1;34;5m -------------------------------------------------------------------------------------- \033[0m" echo -e "\033[1;34;5m -------------------------------------------------------------------------------------- \033[0m"
sleep 5 sleep 5
rm -rf $1/MPI/include rm -rf $1/MPI/include
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment