From cceebf0101c9812eea6501ce704e97b3d00a0302 Mon Sep 17 00:00:00 2001
From: Pietro Incardona <incardon@mpi-cbg.de>
Date: Thu, 13 Jul 2017 23:46:41 +0200
Subject: [PATCH] Printin MPI in use in the build pipeline

---
 build.sh | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/build.sh b/build.sh
index 99a12e20..592a3bcc 100755
--- a/build.sh
+++ b/build.sh
@@ -33,6 +33,9 @@ then
   make $3
  fi
 
+ echo "MPI in use: "
+ which mpirun
+
  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_pdata test \" }] }" https://hooks.slack.com/services/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
    exit 1 ;
@@ -63,9 +66,12 @@ then
  mkdir /scratch/p_ppm/$5
  ./install -m -i "/scratch/p_ppm/$5" -s -c"CXX=mpic++ --no-recursion"
  mv $HOME/openfpm_vars $HOME/openfpm_vars_$5
+ source $HOME/openfpm_vars_$5
  make $3
 
- source $HOME/openfpm_vars
+ echo "MPI in use: "
+ which mpirun
+
 
  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_pdata test \" }] }" https://hooks.slack.com/services/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
@@ -92,6 +98,9 @@ else
   make $3
  fi
 
+ echo "MPI in use: "
+ which mpirun
+
  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_pdata test \" }] }" https://hooks.slack.com/services/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
    exit 1 ;
-- 
GitLab