run.sh 2.12 KB
Newer Older
incardon's avatar
incardon committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#! /bin/bash

# Make a directory in /tmp/openfpm_data

echo "$PATH"
echo "Directory: $1"
echo "Machine: $2"

cd "$1/openfpm_vcluster"

if [ "$2" == "wetcluster" ]; then

 export MODULEPATH="/sw/apps/modules/modulefiles:$MODULEPATH"

 ## Run on the cluster
incardon's avatar
incardon committed
16
 bsub -o output_run2.%J -K -n 2 -R "span[hosts=1]" "module load openmpi/1.8.1 ; module load gcc/4.9.2;  mpirun -np $3 ./src/vcluster"
incardon's avatar
incardon committed
17
 if [ $? -ne 0 ]; then exit 1 ; fi
incardon's avatar
incardon committed
18

incardon's avatar
incardon committed
19
20
21
22
23
24
25
26
27
28
29
elif [ "$2" == "taurus" ]; then
 echo "Running on taurus"

 echo "$PATH"
 module load gcc/5.3.0
 module load boost/1.60.0
 module load openmpi/1.10.2-gnu
 module unload bullxmpi

### to exclude --exclude=taurusi[6300-6400],taurusi[5400-5500]

incardon's avatar
incardon committed
30
 salloc --nodes=1 --ntasks-per-node=$3 --time=00:05:00 --mem-per-cpu=1800 --partition=haswell bash -c "ulimit -s unlimited && mpirun -np $3 src/vcluster --report_level=no"
incardon's avatar
incardon committed
31
32
 if [ $? -ne 0 ]; then exit 1 ; fi
 sleep 5
incardon's avatar
incardon committed
33
34
35
36
37
38
39
40
41
42
43
# salloc --nodes=2 --ntasks-per-node=24 --time=00:05:00 --mem-per-cpu=1800 --partition=haswell bash -c "ulimit -s unlimited && mpirun -np 48 src/vcluster --report_level=no"
# if [ $? -ne 0 ]; then exit 1 ; fi
# sleep 5
# salloc --nodes=4 --ntasks-per-node=24 --time=00:05:00 --mem-per-cpu=1800 --partition=haswell bash -c "ulimit -s unlimited && mpirun -np 96 src/vcluster --report_level=no"
# if [ $? -ne 0 ]; then exit 1 ; fi
# sleep 5
# salloc --nodes=8 --ntasks-per-node=24 --time=00:05:00 --mem-per-cpu=1800 --partition=haswell bash -c "ulimit -s unlimited && mpirun -np 192 src/vcluster --report_level=no"
# if [ $? -ne 0 ]; then exit 1 ; fi
# sleep 5
# salloc --nodes=10 --ntasks-per-node=24 --time=00:5:00 --mem-per-cpu=1800 --partition=haswell bash -c "ulimit -s unlimited && mpirun -np 240 src/vcluster --report_level=no"
# if [ $? -ne 0 ]; then exit 1 ; fi
incardon's avatar
incardon committed
44
45
46
47
48
49

else

 source $HOME/.bashrc
 echo "$PATH"

incardon's avatar
incardon committed
50
 mpirun -np $3 ./src/vcluster
incardon's avatar
incardon committed
51
52
53
54
 if [ $? -ne 0 ]; then exit 1 ; fi
fi

curl -X POST --data "payload={\"icon_emoji\": \":jenkins:\", \"username\": \"jenkins\"  , \"attachments\":[{ \"title\":\"Info:\", \"color\": \"#00FF00\", \"text\":\"$2 completed succeffuly the openfpm_vcluster test \" }] }" https://hooks.slack.com/services/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