build_io.sh 726 Bytes
Newer Older
Pietro Incardona's avatar
Pietro Incardona committed
1
2
3
4
5
6
#! /bin/bash

# Make a directory in /tmp/OpenFPM_data

mkdir /tmp/openfpm_io
mv * .[^.]* /tmp/openfpm_io
7
mv /tmp/openfpm_io openfpm_io
Pietro Incardona's avatar
Pietro Incardona committed
8

9
mkdir openfpm_io/src/config
Pietro Incardona's avatar
Pietro Incardona committed
10

11
12
13
git clone git@ppmcore.mpi-cbg.de:incardon/openfpm_devices.git openfpm_devices
git clone git@ppmcore.mpi-cbg.de:incardon/openfpm_data.git openfpm_data
git clone git@ppmcore.mpi-cbg.de:incardon/openfpm_pdata.git openfpm_pdata
Pietro Incardona's avatar
Pietro Incardona committed
14
15
16
cd "$1/OpenFPM_data"
git checkout develop
cd ..
Pietro Incardona's avatar
Pietro Incardona committed
17

Pietro Incardona's avatar
Pietro Incardona committed
18
cd "$1/OpenFPM_IO"
Pietro Incardona's avatar
Pietro Incardona committed
19

Pietro Incardona's avatar
Pietro Incardona committed
20
21
echo "Compiling on $2"

Pietro Incardona's avatar
Pietro Incardona committed
22
23
24
25
sh ./autogen.sh
if [ "$2" == "master" ]
then
 sh ./configure --disable-gpu
Pietro Incardona's avatar
Pietro Incardona committed
26
elif [ "$2" == "gin" ]
Pietro Incardona's avatar
Pietro Incardona committed
27
then
Pietro Incardona's avatar
Pietro Incardona committed
28
29
 module load gcc/4.8.2
 module load boost/1.54.0
Pietro Incardona's avatar
Pietro Incardona committed
30
 sh ./configure --with-boost=/sw/apps/boost/1.54.0/
Pietro Incardona's avatar
Pietro Incardona committed
31
32
33
34
35
36
37
else
 sh ./configure
fi
make

./src/io