Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
simgrid.git
4 years ago[DOC] Update documentation on smpi/privatize-global-variables
Christian Heinrich [Fri, 10 Jun 2016 06:43:08 +0000 (08:43 +0200)]
[DOC] Update documentation on smpi/privatize-global-variables

4 years agoMerge branch 'master' of git+ssh://scm.gforge.inria.fr//gitroot/simgrid/simgrid
Frederic Suter [Thu, 9 Jun 2016 14:51:26 +0000 (16:51 +0200)]
Merge branch 'master' of git+ssh://scm.gforge.inria.fr//gitroot/simgrid/simgrid

4 years agoreduce smell of python scripts too
Frederic Suter [Thu, 9 Jun 2016 14:49:38 +0000 (16:49 +0200)]
reduce smell of python scripts too

4 years agocosmetics in java
Frederic Suter [Thu, 9 Jun 2016 14:49:09 +0000 (16:49 +0200)]
cosmetics in java

4 years agoC++ify this example + fix bug in tesh
Frederic Suter [Thu, 9 Jun 2016 14:47:34 +0000 (16:47 +0200)]
C++ify this example + fix bug in tesh

4 years agoGetting rid of C exceptions
Gabriel Corona [Mon, 6 Jun 2016 14:22:59 +0000 (16:22 +0200)]
Getting rid of C exceptions

The goal if to used native C++ exception instead our own SLJL-based C
exceptions:

* this removes the problem of exception conversion between C and C++
  context and the lack of interoperability of SimGrid THROW/TRY/CATCH
  with its C++ counterpart;

* we can still throw exceptions from C;

* but we can't catch exception from C anymore, you should use C++
  instead if order to do that;

Things to do afterwards:

* remove exceptions from the C public APIs;

* restore the multiple usage debugging;

* fix the backtrace code and separate from the exception code in order
  to be able to add backtraces to any exception and get backtraces
  without generating exceptions;

* add support for attaching backtraces to any exception;

* attach context (baktraces and cause) everywhere;

4 years agomaxmin_bench, use stderr only (not stdout)
Gabriel Corona [Thu, 9 Jun 2016 12:08:29 +0000 (14:08 +0200)]
maxmin_bench, use stderr only (not stdout)

4 years ago[jenkins] Add lib/ in the PATH for Windows
Gabriel Corona [Thu, 9 Jun 2016 09:57:03 +0000 (11:57 +0200)]
[jenkins] Add lib/ in the PATH for Windows

4 years ago[SMPI] Fix local path that slipped in :)
Christian Heinrich [Thu, 9 Jun 2016 13:06:58 +0000 (15:06 +0200)]
[SMPI] Fix local path that slipped in :)

4 years agoremove a few sonar stuff
Frederic Suter [Thu, 9 Jun 2016 09:14:51 +0000 (11:14 +0200)]
remove a few sonar stuff

4 years ago[INCLUDES] NULL -> nullptr substitution.
Christian Heinrich [Wed, 8 Jun 2016 21:26:36 +0000 (23:26 +0200)]
[INCLUDES] NULL -> nullptr substitution.

4 years ago[TESHSUITE] NULL -> nullptr substitution
Christian Heinrich [Wed, 8 Jun 2016 21:22:15 +0000 (23:22 +0200)]
[TESHSUITE] NULL -> nullptr substitution

I used the following command: (the '**' means recursion in ZSH)
sed -i -e 's/\([^_]\s*\)NULL/\1nullptr/g' src/**/*.cpp

We check for the underscore to avoid replacing MPI_*_NULL

4 years ago[XBT] NULL -> nullptr substitution
Christian Heinrich [Wed, 8 Jun 2016 21:20:59 +0000 (23:20 +0200)]
[XBT] NULL -> nullptr substitution

I used the following command: (the '**' means recursion in ZSH)
sed -i -e 's/\([^_]\s*\)NULL/\1nullptr/g' src/**/*.cpp

We check for the underscore to avoid replacing MPI_*_NULL

4 years ago[SURF] NULL -> nullptr substitution
Christian Heinrich [Wed, 8 Jun 2016 21:20:59 +0000 (23:20 +0200)]
[SURF] NULL -> nullptr substitution

I used the following command: (the '**' means recursion in ZSH)
sed -i -e 's/\([^_]\s*\)NULL/\1nullptr/g' src/**/*.cpp

We check for the underscore to avoid replacing MPI_*_NULL

4 years ago[SMPI] NULL -> nullptr substitution
Christian Heinrich [Wed, 8 Jun 2016 21:20:59 +0000 (23:20 +0200)]
[SMPI] NULL -> nullptr substitution

I used the following command: (the '**' means recursion in ZSH)
sed -i -e 's/\([^_]\s*\)NULL/\1nullptr/g' src/**/*.cpp

We check for the underscore to avoid replacing MPI_*_NULL

4 years ago[SIMIX] NULL -> nullptr substitution
Christian Heinrich [Wed, 8 Jun 2016 21:20:59 +0000 (23:20 +0200)]
[SIMIX] NULL -> nullptr substitution

I used the following command: (the '**' means recursion in ZSH)
sed -i -e 's/\([^_]\s*\)NULL/\1nullptr/g' src/**/*.cpp

We check for the underscore to avoid replacing MPI_*_NULL

4 years ago[SIMGRID] NULL -> nullptr substitution
Christian Heinrich [Wed, 8 Jun 2016 21:20:59 +0000 (23:20 +0200)]
[SIMGRID] NULL -> nullptr substitution

I used the following command: (the '**' means recursion in ZSH)
sed -i -e 's/\([^_]\s*\)NULL/\1nullptr/g' src/**/*.cpp

We check for the underscore to avoid replacing MPI_*_NULL

4 years ago[SIMDAG] NULL -> nullptr substitution
Christian Heinrich [Wed, 8 Jun 2016 21:20:59 +0000 (23:20 +0200)]
[SIMDAG] NULL -> nullptr substitution

I used the following command: (the '**' means recursion in ZSH)
sed -i -e 's/\([^_]\s*\)NULL/\1nullptr/g' src/**/*.cpp

We check for the underscore to avoid replacing MPI_*_NULL

4 years ago[S4U] NULL -> nullptr substitution
Christian Heinrich [Wed, 8 Jun 2016 21:20:59 +0000 (23:20 +0200)]
[S4U] NULL -> nullptr substitution

I used the following command: (the '**' means recursion in ZSH)
sed -i -e 's/\([^_]\s*\)NULL/\1nullptr/g' src/**/*.cpp

We check for the underscore to avoid replacing MPI_*_NULL

4 years ago[MSG] NULL -> nullptr substitution
Christian Heinrich [Wed, 8 Jun 2016 21:20:59 +0000 (23:20 +0200)]
[MSG] NULL -> nullptr substitution

I used the following command: (the '**' means recursion in ZSH)
sed -i -e 's/\([^_]\s*\)NULL/\1nullptr/g' src/**/*.cpp

We check for the underscore to avoid replacing MPI_*_NULL

4 years ago[INSTR] NULL -> nullptr substitution
Christian Heinrich [Wed, 8 Jun 2016 21:20:59 +0000 (23:20 +0200)]
[INSTR] NULL -> nullptr substitution

I used the following command: (the '**' means recursion in ZSH)
sed -i -e 's/\([^_]\s*\)NULL/\1nullptr/g' src/**/*.cpp

We check for the underscore to avoid replacing MPI_*_NULL

4 years ago[BINDINGS] NULL -> nullptr substitution
Christian Heinrich [Wed, 8 Jun 2016 21:20:59 +0000 (23:20 +0200)]
[BINDINGS] NULL -> nullptr substitution

I used the following command: (the '**' means recursion in ZSH)
sed -i -e 's/\([^_]\s*\)NULL/\1nullptr/g' src/**/*.cpp

We check for the underscore to avoid replacing MPI_*_NULL

4 years agoneeded for win
degomme [Wed, 8 Jun 2016 15:30:11 +0000 (17:30 +0200)]
needed for win

4 years agoFinally test for timing injection in MPI_Send, MPI_Isend, MPI_Recv
degomme [Wed, 8 Jun 2016 15:01:02 +0000 (17:01 +0200)]
Finally test for timing injection in MPI_Send, MPI_Isend, MPI_Recv
MPI_Irecv timings are injected in the consecutive MPI_Wait, actually

4 years agoEnhance pt2pt test for dsend to test MPI_Isend/MPI_Irecv as well.
degomme [Wed, 8 Jun 2016 14:34:49 +0000 (16:34 +0200)]
Enhance pt2pt test for dsend to test MPI_Isend/MPI_Irecv as well.

4 years agoFix bug, MPI_Recv timings for small messages were actually ignored
degomme [Wed, 8 Jun 2016 14:28:34 +0000 (16:28 +0200)]
Fix bug, MPI_Recv timings for small messages were actually ignored

4 years ago[SMPI] Add a simple comment for the else clause
Christian Heinrich [Wed, 8 Jun 2016 13:47:02 +0000 (15:47 +0200)]
[SMPI] Add a simple comment for the else clause

4 years ago[SMPI] Fix missing timings for MPI_Send.
Christian Heinrich [Wed, 8 Jun 2016 13:46:44 +0000 (15:46 +0200)]
[SMPI] Fix missing timings for MPI_Send.

Timings were never injected for MPI_Send since request->detached
was only set to something != 0 after the timings were already
injected. I therefore moved the block that computes this value
up. See also 825ad35c811f

4 years ago[SMPI] Cosmetics & replace call to smpi_os with sleeptime
Christian Heinrich [Wed, 8 Jun 2016 13:43:06 +0000 (15:43 +0200)]
[SMPI] Cosmetics & replace call to smpi_os with sleeptime

4 years ago[SMPI] Make an if-condition more readable
Christian Heinrich [Tue, 7 Jun 2016 09:32:42 +0000 (11:32 +0200)]
[SMPI] Make an if-condition more readable

4 years ago[DOC] Corrected SMPI option name
Christian Heinrich [Tue, 7 Jun 2016 08:44:27 +0000 (10:44 +0200)]
[DOC] Corrected SMPI option name

4 years ago[SMPI] Even more cosmetics...
Christian Heinrich [Tue, 7 Jun 2016 08:31:28 +0000 (10:31 +0200)]
[SMPI] Even more cosmetics...

4 years ago[SMPI] More alignment cosmetics
Christian Heinrich [Tue, 7 Jun 2016 08:15:56 +0000 (10:15 +0200)]
[SMPI] More alignment cosmetics

4 years ago[SMPI] Indentation in smpi_base.cpp
Christian Heinrich [Tue, 7 Jun 2016 08:08:24 +0000 (10:08 +0200)]
[SMPI] Indentation in smpi_base.cpp

4 years ago[SMPI] Cosmetics / NULL <-> nullptr in smpi_base.cpp
Christian Heinrich [Tue, 7 Jun 2016 08:08:10 +0000 (10:08 +0200)]
[SMPI] Cosmetics / NULL <-> nullptr in smpi_base.cpp

4 years ago[SMPI] Grammar in smpi_base.cpp
Christian Heinrich [Tue, 7 Jun 2016 05:27:05 +0000 (07:27 +0200)]
[SMPI] Grammar in smpi_base.cpp

4 years ago[SMPI] Change some NULL to nullptr
Christian Heinrich [Tue, 7 Jun 2016 05:24:14 +0000 (07:24 +0200)]
[SMPI] Change some NULL to nullptr

4 years ago[SMPI] Alignment cosmetics in smpi_base.cpp
Christian Heinrich [Tue, 7 Jun 2016 05:22:03 +0000 (07:22 +0200)]
[SMPI] Alignment cosmetics in smpi_base.cpp

4 years ago[SMPI] Convert smpi_c99.cpp to actual C++ code
Christian Heinrich [Sat, 4 Jun 2016 14:42:25 +0000 (16:42 +0200)]
[SMPI] Convert smpi_c99.cpp to actual C++ code

4 years ago[SMPI] PMPI_Ssend: Cosmetics
Christian Heinrich [Fri, 3 Jun 2016 10:32:44 +0000 (12:32 +0200)]
[SMPI] PMPI_Ssend: Cosmetics

4 years ago[SMPI] PMPI_Send: Cosmetics
Christian Heinrich [Fri, 3 Jun 2016 10:28:26 +0000 (12:28 +0200)]
[SMPI] PMPI_Send: Cosmetics

4 years ago[SMPI] NULL -> nullptr in smpi_base.cpp
Christian Heinrich [Fri, 3 Jun 2016 10:28:00 +0000 (12:28 +0200)]
[SMPI] NULL -> nullptr in smpi_base.cpp

4 years ago[DOC] Document the 'smpi/init' config option
Christian Heinrich [Thu, 2 Jun 2016 14:49:06 +0000 (16:49 +0200)]
[DOC] Document the 'smpi/init' config option

4 years agowoops, I broke everything
Martin Quinson [Tue, 7 Jun 2016 22:23:44 +0000 (00:23 +0200)]
woops, I broke everything

4 years agocosmetics
Martin Quinson [Tue, 7 Jun 2016 21:35:08 +0000 (23:35 +0200)]
cosmetics

4 years agoan extra (short) explanation about java simulations
Martin Quinson [Mon, 6 Jun 2016 19:31:31 +0000 (21:31 +0200)]
an extra (short) explanation about java simulations

4 years ago[s4u] add actor join
adfaure [Tue, 7 Jun 2016 07:52:20 +0000 (09:52 +0200)]
[s4u] add actor join

4 years ago[s4u] Lowercase variable
Gabriel Corona [Mon, 6 Jun 2016 13:30:55 +0000 (15:30 +0200)]
[s4u] Lowercase variable

4 years ago[s4u] add kill actor with its PID
adfaure [Mon, 6 Jun 2016 12:55:35 +0000 (14:55 +0200)]
[s4u] add kill actor with its PID

4 years agorewrite the java documentation
Martin Quinson [Sun, 5 Jun 2016 06:46:27 +0000 (08:46 +0200)]
rewrite the java documentation

4 years agorewrite the java documentation
Martin Quinson [Sun, 5 Jun 2016 06:46:12 +0000 (08:46 +0200)]
rewrite the java documentation

4 years agocosmetics in AsCluster and friends
Martin Quinson [Sat, 4 Jun 2016 17:46:02 +0000 (19:46 +0200)]
cosmetics in AsCluster and friends

4 years agoMerge branch 'master' of scm.gforge.inria.fr:/gitroot/simgrid/simgrid
Martin Quinson [Sat, 4 Jun 2016 16:31:29 +0000 (18:31 +0200)]
Merge branch 'master' of scm.gforge.inria.fr:/gitroot/simgrid/simgrid

4 years agoMerge branch 'master' of git+ssh://scm.gforge.inria.fr//gitroot/simgrid/simgrid
Frederic Suter [Fri, 3 Jun 2016 14:59:20 +0000 (16:59 +0200)]
Merge branch 'master' of git+ssh://scm.gforge.inria.fr//gitroot/simgrid/simgrid

4 years agouse more cpp style stuff
Frederic Suter [Fri, 3 Jun 2016 14:40:44 +0000 (16:40 +0200)]
use more cpp style stuff

4 years ago[xbt] Update comment on xbt::fulfillPromise
Gabriel Corona [Fri, 3 Jun 2016 14:51:06 +0000 (16:51 +0200)]
[xbt] Update comment on xbt::fulfillPromise

4 years agoMerge branch 'master' of git+ssh://scm.gforge.inria.fr//gitroot/simgrid/simgrid
Frederic Suter [Fri, 3 Jun 2016 14:06:57 +0000 (16:06 +0200)]
Merge branch 'master' of git+ssh://scm.gforge.inria.fr//gitroot/simgrid/simgrid

4 years agosimplify this example
Frederic Suter [Fri, 3 Jun 2016 14:04:39 +0000 (16:04 +0200)]
simplify this example
all the if(<test>) are there (and always true) for 6 years.
I wonder if anyone tried to switch one to false, it so, feel free to
revert this commit

4 years ago[xbt] Fix s/nullptr_t/std::nullptr_t/
Gabriel Corona [Fri, 3 Jun 2016 11:55:54 +0000 (13:55 +0200)]
[xbt] Fix s/nullptr_t/std::nullptr_t/

4 years ago[xbt] Add missing const in Result::is_valid
Gabriel Corona [Fri, 3 Jun 2016 11:17:31 +0000 (13:17 +0200)]
[xbt] Add missing const in Result::is_valid

4 years ago[xbt] Fix indentation
Gabriel Corona [Fri, 3 Jun 2016 11:17:07 +0000 (13:17 +0200)]
[xbt] Fix indentation

4 years ago[xbt] Fix 'control reaches end of non-void function' in Result::get()
Gabriel Corona [Fri, 3 Jun 2016 11:16:54 +0000 (13:16 +0200)]
[xbt] Fix 'control reaches end of non-void function' in Result::get()

4 years ago[simix] Pass the code by reference in simcall_run_kernel
Gabriel Corona [Fri, 3 Jun 2016 11:00:48 +0000 (13:00 +0200)]
[simix] Pass the code by reference in simcall_run_kernel

Avoid heap-allocating code for std::function.

4 years agoUse a custom Result<T> value for simgrid::smix::kernel()
Gabriel Corona [Fri, 3 Jun 2016 10:20:56 +0000 (12:20 +0200)]
Use a custom Result<T> value for simgrid::smix::kernel()

This avoids allocating a shared state (by std::promise) on the heap
for each such call.

4 years agoreplace Vector by ArrayList
Frederic Suter [Fri, 3 Jun 2016 07:05:45 +0000 (09:05 +0200)]
replace Vector by ArrayList

4 years agoMerge branch 'master' of git+ssh://scm.gforge.inria.fr//gitroot/simgrid/simgrid
Frederic Suter [Thu, 2 Jun 2016 15:52:55 +0000 (17:52 +0200)]
Merge branch 'master' of git+ssh://scm.gforge.inria.fr//gitroot/simgrid/simgrid

4 years agotry to make TestHostOnOff do something
Frederic Suter [Thu, 2 Jun 2016 15:47:49 +0000 (17:47 +0200)]
try to make TestHostOnOff do something
  + kill a redundant platform
  + adapt another one
  + update other tests (including broken ones)
  + ... still not functional

4 years agosmells --
Frederic Suter [Thu, 2 Jun 2016 15:47:39 +0000 (17:47 +0200)]
smells --

4 years ago[SMPI] Introduce new config option 'smpi/init'
Christian Heinrich [Thu, 2 Jun 2016 14:41:15 +0000 (16:41 +0200)]
[SMPI] Introduce new config option 'smpi/init'

This option allows the user to calibrate the time
that SMPI accounts for a call to SMPI. Although these timings
are normally miniscule with just a fraction of a second, they
may be of interest to someone, especially since they come at almost
no cost. (And almost no code needs to be maintained.)

4 years ago[SMPI] Cosmetics in smpi_base.cpp
Christian Heinrich [Thu, 2 Jun 2016 14:23:22 +0000 (16:23 +0200)]
[SMPI] Cosmetics in smpi_base.cpp

4 years agoJava: be more verbose when cleaning the disk on exit fails
Martin Quinson [Thu, 2 Jun 2016 09:50:09 +0000 (11:50 +0200)]
Java: be more verbose when cleaning the disk on exit fails

4 years agowoops
Martin Quinson [Wed, 1 Jun 2016 14:38:33 +0000 (16:38 +0200)]
woops

4 years agosome manual reindent of XML to please sonar
Martin Quinson [Wed, 1 Jun 2016 14:08:06 +0000 (16:08 +0200)]
some manual reindent of XML to please sonar

4 years agocosmetics from patch review
Martin Quinson [Wed, 1 Jun 2016 13:59:43 +0000 (15:59 +0200)]
cosmetics from patch review

4 years agocosmetics from patch review
Martin Quinson [Wed, 1 Jun 2016 13:27:33 +0000 (15:27 +0200)]
cosmetics from patch review

4 years agofix a 'Conditional jump or move depends on uninitialised value' (on strlen)
Martin Quinson [Wed, 1 Jun 2016 13:26:56 +0000 (15:26 +0200)]
fix a 'Conditional jump or move depends on uninitialised value' (on strlen)

4 years agodoxygen fixups
Martin Quinson [Wed, 1 Jun 2016 13:16:19 +0000 (15:16 +0200)]
doxygen fixups

4 years agoyet another bunch of critical
Frederic Suter [Wed, 1 Jun 2016 10:34:56 +0000 (12:34 +0200)]
yet another bunch of critical

4 years agosimplify this example
Frederic Suter [Wed, 1 Jun 2016 10:19:56 +0000 (12:19 +0200)]
simplify this example

4 years agoMerge branch 'master' of scm.gforge.inria.fr:/gitroot/simgrid/simgrid
Martin Quinson [Wed, 1 Jun 2016 09:28:33 +0000 (11:28 +0200)]
Merge branch 'master' of scm.gforge.inria.fr:/gitroot/simgrid/simgrid

4 years agoMerge branch 'master' of scm.gforge.inria.fr:/gitroot/simgrid/simgrid
Martin Quinson [Wed, 1 Jun 2016 09:28:17 +0000 (11:28 +0200)]
Merge branch 'master' of scm.gforge.inria.fr:/gitroot/simgrid/simgrid

4 years agoblockers--
Frederic Suter [Wed, 1 Jun 2016 09:23:41 +0000 (11:23 +0200)]
blockers--

4 years agouse strbuff instead of a big mess of reallocs
Martin Quinson [Wed, 1 Jun 2016 09:16:58 +0000 (11:16 +0200)]
use strbuff instead of a big mess of reallocs

4 years agorename xbt_strbuff_empty() to xbt_strbuff_clear()
Martin Quinson [Wed, 1 Jun 2016 09:14:18 +0000 (11:14 +0200)]
rename xbt_strbuff_empty() to xbt_strbuff_clear()

4 years agonew function: xbt_strbuff_printf()
Martin Quinson [Wed, 1 Jun 2016 09:12:26 +0000 (11:12 +0200)]
new function: xbt_strbuff_printf()

4 years agodocument the strbuf
Martin Quinson [Wed, 1 Jun 2016 08:50:06 +0000 (10:50 +0200)]
document the strbuf

4 years agolet's be a little bit cleaner here.
degomme [Wed, 1 Jun 2016 08:47:55 +0000 (10:47 +0200)]
let's be a little bit cleaner here.

4 years agoproperly avoid buff overflows when displaying the model description
Martin Quinson [Wed, 1 Jun 2016 08:31:17 +0000 (10:31 +0200)]
properly avoid buff overflows when displaying the model description

4 years agocode simplification thanks to bprintf
Martin Quinson [Wed, 1 Jun 2016 08:22:47 +0000 (10:22 +0200)]
code simplification thanks to bprintf

4 years agofix the fix: compute the real buffer size
Martin Quinson [Wed, 1 Jun 2016 08:18:19 +0000 (10:18 +0200)]
fix the fix: compute the real buffer size

4 years agooops
degomme [Wed, 1 Jun 2016 06:26:57 +0000 (08:26 +0200)]
oops

4 years agostrcpy->strncpy
degomme [Wed, 1 Jun 2016 00:16:20 +0000 (02:16 +0200)]
strcpy->strncpy

4 years ago.. and of strcat, replaced by strncat
degomme [Tue, 31 May 2016 23:32:50 +0000 (01:32 +0200)]
.. and of strcat, replaced by strncat

4 years agoReplace sprintf by snprintf.
degomme [Tue, 31 May 2016 23:25:32 +0000 (01:25 +0200)]
Replace sprintf by snprintf.

4 years agotry to stabilize output of trace call location test
degomme [Tue, 31 May 2016 21:54:14 +0000 (23:54 +0200)]
try to stabilize output of trace call location test

4 years agokurgan said "there can be only one"
Frederic Suter [Tue, 31 May 2016 21:09:14 +0000 (23:09 +0200)]
kurgan said "there can be only one"
it works for "2-clusters platforms" too

4 years agoRevert "avoid assert in the middle of the code"
Frederic Suter [Tue, 31 May 2016 19:48:59 +0000 (21:48 +0200)]
Revert "avoid assert in the middle of the code"

This reverts commit b8f11e6f72fd3bba9a694d9a32cd155a7878f43c.

4 years agoremove a couple of ugly things from DT.c
Frederic Suter [Tue, 31 May 2016 14:01:13 +0000 (16:01 +0200)]
remove a couple of ugly things from DT.c

a lot remains ...

4 years agodo not catch Throwable
Martin Quinson [Tue, 31 May 2016 18:25:38 +0000 (20:25 +0200)]
do not catch Throwable

4 years agoMerge branch 'master' of git+ssh://scm.gforge.inria.fr//gitroot/simgrid/simgrid
Frederic Suter [Tue, 31 May 2016 11:40:19 +0000 (13:40 +0200)]
Merge branch 'master' of git+ssh://scm.gforge.inria.fr//gitroot/simgrid/simgrid