build_vcluster.sh 756 Bytes
Newer Older
incardon's avatar
incardon committed
1 2 3 4 5 6 7 8 9 10 11
#! /bin/bash

# Make a directory in /tmp/OpenFPM_data

mkdir /tmp/openfpm_vcluster
mv * .[^.]* /tmp/openfpm_vcluster
mv /tmp/openfpm_vcluster OpenFPM_vcluster

mkdir OpenFPM_vcluster/src/config

git clone git@ppmcore.mpi-cbg.de:incardon/openfpm_devices.git OpenFPM_devices
incardon's avatar
incardon committed
12
git clone git@ppmcore.mpi-cbg.de:incardon/openfpm_data.git OpenFPM_data
incardon's avatar
incardon committed
13 14 15

cd "$1/OpenFPM_vcluster"

incardon's avatar
incardon committed
16 17
echo "Compiling on $2"

incardon's avatar
incardon committed
18
if [$2 eq "gin" || $2 eq "wetcluster"]
incardon's avatar
incardon committed
19
then
incardon's avatar
incardon committed
20 21 22 23 24
 echo "Compiling on gin\n"
 module load gcc/4.9.2
 module load openmpi/1.8.1
fi

incardon's avatar
incardon committed
25 26 27 28
sh ./autogen.sh
sh ./configure CXX=mpic++
make

incardon's avatar
incardon committed
29 30
if [$2 eq "wetcluster"]
then
31 32
# bsub -K -q gpu mpirun -np 2 ./src/vcluster
# bsub -K -q gpu mpirun -np 4 ./src/vcluster
incardon's avatar
incardon committed
33
else
34 35
# mpirun -np 2 ./src/vcluster
# mpirun -np 4 ./src/vcluster
incardon's avatar
incardon committed
36
fi