ソースを参照

simgrid: upgrade to 3.16 privatization option

Samuel Thibault 6 年 前
コミット
9288505fa4
共有1 個のファイルを変更した9 個の追加2 個の削除を含む
  1. 9 2
      tools/starpu_smpirun.in

+ 9 - 2
tools/starpu_smpirun.in

@@ -3,7 +3,7 @@
 #
 # Copyright (C) 2017                                     CNRS
 # Copyright (C) 2016                                     Inria
-# Copyright (C) 2014-2016                                Université de Bordeaux
+# Copyright (C) 2014-2016,2019                            Université de Bordeaux
 #
 # StarPU is free software; you can redistribute it and/or modify
 # it under the terms of the GNU Lesser General Public License as published by
@@ -42,6 +42,13 @@ else
 	DASH=_
 fi
 
+if [ "$SMPI_MAJOR" -ge 4 -o \( "$SMPI_MAJOR" = 3 -a "$SMPI_MINOR" -ge 16 \) ]
+then
+	PRIV_OPT="--cfg=smpi/privatization:yes"
+else
+	PRIV_OPT="--cfg=smpi/privatize${DASH}global${DASH}variables:yes"
+fi
+
 # When executed from source, take xslt from source
 [ "$0" -ef $BUILDDIR/starpu_smpirun ] && STARPU_XSLTDIR=$SOURCE_DATADIR
 
@@ -115,7 +122,7 @@ EOF
 
 STACKSIZE=$(ulimit -s)
 [ "$STACKSIZE" != unlimited ] || STACKSIZE=8192
-$SMPIRUN -platform $PLATFORM -hostfile $MPI_HOSTFILE -np $NP "$@" --cfg=smpi/privatize${DASH}global${DASH}variables:yes --cfg=smpi/simulate${DASH}computation:no --cfg=contexts/stack${DASH}size:$STACKSIZE
+$SMPIRUN -platform $PLATFORM -hostfile $MPI_HOSTFILE -np $NP "$@" $PRIV_OPT --cfg=smpi/simulate${DASH}computation:no --cfg=contexts/stack${DASH}size:$STACKSIZE
 RET=$?
 
 rm -f $PLATFORM