Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
simgrid.git
6 years agomissing include
Frederic Suter [Tue, 1 Aug 2017 14:31:31 +0000 (16:31 +0200)]
missing include
hope it's the only one

6 years agoproperties are now stored in maps and managed by ProperyHolder
Frederic Suter [Tue, 1 Aug 2017 13:42:36 +0000 (15:42 +0200)]
properties are now stored in maps and managed by ProperyHolder
everywhere!

6 years agoOnly maestro is allowed to push in simix_global->process_to_run.
Arnaud Giersch [Tue, 1 Aug 2017 12:28:26 +0000 (14:28 +0200)]
Only maestro is allowed to push in simix_global->process_to_run.

Tests msg-process-join are now expected to fail.

6 years agouse a map for F2C lookup.
Frederic Suter [Tue, 1 Aug 2017 08:48:12 +0000 (10:48 +0200)]
use a map for F2C lookup.
This class could be further improved

6 years agomove ugly dict closer to the C APIs
Frederic Suter [Mon, 31 Jul 2017 16:15:34 +0000 (18:15 +0200)]
move ugly dict closer to the C APIs
+ revise a bit an ugly simdag example

6 years agoimprove
Frederic Suter [Mon, 31 Jul 2017 15:36:01 +0000 (17:36 +0200)]
improve

6 years agosimplify storage_type mess
Frederic Suter [Mon, 31 Jul 2017 13:07:46 +0000 (15:07 +0200)]
simplify storage_type mess

6 years agocosmetics
Frederic Suter [Mon, 31 Jul 2017 09:24:40 +0000 (11:24 +0200)]
cosmetics

6 years agothis dict was a set
Frederic Suter [Mon, 31 Jul 2017 09:18:00 +0000 (11:18 +0200)]
this dict was a set

6 years agoMerge branch 'master' of git+ssh://scm.gforge.inria.fr//gitroot/simgrid/simgrid
Frederic Suter [Mon, 31 Jul 2017 08:26:42 +0000 (10:26 +0200)]
Merge branch 'master' of git+ssh://scm.gforge.inria.fr//gitroot/simgrid/simgrid

6 years agotry to fix build + cosmetics
Frederic Suter [Mon, 31 Jul 2017 08:26:27 +0000 (10:26 +0200)]
try to fix build + cosmetics

6 years agoplease sonar
Martin Quinson [Mon, 31 Jul 2017 00:33:41 +0000 (02:33 +0200)]
please sonar

6 years agofix NS3 builds
Martin Quinson [Sun, 30 Jul 2017 23:58:34 +0000 (01:58 +0200)]
fix NS3 builds

6 years agofix an URL
Martin Quinson [Sun, 30 Jul 2017 19:41:52 +0000 (21:41 +0200)]
fix an URL

6 years agokill another dict
Frederic Suter [Sun, 30 Jul 2017 11:31:05 +0000 (13:31 +0200)]
kill another dict

6 years agoplease emptty
Frederic Suter [Sun, 30 Jul 2017 09:19:39 +0000 (11:19 +0200)]
please emptty

6 years agoLast replacement of qsort by std::sort.
Arnaud Giersch [Fri, 28 Jul 2017 09:07:28 +0000 (11:07 +0200)]
Last replacement of qsort by std::sort.

Note that the rankmap array in replaced by a std::vector<std::pair<int, int>>,
and that the two elements of the pair are reversed in order to be correclty
ordered by std::sort.

6 years agoUse std::sort instead of qsort in C++ files (easy part).
Arnaud Giersch [Fri, 28 Jul 2017 08:07:59 +0000 (10:07 +0200)]
Use std::sort instead of qsort in C++ files (easy part).

6 years agodon't let every process do the initialization, only rank 0
Martin Quinson [Fri, 28 Jul 2017 11:06:54 +0000 (13:06 +0200)]
don't let every process do the initialization, only rank 0

Otherwise, overriding_send will be the value assigned to
previous_send, leading into a infinite call loop.

6 years agodisable raw contexts and ucontexts with ASan because of known incompatibilities
Martin Quinson [Thu, 27 Jul 2017 20:55:03 +0000 (22:55 +0200)]
disable raw contexts and ucontexts with ASan because of known incompatibilities

6 years agokill dict and dynar in dotloader
Frederic Suter [Thu, 27 Jul 2017 14:25:28 +0000 (16:25 +0200)]
kill dict and dynar in dotloader

6 years agoMerge branch 'master' of scm.gforge.inria.fr:/gitroot/simgrid/simgrid
Martin Quinson [Thu, 27 Jul 2017 14:08:38 +0000 (16:08 +0200)]
Merge branch 'master' of scm.gforge.inria.fr:/gitroot/simgrid/simgrid

6 years agoAnother one only built on *bsd.
Arnaud Giersch [Thu, 27 Jul 2017 13:28:40 +0000 (15:28 +0200)]
Another one only built on *bsd.

6 years agoMerge branch 'master' of git+ssh://scm.gforge.inria.fr//gitroot/simgrid/simgrid
Frederic Suter [Thu, 27 Jul 2017 13:04:02 +0000 (15:04 +0200)]
Merge branch 'master' of git+ssh://scm.gforge.inria.fr//gitroot/simgrid/simgrid

6 years agocosmetics
Frederic Suter [Thu, 27 Jul 2017 12:53:46 +0000 (14:53 +0200)]
cosmetics

6 years agoFix signedness issues in dht-pastry in a more conservative manner.
Arnaud Giersch [Thu, 27 Jul 2017 12:58:50 +0000 (14:58 +0200)]
Fix signedness issues in dht-pastry in a more conservative manner.

6 years agoMerge branch 'master' of git+ssh://scm.gforge.inria.fr//gitroot/simgrid/simgrid
Frederic Suter [Thu, 27 Jul 2017 12:32:06 +0000 (14:32 +0200)]
Merge branch 'master' of git+ssh://scm.gforge.inria.fr//gitroot/simgrid/simgrid

6 years agoMerge branch 'master' of git+ssh://scm.gforge.inria.fr//gitroot/simgrid/simgrid
Frederic Suter [Thu, 27 Jul 2017 12:31:44 +0000 (14:31 +0200)]
Merge branch 'master' of git+ssh://scm.gforge.inria.fr//gitroot/simgrid/simgrid

6 years agoForgotten signedness issues.
Arnaud Giersch [Thu, 27 Jul 2017 12:31:31 +0000 (14:31 +0200)]
Forgotten signedness issues.

6 years agos/GREATER/LESS/
Arnaud Giersch [Thu, 27 Jul 2017 12:18:38 +0000 (14:18 +0200)]
s/GREATER/LESS/

6 years agokill dicts in option management
Frederic Suter [Thu, 27 Jul 2017 12:01:50 +0000 (14:01 +0200)]
kill dicts in option management

6 years agoAdd -Wformat-signedness to warnCFLAGS for GCC >= 5.0.
Arnaud Giersch [Thu, 27 Jul 2017 12:09:46 +0000 (14:09 +0200)]
Add -Wformat-signedness to warnCFLAGS for GCC >= 5.0.

6 years agoFix signedness errors in format strings.
Arnaud Giersch [Thu, 27 Jul 2017 12:08:29 +0000 (14:08 +0200)]
Fix signedness errors in format strings.

6 years agoReduce scope of variables (please Codacy).
Arnaud Giersch [Thu, 27 Jul 2017 11:54:02 +0000 (13:54 +0200)]
Reduce scope of variables (please Codacy).

6 years agoAvoid warnings about renamed options with --help-aliases.
Arnaud Giersch [Thu, 27 Jul 2017 07:26:55 +0000 (09:26 +0200)]
Avoid warnings about renamed options with --help-aliases.

6 years agoCorrectly sort config entries for --help.
Arnaud Giersch [Thu, 27 Jul 2017 07:26:55 +0000 (09:26 +0200)]
Correctly sort config entries for --help.

6 years agosmpirun: define function die() to print error message and exit.
Arnaud Giersch [Thu, 27 Jul 2017 07:26:55 +0000 (09:26 +0200)]
smpirun: define function die() to print error message and exit.

6 years agoShell scripts: remove useless variable expansion in arithmetic expressions.
Arnaud Giersch [Thu, 27 Jul 2017 07:26:55 +0000 (09:26 +0200)]
Shell scripts: remove useless variable expansion in arithmetic expressions.

6 years agoShell scripts: replace backquotes with $().
Arnaud Giersch [Thu, 27 Jul 2017 07:26:54 +0000 (09:26 +0200)]
Shell scripts: replace backquotes with $().

6 years agoRemove useless guard.
Arnaud Giersch [Thu, 27 Jul 2017 07:26:54 +0000 (09:26 +0200)]
Remove useless guard.

The log category mc_main is now connected at the proper place.

6 years agoUse C++ style includes when available.
Arnaud Giersch [Thu, 27 Jul 2017 07:26:54 +0000 (09:26 +0200)]
Use C++ style includes when available.

6 years agoRemove header files which are obsolete since SimGrid 3.12.
Arnaud Giersch [Thu, 27 Jul 2017 07:26:54 +0000 (09:26 +0200)]
Remove header files which are obsolete since SimGrid 3.12.

6 years agoRemove remaining mentions of Swig.
Arnaud Giersch [Thu, 27 Jul 2017 07:26:54 +0000 (09:26 +0200)]
Remove remaining mentions of Swig.

6 years agoRemove commented lines.
Arnaud Giersch [Thu, 27 Jul 2017 07:26:54 +0000 (09:26 +0200)]
Remove commented lines.

These lines were commented 8 years ago in commit c01bbf930f6f8a0d0b2730cb6effba0023a7ec69.

6 years agoless dict, bprintf, and xbt_str_parse
Frederic Suter [Thu, 27 Jul 2017 09:00:37 +0000 (11:00 +0200)]
less dict, bprintf, and xbt_str_parse

6 years agoUsing operator[] instead of std::unordered_map::insert
Martin Quinson [Wed, 26 Jul 2017 20:21:18 +0000 (22:21 +0200)]
Using operator[] instead of std::unordered_map::insert

insert does not allow to replace the content associted to an already
existing key.

Initial report and patch by @rktesser as part of #125 (but unrelated to
the rest of #125, thus the partial application). Thanks.

6 years agofix tracing tests
Martin Quinson [Wed, 26 Jul 2017 19:53:58 +0000 (21:53 +0200)]
fix tracing tests

This will result in a leak in the tracing::value content, but this is
unavoidable as long as the constructor is not really initializing the
fields but instead initializing the ret field.

6 years agofix MC which uses simgrid::xbt::string
Frederic Suter [Tue, 25 Jul 2017 15:34:36 +0000 (17:34 +0200)]
fix MC which uses simgrid::xbt::string

6 years agopartial leak plug in chord
Frederic Suter [Tue, 25 Jul 2017 14:55:54 +0000 (16:55 +0200)]
partial leak plug in chord

6 years agoMerge branch 'master' of git+ssh://scm.gforge.inria.fr//gitroot/simgrid/simgrid
Frederic Suter [Tue, 25 Jul 2017 10:36:35 +0000 (12:36 +0200)]
Merge branch 'master' of git+ssh://scm.gforge.inria.fr//gitroot/simgrid/simgrid

6 years agoallgather was forgotten in ti tracing. fix this
degomme [Tue, 25 Jul 2017 09:27:38 +0000 (11:27 +0200)]
allgather was forgotten in ti tracing. fix this

6 years agoMerge branch 'master' of git+ssh://scm.gforge.inria.fr//gitroot/simgrid/simgrid
Frederic Suter [Tue, 25 Jul 2017 08:36:32 +0000 (10:36 +0200)]
Merge branch 'master' of git+ssh://scm.gforge.inria.fr//gitroot/simgrid/simgrid

6 years agolet parsing raise C++ exceptions, kill a dict, reindent
Frederic Suter [Tue, 25 Jul 2017 08:35:39 +0000 (10:35 +0200)]
let parsing raise C++ exceptions, kill a dict, reindent

6 years agocosmetics
Martin Quinson [Mon, 24 Jul 2017 21:03:17 +0000 (23:03 +0200)]
cosmetics

6 years agouse a proper destructor for the paje::value type
Martin Quinson [Mon, 24 Jul 2017 20:44:15 +0000 (22:44 +0200)]
use a proper destructor for the paje::value type

6 years agocosmetics in instr: use sensible identifier names
Martin Quinson [Mon, 24 Jul 2017 20:33:30 +0000 (22:33 +0200)]
cosmetics in instr: use sensible identifier names

6 years agoahem
Martin Quinson [Mon, 24 Jul 2017 20:27:39 +0000 (22:27 +0200)]
ahem

6 years agoMerge branch 'master' of github.com:simgrid/simgrid
Martin Quinson [Mon, 24 Jul 2017 20:10:40 +0000 (22:10 +0200)]
Merge branch 'master' of github.com:simgrid/simgrid

6 years agoMerge pull request #202 from Takishipp/clear_fct
Martin Quinson [Mon, 24 Jul 2017 20:10:12 +0000 (22:10 +0200)]
Merge pull request #202 from Takishipp/clear_fct

Turn paje_value to a class

6 years agocodacy
Martin Quinson [Mon, 24 Jul 2017 20:03:47 +0000 (22:03 +0200)]
codacy

6 years agoMerge branch 'master' of scm.gforge.inria.fr:/gitroot/simgrid/simgrid
Martin Quinson [Mon, 24 Jul 2017 19:57:48 +0000 (21:57 +0200)]
Merge branch 'master' of scm.gforge.inria.fr:/gitroot/simgrid/simgrid

6 years agodelete unused parameters
Takishipp [Mon, 24 Jul 2017 14:08:48 +0000 (16:08 +0200)]
delete unused parameters

6 years agomess up with parsing and exceptions
Frederic Suter [Mon, 24 Jul 2017 13:24:06 +0000 (15:24 +0200)]
mess up with parsing and exceptions

6 years agodelete unused parameters
Takishipp [Mon, 24 Jul 2017 12:05:50 +0000 (14:05 +0200)]
delete unused parameters

6 years agoremove unused parameters of some fcts
Takishipp [Mon, 24 Jul 2017 10:49:11 +0000 (12:49 +0200)]
remove unused parameters of some fcts

6 years agooverall optimization of map usage
Frederic Suter [Mon, 24 Jul 2017 08:51:56 +0000 (10:51 +0200)]
overall optimization of map usage
replace all find != end + at by a try/catch on at.
This should save a useless traversal of the [unordered_]map each time
we want to access an element.

6 years agofix MSG compatibility layer
Martin Quinson [Sun, 23 Jul 2017 19:28:42 +0000 (21:28 +0200)]
fix MSG compatibility layer

6 years agocodacy
Martin Quinson [Sat, 22 Jul 2017 20:26:07 +0000 (22:26 +0200)]
codacy

6 years agouniform allocation is better
Frederic Suter [Fri, 21 Jul 2017 17:48:30 +0000 (19:48 +0200)]
uniform allocation is better

6 years agokill degomme's masochist troll ;)
Frederic Suter [Fri, 21 Jul 2017 17:45:44 +0000 (19:45 +0200)]
kill degomme's masochist troll ;)

6 years agokill another dict in the C++ world
Frederic Suter [Fri, 21 Jul 2017 17:28:15 +0000 (19:28 +0200)]
kill another dict in the C++ world

6 years agoMerge branch 'master' of git+ssh://scm.gforge.inria.fr//gitroot/simgrid/simgrid
Frederic Suter [Fri, 21 Jul 2017 12:57:35 +0000 (14:57 +0200)]
Merge branch 'master' of git+ssh://scm.gforge.inria.fr//gitroot/simgrid/simgrid

6 years agosimplify process/actor restart
Frederic Suter [Fri, 21 Jul 2017 12:57:16 +0000 (14:57 +0200)]
simplify process/actor restart

6 years agotry to silence a valgrind leak
Augustin Degomme [Fri, 21 Jul 2017 12:44:32 +0000 (14:44 +0200)]
try to silence a valgrind leak

6 years agoMerge branch 'master' of git+ssh://scm.gforge.inria.fr//gitroot/simgrid/simgrid
Frederic Suter [Fri, 21 Jul 2017 12:16:56 +0000 (14:16 +0200)]
Merge branch 'master' of git+ssh://scm.gforge.inria.fr//gitroot/simgrid/simgrid

6 years agosimcall_mutex_unlock is back but keep the simplification of another
Frederic Suter [Fri, 21 Jul 2017 12:16:04 +0000 (14:16 +0200)]
simcall_mutex_unlock is back but keep the simplification of another
simcall

6 years agofix make dist for MC builds
Martin Quinson [Fri, 21 Jul 2017 12:08:27 +0000 (14:08 +0200)]
fix make dist for MC builds

6 years agocosmetics in error message
Martin Quinson [Thu, 20 Jul 2017 23:35:44 +0000 (01:35 +0200)]
cosmetics in error message

6 years agosonar
Martin Quinson [Thu, 20 Jul 2017 23:17:07 +0000 (01:17 +0200)]
sonar

6 years agoRevert "kill one simcall, simplify another"
Frederic Suter [Fri, 21 Jul 2017 12:05:57 +0000 (14:05 +0200)]
Revert "kill one simcall, simplify another"

This reverts commit 8639295f6bedeb3c9e1a60a1056925c4fe892fa4.

6 years agoplease sonar (initialization lists) + reindent
Frederic Suter [Fri, 21 Jul 2017 11:25:46 +0000 (13:25 +0200)]
please sonar (initialization lists) + reindent

6 years agofix PJ_value class and its methods
Takishipp [Fri, 21 Jul 2017 10:38:05 +0000 (12:38 +0200)]
fix PJ_value class and its methods

6 years agofix conflict
Takishipp [Fri, 21 Jul 2017 10:34:32 +0000 (12:34 +0200)]
fix conflict

6 years agosimplify semaphores related simcalls
Frederic Suter [Fri, 21 Jul 2017 10:19:09 +0000 (12:19 +0200)]
simplify semaphores related simcalls

6 years agotiny change
Frederic Suter [Fri, 21 Jul 2017 10:05:58 +0000 (12:05 +0200)]
tiny change

6 years agomodernize two more simcalls
Frederic Suter [Fri, 21 Jul 2017 09:00:59 +0000 (11:00 +0200)]
modernize two more simcalls

6 years agogive s_val PJ_value as a constructor
Takishipp [Thu, 20 Jul 2017 14:46:51 +0000 (16:46 +0200)]
give s_val PJ_value as a constructor

6 years agoLooking for libelf (required by MC).
Arnaud Giersch [Thu, 20 Jul 2017 14:32:05 +0000 (16:32 +0200)]
Looking for libelf (required by MC).

6 years agoReturn what was apparently intended.
Arnaud Giersch [Thu, 20 Jul 2017 12:59:17 +0000 (14:59 +0200)]
Return what was apparently intended.

6 years agoPrefix is unsigned and can't be negative.
Arnaud Giersch [Thu, 20 Jul 2017 12:49:05 +0000 (14:49 +0200)]
Prefix is unsigned and can't be negative.

6 years agoMerge "if" statements.
Arnaud Giersch [Thu, 20 Jul 2017 09:14:52 +0000 (11:14 +0200)]
Merge "if" statements.

6 years agokill one simcall, simplify another
Frederic Suter [Thu, 20 Jul 2017 14:12:56 +0000 (16:12 +0200)]
kill one simcall, simplify another

6 years agocleanups
Frederic Suter [Thu, 20 Jul 2017 14:11:42 +0000 (16:11 +0200)]
cleanups

6 years agosimplifications
Frederic Suter [Thu, 20 Jul 2017 10:05:58 +0000 (12:05 +0200)]
simplifications

6 years agoMerge branch 'master' of git+ssh://scm.gforge.inria.fr//gitroot/simgrid/simgrid
Frederic Suter [Thu, 20 Jul 2017 09:59:42 +0000 (11:59 +0200)]
Merge branch 'master' of git+ssh://scm.gforge.inria.fr//gitroot/simgrid/simgrid

6 years agoRevert "Give back control to maestro as late as possible."
Arnaud Giersch [Thu, 20 Jul 2017 09:56:07 +0000 (11:56 +0200)]
Revert "Give back control to maestro as late as possible."

This reverts commit c7829c256a041aae9a60454263de30188b3f2fcc.

Tests are failing on Travis, and build faild on Appveyor :-(

6 years agoremove unused variable
Frederic Suter [Thu, 20 Jul 2017 09:13:44 +0000 (11:13 +0200)]
remove unused variable

6 years agoGive back control to maestro as late as possible.
Arnaud Giersch [Wed, 19 Jul 2017 20:31:33 +0000 (22:31 +0200)]
Give back control to maestro as late as possible.

The test allred from smpi-mpich3-coll-thread (with thread contexts factory and
mmap privatization) occasionally segfaults on thread exit:

teshsuite/smpi/mpich3-test/coll$ ../../../../smpi_script/bin/smpirun \
    -platform ../../../../examples/platforms/small_platform_with_routers.xml \
    -hostfile ../../hostfile_coll --cfg=smpi/running-power:1e9 \
    --cfg=smpi/async-small-thresh:65536 --cfg=contexts/factory:thread \
    --cfg=smpi/privatization:1 -np 4 ./allred
[...]
 No Errors
Segmentation fault.

Backtrace:
#0  do_lookup_x (...) at dl-lookup.c:98
#1  0x00007ffff7de596d in _dl_lookup_symbol_x (...) at dl-lookup.c:737
#2  0x00007ffff6a4da75 in do_dlsym (...) at dl-libc.c:97
#3  0x00007ffff7deaaa4 in _dl_catch_error (...) at dl-error.c:187
#4  0x00007ffff6a4dabf in dlerror_run (...) at dl-libc.c:46
#5  0x00007ffff6a4db78 in __GI___libc_dlsym (...) at dl-libc.c:210
#6  0x00007ffff730dfbe in pthread_cancel_init ()
    at ../nptl/sysdeps/pthread/unwind-forcedunwind.c:55
#7  0x00007ffff730e16c in _Unwind_ForcedUnwind (...)
    1at ../nptl/sysdeps/pthread/unwind-forcedunwind.c:129
#8  0x00007ffff730c5d0 in __GI___pthread_unwind (...>) at unwind.c:129
#9  0x00007ffff7307365 in __do_cancel () at pthreadP.h:280
#10 __pthread_exit (...) at pthread_exit.c:29
#11 0x00007ffff7c12df9 in xbt_os_thread_exit (...)
    at [...]/src/xbt/xbt_os_thread.c:251
#12 0x00007ffff7c938ab in stop (...)
    at [...]/src/kernel/context/ContextThread.cpp:205
#13 simgrid::kernel::context::ThreadContext::wrapper(void*) (...)
    at [...]/src/kernel/context/ContextThread.cpp:159
#14 0x00007ffff7c16131 in wrapper_start_routine (...)
    at [...]/src/xbt/xbt_os_thread.c:154
#15 0x00007ffff7306064 in start_thread (...) at pthread_create.c:309
#16 0x00007ffff6a1862d in clone ()
    at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Even if I don't fully understand what's going on, I suspect that a segment
switch is occurring while the thread is running some cleanup handlers.  Thus the
proposed fix tries to delay the call to xbt_os_sem_release as late as possible.

6 years agoOption was removed by commit 16ba43eb3e96c1e430734f866a4316e7e8a229ae.
Arnaud Giersch [Wed, 19 Jul 2017 14:15:51 +0000 (16:15 +0200)]
Option was removed by commit 16ba43eb3e96c1e430734f866a4316e7e8a229ae.

6 years agoRun smpi tracing tests in their own directories.
Arnaud Giersch [Wed, 19 Jul 2017 09:56:22 +0000 (11:56 +0200)]
Run smpi tracing tests in their own directories.

Avoids failures when tests are run in parallel.