build_io.sh 702 Bytes
Newer Older
Pietro Incardona's avatar
Pietro Incardona committed
1
2
3
4
5
6
7
8
9
10
11
12
#! /bin/bash

# Make a directory in /tmp/OpenFPM_data

mkdir /tmp/openfpm_io
mv * .[^.]* /tmp/openfpm_io
mv /tmp/openfpm_io OpenFPM_IO

mkdir OpenFPM_IO/src/config

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
Pietro Incardona's avatar
Pietro Incardona committed
13
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
20
21
22
23

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

./src/io