-
Notifications
You must be signed in to change notification settings - Fork 0
/
deploy-A1-B1-S1-M1.sh
45 lines (29 loc) · 953 Bytes
/
deploy-A1-B1-S1-M1.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/bin/bash -l
#SBATCH --nodes=17
#SBATCH --ntasks=17
#SBATCH --cpus-per-task=4
#SBATCH --output="result.log"
#SBATCH --mem=8500M
#SBATCH -p short # This is the default partition, you can use any of the following; intel, batch, highmem, gpu
module load java/11
mkdir -p bin
rm -rf bin/*
rm -rf config_*
rm -rf runtimeconfig_*
~/shared/opt/apache-ant-1.10.9/bin/ant -d main
nodes=($( scontrol show hostnames $SLURM_NODELIST ))
nnodes=${#nodes[@]}
last=$(( $nnodes - 1 ))
hostlist=""
basehostaddress=".ib.hpcc.ucr.edu"
for i in $( seq 0 $last ); do
hostlist+="${nodes[$i]} "
done
echo $hostlist
export HAMRAZ_HOME=/rhome/fhous001/shared/bft-library
echo 'ucr2018' | kinit [email protected]
for i in $( seq 0 $last ); do
printf "ssh ${nodes[$i]}.ib.hpcc.ucr.edu 'cd ${HAMRAZ_HOME};sh run.sh '$1' $i $hostlist'\n"
ssh ${nodes[$i]}.ib.hpcc.ucr.edu "cd ${HAMRAZ_HOME}; sh run.sh '$1' $i $hostlist" &
done
sleep 450