File tree Expand file tree Collapse file tree 5 files changed +13
-17
lines changed
Expand file tree Collapse file tree 5 files changed +13
-17
lines changed Original file line number Diff line number Diff line change 7070
7171./create-mon.sh -i=$interface -f=$folder
7272./create-mgr.sh -f=$folder
73- echo HOSTS:$mpiHosts
74- module load openmpi/1.4.3
75- mpirun -H $mpiHosts ./create-gram.sh -s=$size -n=$amount -f=$folder &
73+ echo HOSTS:
74+ cat $folder /hostfile
75+ module load openmpi
76+ mpirun --hostfile $folder /hostfile ./create-gram.sh -s=$size -n=$amount -f=$folder &
7677wait
7778if ([ ! -z " $poolname " ] && [ " $rgw " = " false" ])
7879then
Original file line number Diff line number Diff line change 2020done
2121# Read hostfile and put the amount of hosts in amountOfHosts.num
2222echo ` awk -F ' [,]' ' {print NF}' $hostfile ` > $folder /amountOfHosts.num
23- # Assign a string of hosts with commas to mpiHosts
24- mpiHosts= $( cat $ hostfile)
23+ # Convert the hostfile to a column of hosts and store in $folder/hostlist
24+ tr , ' \n ' < $hostfile > $folder / hostfile
Original file line number Diff line number Diff line change 3232 source ./uge-hostfile.sh -f=$folder
3333fi
3434
35- module load openmpi/1.4.3
35+ module load openmpi
3636echo " Removing Ceph"
37- mpirun -H $mpiHosts ./remove-ceph.sh
37+ mpirun --hostfile $folder /hostfile ./remove-ceph.sh
3838echo " Removing OSDs"
39- mpirun -H $mpiHosts ./remove-osd.sh
39+ mpirun --hostfile $folder /hostfile ./remove-osd.sh
4040echo " Removing GRAM"
41- mpirun -H $mpiHosts ./remove-gram.sh
41+ mpirun --hostfile $folder /hostfile ./remove-gram.sh
4242echo " Removing Temp Files"
4343./remove-temp-files.sh -f=$folder
4444echo " Done"
Original file line number Diff line number Diff line change @@ -14,5 +14,6 @@ case $i in
1414esac
1515done
1616rm $folder /ceph.*
17+ rm $folder /hostfile
1718rm $folder /* .num
1819rmdir $folder
Original file line number Diff line number Diff line change @@ -14,11 +14,5 @@ case $i in
1414esac
1515done
1616# Read UGE PE_HOSTFILE and extract hosts
17- while read name rest
18- do
19- hosts+=($name )
20- done < <( cat $PE_HOSTFILE )
21- # Put the amount of hosts in amountOfHosts.num
22- echo " ${# hosts[@]} " > $folder /amountOfHosts.num
23- # Assign a string of hosts with commas to mpiHosts
24- mpiHosts=$( IFS=,; echo " ${hosts[*]} " )
17+ awk ' {print $1 }' ${PE_HOSTFILE} | uniq > $folder /hostfile
18+ cat $folder /hostfile | wc -l > $folder /amountOfHosts.num
You can’t perform that action at this time.
0 commit comments