run.sh 772 Bytes
Newer Older
incardon's avatar
incardon committed
1
2
#! /bin/bash

incardon's avatar
incardon committed
3
4
5
6
7
8
9

workspace=$1
hostname=$2
nproc=$3
ntask_per_node=$5
nodes=$4

incardon's avatar
incardon committed
10
# Get the branch of pdata
incardon's avatar
incardon committed
11

incardon's avatar
incardon committed
12
13
echo "RUN numerics test"

incardon's avatar
incardon committed
14
cd ..
incardon's avatar
incardon committed
15
16
branch=$(git ls-remote --heads origin | grep $(git rev-parse HEAD) | cut -d / -f 3)
source $HOME/openfpm_vars_$branch
incardon's avatar
incardon committed
17
cd openfpm_numerics
incardon's avatar
incardon committed
18

incardon's avatar
incardon committed
19
echo "DEBUG:  mpirun --oversubscribe -np $3 ../build/openfpm_numerics/src/numerics"
incardon's avatar
incardon committed
20

incardon's avatar
incardon committed
21
mpirun --oversubscribe -np $3 ../build/openfpm_numerics/src/numerics
incardon's avatar
incardon committed
22
23
24
25
26
27
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_numerics test \" }] }" https://hooks.slack.com/services/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
   exit 1 ;
fi