From: Martin Quinson Date: Mon, 15 Aug 2016 22:09:00 +0000 (+0200) Subject: activate global privatization by default in smpi X-Git-Tag: v3_14~545 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/ac156c60988a59e0c9246e3794e49378efc4eb2e activate global privatization by default in smpi --- diff --git a/ChangeLog b/ChangeLog index 35b92f5530..a99902a0d5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,9 @@ SimGrid (3.14) UNRELEASED; urgency=low still many room for improvement here, but we're on it. SMPI + * Privatization is now activated by default in smpirun + You can turn it off with -no-privatize if something goes wrong. + * Call-location tracing for SMPI. You can add the exact location (filename / linenumber) of an MPI call to your trace files and slow down or speed up the simulation between two diff --git a/src/smpi/smpirun.in b/src/smpi/smpirun.in index 97fad0ba95..80611b075c 100755 --- a/src/smpi/smpirun.in +++ b/src/smpi/smpirun.in @@ -1,7 +1,6 @@ #! /bin/sh -# Copyright (c) 2007-2015. The SimGrid Team. -# All rights reserved. +# Copyright (c) 2007-2016, The SimGrid Team. All rights reserved. # This program is free software; you can redistribute it and/or modify it # under the terms of the license (GNU LGPL) which comes with this package. @@ -24,6 +23,8 @@ NETWORK_BANDWIDTH="${DEFAULT_NETWORK_BANDWIDTH}" NETWORK_LATENCY="${DEFAULT_NETWORK_LATENCY}" SPEED="${DEFAULT_SPEED}" +PRIVATIZE="--cfg=smpi/privatize-global-variables:yes" + SIMOPTS="--cfg=surf/precision:1e-9 --cfg=network/model:SMPI --cfg=network/TCP-gamma:4194304" #usage to print the way this script should be called @@ -36,6 +37,7 @@ Options: -map # display the machine on which each process rank is mapped -np # use that amount of processes from the hostfile. # By default, all processes of the hostfile are used. + -no-privatize # Disable the globals privatization, that is activated by default -trace-ti # activate time independant tracing (for replay, default in smpi_simgrid.txt) -trace # activate tracing (Paje, default in smpi_simgrid.trace) -trace-comment # put a comment on the top of the trace file @@ -159,6 +161,10 @@ while true; do EXTOPT="$2" shift 2 ;; + "-no-privatize") + PRIVATIZE="" + shift 1 + ;; "-map") MAPOPT="true" shift 1 @@ -476,7 +482,7 @@ fi export SMPI_GLOBAL_SIZE=${NUMPROCS} if [ -n "${KEEP}" ] ; then - echo ${EXEC} ${TRACEOPTIONS} ${SIMOPTS} ${PLATFORMTMP} ${APPLICATIONTMP} + echo ${EXEC} ${TRACEOPTIONS} ${SIMOPTS} ${PRIVATIZE} ${PLATFORMTMP} ${APPLICATIONTMP} if [ ${HOSTFILETMP} = 1 ] ; then echo "Generated hostfile ${HOSTFILE} kept." fi