build_io.sh 1.52 KB
Newer Older
incardon's avatar
incardon committed
1 2
#! /bin/bash

3 4
source $HOME/.bashrc

Pietro Incardona's avatar
Pietro Incardona committed
5 6
echo "$PATH"

incardon's avatar
incardon committed
7
# Make a directory in /tmp/openfpm_data
incardon's avatar
incardon committed
8 9 10

mkdir /tmp/openfpm_io
mv * .[^.]* /tmp/openfpm_io
11
mv /tmp/openfpm_io openfpm_io
incardon's avatar
incardon committed
12

13
mkdir openfpm_io/src/config
incardon's avatar
incardon committed
14

15 16 17
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
18
git clone git@ppmcore.mpi-cbg.de:incardon/openfpm_vcluster.git openfpm_vcluster
incardon's avatar
incardon committed
19

incardon's avatar
incardon committed
20
cd "$1/openfpm_io"
incardon's avatar
incardon committed
21

incardon's avatar
incardon committed
22 23
echo "Compiling on $2"

incardon's avatar
incardon committed
24 25 26
sh ./autogen.sh
if [ "$2" == "master" ]
then
27
 sh ./configure CXX=mpic++ --with-hdf5=$HOME/HDF5/bin/h5pcc --disable-gpu
incardon's avatar
incardon committed
28
elif [ "$2" == "gin" ]
incardon's avatar
incardon committed
29
then
incardon's avatar
incardon committed
30 31
 module load gcc/4.8.2
 module load boost/1.54.0
32
 sh ./configure CXX=mpic++ --with-boost=/sw/apps/boost/1.54.0/ --with-hdf5=$HOME/HDF5/bin/h5pcc
incardon's avatar
incardon committed
33
else
34
 sh ./configure CXX=mpic++ --with-hdf5=$HOME/HDF5/bin/h5pcc
incardon's avatar
incardon committed
35 36 37 38
fi
make

./src/io
incardon's avatar
incardon committed
39 40 41 42 43 44
if [ $? -ne 0 ]; then
   curl -X POST --data "payload={\"icon_emoji\": \":jenkins:\", \"username\": \"jenkins\"  , \"attachments\":[{ \"title\":\"Error:\", \"color\": \"#FF0000\", \"text\":\"$2 failed to complete the openfpm_io test \" }] }" https://hooks.slack.com/services/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
   exit 1 ; 
fi

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