Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
simgrid.git
5 years agochanging the way the tracing category is passed to ExecImpl
Frederic Suter [Wed, 25 Jul 2018 14:00:38 +0000 (16:00 +0200)]
changing the way the tracing category is passed to ExecImpl

the former version implied to set the category AFTER the start()
because the ExecImpl had to exist. It was against the idea of "do all
the sets and then starts". Now, the category is set at user level and
then passed to the Impl within the start simcall. Setting a category
after the start is now forbidden.

5 years agoreduce test size
Augustin Degomme [Tue, 24 Jul 2018 19:55:51 +0000 (21:55 +0200)]
reduce test size

5 years agoRework SMPI initialization to handle argc and argv earlier than in MPI_Init when...
Augustin Degomme [Tue, 24 Jul 2018 19:55:19 +0000 (21:55 +0200)]
Rework SMPI initialization to handle argc and argv earlier than in MPI_Init when possible.
Add support for MPI_Init(NULL,NULL).
Might break MC for now.

5 years agofix the (unoticed) mess I made
Frederic Suter [Tue, 24 Jul 2018 11:15:04 +0000 (13:15 +0200)]
fix the (unoticed) mess I made

5 years agoplease clang
Frederic Suter [Sat, 21 Jul 2018 15:19:34 +0000 (17:19 +0200)]
please clang

5 years agoMerge branch 'master' of git+ssh://scm.gforge.inria.fr//gitroot/simgrid/simgrid
Frederic Suter [Sat, 21 Jul 2018 15:05:41 +0000 (17:05 +0200)]
Merge branch 'master' of git+ssh://scm.gforge.inria.fr//gitroot/simgrid/simgrid

5 years agoremove direct call to simcall
Frederic Suter [Sat, 21 Jul 2018 15:03:49 +0000 (17:03 +0200)]
remove direct call to simcall
modify order in replay example
set the tracing category breaks examples/smpi/tracing but do not seem
to be needed so comment it for now. Further simplifications in tracing
may help to understand and/or fix.

5 years agodo not use simcall_execution_start directly
Frederic Suter [Sat, 21 Jul 2018 15:02:33 +0000 (17:02 +0200)]
do not use simcall_execution_start directly

5 years agoallow to set a tracing category for an Exec
Frederic Suter [Sat, 21 Jul 2018 13:25:17 +0000 (15:25 +0200)]
allow to set a tracing category for an Exec

5 years agostringify tracing category
Frederic Suter [Sat, 21 Jul 2018 12:34:27 +0000 (14:34 +0200)]
stringify tracing category

5 years ago[KERNEL] struct -> class to match it's declaration
Christian Heinrich [Fri, 20 Jul 2018 21:20:25 +0000 (23:20 +0200)]
[KERNEL] struct -> class to match it's declaration

This was previously declared as a class, so just
do the same here.

5 years agoboolification
Frederic Suter [Fri, 20 Jul 2018 19:58:42 +0000 (21:58 +0200)]
boolification

5 years agoallow to name an Exec
Frederic Suter [Fri, 20 Jul 2018 18:34:49 +0000 (20:34 +0200)]
allow to name an Exec

5 years agofix comment in example
Frederic Suter [Fri, 20 Jul 2018 18:29:57 +0000 (20:29 +0200)]
fix comment in example

5 years agoa bit more merging
Frederic Suter [Fri, 20 Jul 2018 17:36:22 +0000 (19:36 +0200)]
a bit more merging

5 years agowhen an activity is complete, nothing remains...
Frederic Suter [Fri, 20 Jul 2018 12:29:05 +0000 (14:29 +0200)]
when an activity is complete, nothing remains...

5 years agoMerge branch 'master' of git+ssh://scm.gforge.inria.fr//gitroot/simgrid/simgrid
Frederic Suter [Fri, 20 Jul 2018 11:51:11 +0000 (13:51 +0200)]
Merge branch 'master' of git+ssh://scm.gforge.inria.fr//gitroot/simgrid/simgrid

5 years agouse our new toys
Frederic Suter [Fri, 20 Jul 2018 11:48:14 +0000 (13:48 +0200)]
use our new toys

5 years agoCall ExecImpl::on_completion() before starting to destroy it
Martin Quinson [Fri, 20 Jul 2018 11:16:42 +0000 (13:16 +0200)]
Call ExecImpl::on_completion() before starting to destroy it

5 years ago[noci] fix #111
Frederic Suter [Fri, 20 Jul 2018 07:36:20 +0000 (09:36 +0200)]
[noci] fix #111

5 years ago[S4U] Cosmetics
Christian Heinrich [Thu, 19 Jul 2018 09:25:56 +0000 (11:25 +0200)]
[S4U] Cosmetics

5 years ago[KERNEL] Check if surf_action_ is nullptr
Christian Heinrich [Thu, 19 Jul 2018 12:17:08 +0000 (14:17 +0200)]
[KERNEL] Check if surf_action_ is nullptr

This is also done in the other methods, so we
should do that here as well.

5 years agoDisable mpich3 tests with valgrind on jenkins.
Arnaud Giersch [Thu, 19 Jul 2018 12:16:54 +0000 (14:16 +0200)]
Disable mpich3 tests with valgrind on jenkins.

They're taking too long (1h 47min and still counting...).

5 years agoEnable valgrind on mpich3 tests.
Arnaud Giersch [Thu, 19 Jul 2018 08:56:27 +0000 (10:56 +0200)]
Enable valgrind on mpich3 tests.

5 years agoAdd option -wrapper to mpich3 runtests.
Arnaud Giersch [Thu, 19 Jul 2018 08:54:02 +0000 (10:54 +0200)]
Add option -wrapper to mpich3 runtests.

5 years agoAllow other libraries to react to the --help flag, too
Martin Quinson [Wed, 18 Jul 2018 23:08:10 +0000 (01:08 +0200)]
Allow other libraries to react to the --help flag, too

When finding --help on the command line, simgrid usually stops right
after displaying its help message but some libraries using SimGrid
want to display their own help message before the end of the world.

Now, they can use the little sg_config_continue_after_help() function
to have SimGrid not stopping after dealing with the --help flag.

(fix #93)

5 years agothis is a boolean
Martin Quinson [Wed, 18 Jul 2018 22:54:05 +0000 (00:54 +0200)]
this is a boolean

5 years agosnake_case simix::contextes
Martin Quinson [Wed, 18 Jul 2018 20:47:08 +0000 (22:47 +0200)]
snake_case simix::contextes

5 years agocut some useless includes
Martin Quinson [Wed, 18 Jul 2018 20:40:44 +0000 (22:40 +0200)]
cut some useless includes

5 years agos/xbt_os_get_numcores()/std::thread::hardware_concurrency()/
Martin Quinson [Wed, 18 Jul 2018 20:32:44 +0000 (22:32 +0200)]
s/xbt_os_get_numcores()/std::thread::hardware_concurrency()/

5 years agoget rid of xbt_os_thread_yield() using C++11
Martin Quinson [Wed, 18 Jul 2018 20:28:45 +0000 (22:28 +0200)]
get rid of xbt_os_thread_yield() using C++11

5 years agoRemove portability wrapper to condition variables
Martin Quinson [Wed, 18 Jul 2018 20:25:14 +0000 (22:25 +0200)]
Remove portability wrapper to condition variables

5 years agoreimplement parmap with C++11 mutex and cond
Martin Quinson [Wed, 18 Jul 2018 20:19:37 +0000 (22:19 +0200)]
reimplement parmap with C++11 mutex and cond

5 years agouse std::mutex instead of xbt_os_mutex_t in simix
Martin Quinson [Wed, 18 Jul 2018 20:03:26 +0000 (22:03 +0200)]
use std::mutex instead of xbt_os_mutex_t in simix

5 years agofix makedist
Martin Quinson [Wed, 18 Jul 2018 19:34:02 +0000 (21:34 +0200)]
fix makedist

5 years agowe don't need thread_specific anymore
Martin Quinson [Wed, 18 Jul 2018 19:21:33 +0000 (21:21 +0200)]
we don't need thread_specific anymore

5 years agoreimplement the parallel contextes with C++11 w/o xbt_os_thread_set_specific()
Martin Quinson [Wed, 18 Jul 2018 19:08:40 +0000 (21:08 +0200)]
reimplement the parallel contextes with C++11 w/o xbt_os_thread_set_specific()

5 years agothread_local is part of C++11, nowadays
Martin Quinson [Wed, 18 Jul 2018 18:46:28 +0000 (20:46 +0200)]
thread_local is part of C++11, nowadays

5 years ago[SMPI/LB] Add XBT_PUBLIC to load_balancer.h declarations
Christian Heinrich [Wed, 16 May 2018 13:23:15 +0000 (15:23 +0200)]
[SMPI/LB] Add XBT_PUBLIC to load_balancer.h declarations

5 years ago[ENERGY] Don't halt, just emit warning in special case
Christian Heinrich [Tue, 17 Jul 2018 08:29:21 +0000 (10:29 +0200)]
[ENERGY] Don't halt, just emit warning in special case

Even though 'AllCores' and 'OneCore' are the same in the
special case of #cores == 1, just go with the OneCore value.

This makes it much simpler to play around with the platform
without having to change the power profile each time.

5 years ago[XBT] Config::get_name -> Make 'this' const
Christian Heinrich [Wed, 18 Jul 2018 10:51:03 +0000 (12:51 +0200)]
[XBT] Config::get_name -> Make 'this' const

This is not the return value that is const'ed,
but just shows that this method does not change the object.

5 years ago[KERNEL] Fix grammar in a comment
Christian Heinrich [Wed, 18 Jul 2018 09:07:41 +0000 (11:07 +0200)]
[KERNEL] Fix grammar in a comment

5 years ago[HostLoad] Add total idle time
Christian Heinrich [Tue, 17 Jul 2018 11:56:33 +0000 (13:56 +0200)]
[HostLoad] Add total idle time

The 'normal' idle time can (and does) get reset, but
it is interesting to know how much a host idled until
now in total.

5 years ago[SMPI/REPLAY] Fix issues with daemons
Christian Heinrich [Tue, 17 Jul 2018 11:44:52 +0000 (13:44 +0200)]
[SMPI/REPLAY] Fix issues with daemons

When daemons are running, process-id's of the ranks don't
start at 1. Here, we insert the pid's of the actual actors.

5 years agoBe less specific in valgrind suppression.
Arnaud Giersch [Wed, 18 Jul 2018 11:47:14 +0000 (13:47 +0200)]
Be less specific in valgrind suppression.

5 years agoSimplify memory handling.
Arnaud Giersch [Wed, 18 Jul 2018 09:45:44 +0000 (11:45 +0200)]
Simplify memory handling.

5 years agoMemory leak.
Arnaud Giersch [Wed, 18 Jul 2018 09:21:17 +0000 (11:21 +0200)]
Memory leak.

5 years agosnake_case s4u API in the example documentation
Martin Quinson [Wed, 18 Jul 2018 06:09:00 +0000 (08:09 +0200)]
snake_case s4u API in the example documentation

5 years agodoxygen: rework the s4u header
Martin Quinson [Tue, 17 Jul 2018 23:58:56 +0000 (01:58 +0200)]
doxygen: rework the s4u header

5 years agodoxygen: uniformity in command markers (@ vs. \)
Martin Quinson [Tue, 17 Jul 2018 23:51:00 +0000 (01:51 +0200)]
doxygen: uniformity in command markers (@ vs. \)

5 years agodoxygen: better handling of deprecated symbols
Martin Quinson [Tue, 17 Jul 2018 22:26:36 +0000 (00:26 +0200)]
doxygen: better handling of deprecated symbols

5 years agomy_valgrind.pl: pass keep-temps to smpirun so that valgrind can analyse the binaries...
Martin Quinson [Tue, 17 Jul 2018 21:36:03 +0000 (23:36 +0200)]
my_valgrind.pl: pass keep-temps to smpirun so that valgrind can analyse the binaries on memleaks

5 years agocmake: stop patching tesh in FindValgrind, that's too ugly
Martin Quinson [Tue, 17 Jul 2018 21:18:13 +0000 (23:18 +0200)]
cmake: stop patching tesh in FindValgrind, that's too ugly

5 years agosonar: unused parameter
Martin Quinson [Tue, 17 Jul 2018 21:11:27 +0000 (23:11 +0200)]
sonar: unused parameter

5 years agoinstall smpimain in /usr/lib/simgrid
Martin Quinson [Tue, 17 Jul 2018 09:03:14 +0000 (11:03 +0200)]
install smpimain in /usr/lib/simgrid

It's not meant to be used directly by the user

5 years agoCOPYING: align with the package content
Martin Quinson [Mon, 16 Jul 2018 21:24:03 +0000 (23:24 +0200)]
COPYING: align with the package content

5 years agoCosmetic indentation.
Arnaud Giersch [Tue, 17 Jul 2018 12:25:33 +0000 (14:25 +0200)]
Cosmetic indentation.

5 years agoAdd dependencies.
Arnaud Giersch [Tue, 17 Jul 2018 12:20:43 +0000 (14:20 +0200)]
Add dependencies.

5 years agoFiles were regenerated with maintainer_mode on.
Arnaud Giersch [Tue, 17 Jul 2018 12:19:31 +0000 (14:19 +0200)]
Files were regenerated with maintainer_mode on.

5 years agoinitialize value to finalize (-1)
Frederic Suter [Tue, 17 Jul 2018 08:17:45 +0000 (10:17 +0200)]
initialize value to finalize (-1)

5 years agoMerge branch 'master' of git+ssh://scm.gforge.inria.fr//gitroot/simgrid/simgrid
Frederic Suter [Tue, 17 Jul 2018 07:39:09 +0000 (09:39 +0200)]
Merge branch 'master' of git+ssh://scm.gforge.inria.fr//gitroot/simgrid/simgrid

5 years agoMSG to S4U conversion.
Frederic Suter [Mon, 16 Jul 2018 14:53:18 +0000 (16:53 +0200)]
MSG to S4U conversion.
This example is currently broken, hence not tested

5 years ago[ENERGY] Updated some debug messages
Christian Heinrich [Mon, 16 Jul 2018 08:54:26 +0000 (10:54 +0200)]
[ENERGY] Updated some debug messages

5 years ago[SMPI/LB] Remove smpi/plugin/lb/migration-frequency option
Christian Heinrich [Mon, 16 Jul 2018 14:21:17 +0000 (16:21 +0200)]
[SMPI/LB] Remove smpi/plugin/lb/migration-frequency option

This option was erroneously added in 1caa54629d706bd2b086297bef7e61295755b762,
even though the load balancing is not yet published.

This option was moved to the right location in the LB code and will
not be required here.

5 years agoMerge branch 'master' of git+ssh://scm.gforge.inria.fr//gitroot/simgrid/simgrid
Frederic Suter [Mon, 16 Jul 2018 13:43:21 +0000 (15:43 +0200)]
Merge branch 'master' of git+ssh://scm.gforge.inria.fr//gitroot/simgrid/simgrid

5 years agoif the deque is empty, remove it from the map
Frederic Suter [Mon, 16 Jul 2018 13:30:45 +0000 (15:30 +0200)]
if the deque is empty, remove it from the map

5 years agoVERSION_GREATER_EQUAL is not available with older cmake.
Arnaud Giersch [Mon, 16 Jul 2018 13:22:59 +0000 (15:22 +0200)]
VERSION_GREATER_EQUAL is not available with older cmake.

5 years agoTry to fix MC with recent GNU ld (>= 2.30).
Arnaud Giersch [Mon, 16 Jul 2018 13:15:43 +0000 (15:15 +0200)]
Try to fix MC with recent GNU ld (>= 2.30).

It's failing with:
./src/mc/sosp/mc_checkpoint.cpp:205: [root/CRITICAL] Multiple read only segments for [...], not supported.

5 years agohide tracing from MSG
Frederic Suter [Mon, 16 Jul 2018 10:21:38 +0000 (12:21 +0200)]
hide tracing from MSG

5 years agoRestore C linkage for simcall_process_create.
Arnaud Giersch [Mon, 16 Jul 2018 09:54:32 +0000 (11:54 +0200)]
Restore C linkage for simcall_process_create.

5 years agoRemove duplicate entry.
Arnaud Giersch [Sun, 15 Jul 2018 21:16:28 +0000 (23:16 +0200)]
Remove duplicate entry.

5 years agoChange order of exceptions to please pylint (codacy).
Arnaud Giersch [Sat, 14 Jul 2018 19:59:28 +0000 (21:59 +0200)]
Change order of exceptions to please pylint (codacy).

5 years agoFix memory leak of variable job on throw (cppcheck).
Arnaud Giersch [Fri, 13 Jul 2018 17:07:29 +0000 (19:07 +0200)]
Fix memory leak of variable job on throw (cppcheck).

5 years agomerge more tests in less tesh files
Frederic Suter [Sun, 15 Jul 2018 21:17:39 +0000 (23:17 +0200)]
merge more tests in less tesh files

5 years agoImplement a config::Flag::get_name()
Martin Quinson [Sun, 15 Jul 2018 13:44:45 +0000 (15:44 +0200)]
Implement a config::Flag::get_name()

5 years agorework the option flags of the dvfs plugin
Martin Quinson [Sun, 15 Jul 2018 12:30:19 +0000 (14:30 +0200)]
rework the option flags of the dvfs plugin

5 years agoconfig::Flag: add the version with everything: callback, possible_values, description...
Martin Quinson [Sun, 15 Jul 2018 12:29:36 +0000 (14:29 +0200)]
config::Flag: add the version with everything: callback, possible_values, description, everything

5 years agoimprove an error message
Martin Quinson [Sat, 14 Jul 2018 20:46:36 +0000 (22:46 +0200)]
improve an error message

5 years ago[DVFS] Remove class HostDvfs as it serves no purpose
Christian Heinrich [Fri, 13 Jul 2018 12:03:15 +0000 (14:03 +0200)]
[DVFS] Remove class HostDvfs as it serves no purpose

5 years ago[DVFS] Rename config option from sampling_rate to sampling-rate
Christian Heinrich [Fri, 13 Jul 2018 12:01:14 +0000 (14:01 +0200)]
[DVFS] Rename config option from sampling_rate to sampling-rate

5 years agofix the C inclusion of simix.h, once again
Martin Quinson [Sat, 14 Jul 2018 17:50:18 +0000 (19:50 +0200)]
fix the C inclusion of simix.h, once again

5 years agoSMPI does not need to have its own userdata pointer anymore
Martin Quinson [Sat, 14 Jul 2018 17:39:39 +0000 (19:39 +0200)]
SMPI does not need to have its own userdata pointer anymore

Before, the field of actors were used to store the SMPI data directly,
but now it's free.

With a bit of luck, this change will help StarPU
which fails since a few days, possibly because it tries to get the
userdata from an actor using smpi_process_get_userdata while that
actor is not from SMPI (I'm not sure, that's just a wild guess).

If my guess is right, retriving the userdata from the s4u::Actor will
certainly help. If it's wrong, the change shouldn't harm anything and
it will improve by a tiny bit our memory footprint.

5 years agostringify xbt::config and plugins
Martin Quinson [Sat, 14 Jul 2018 13:47:55 +0000 (15:47 +0200)]
stringify xbt::config and plugins

5 years agoProperly stringify, snake_case and cleanups in k::ExecImpl
Martin Quinson [Sat, 14 Jul 2018 10:42:05 +0000 (12:42 +0200)]
Properly stringify, snake_case and cleanups in k::ExecImpl

5 years agostart to reduce the number of files
Frederic Suter [Sat, 14 Jul 2018 09:44:57 +0000 (11:44 +0200)]
start to reduce the number of files
 - use platfdir
 - generate/delete files with tesh
 - group test together
just two for now, but let's see if makedist is happy on CI before
going further

5 years agoRevert "stringify, snake_case and cleanups in k::ExecImpl"
Martin Quinson [Fri, 13 Jul 2018 21:48:30 +0000 (23:48 +0200)]
Revert "stringify, snake_case and cleanups in k::ExecImpl"

This reverts commit 38e728f7b3bcd80fc948d911a3eaa0ec2062ab69.

5 years agofix MC builds in a ugly way, but I'm sick of it for tonight
Martin Quinson [Fri, 13 Jul 2018 21:21:23 +0000 (23:21 +0200)]
fix MC builds in a ugly way, but I'm sick of it for tonight

5 years agostringify, snake_case and cleanups in k::ExecImpl
Martin Quinson [Fri, 13 Jul 2018 21:02:21 +0000 (23:02 +0200)]
stringify, snake_case and cleanups in k::ExecImpl

5 years agofuuuuux the build, sorry
Martin Quinson [Fri, 13 Jul 2018 20:30:52 +0000 (22:30 +0200)]
fuuuuux the build, sorry

5 years agostringify s4u::VirtualMachine, so all s4u is stringified
Martin Quinson [Fri, 13 Jul 2018 20:16:46 +0000 (22:16 +0200)]
stringify s4u::VirtualMachine, so all s4u is stringified

5 years agoMailboxImpl: snake_case and follow our coding standards
Martin Quinson [Fri, 13 Jul 2018 20:07:15 +0000 (22:07 +0200)]
MailboxImpl: snake_case and follow our coding standards

5 years agostringify s4u::Mailbox and k::a::MailboxImpl
Martin Quinson [Fri, 13 Jul 2018 20:03:23 +0000 (22:03 +0200)]
stringify s4u::Mailbox and k::a::MailboxImpl

5 years agostringify s4u::Link
Martin Quinson [Fri, 13 Jul 2018 19:58:18 +0000 (21:58 +0200)]
stringify s4u::Link

5 years agostringify s4u::Host
Martin Quinson [Fri, 13 Jul 2018 19:54:53 +0000 (21:54 +0200)]
stringify s4u::Host

5 years agoignore more cruft
Martin Quinson [Fri, 13 Jul 2018 19:42:50 +0000 (21:42 +0200)]
ignore more cruft

5 years agodeprecate some of simix.h C API
Martin Quinson [Fri, 13 Jul 2018 19:41:13 +0000 (21:41 +0200)]
deprecate some of simix.h C API

5 years agoC API: rename sg_engine_*() into simgrid_*()
Martin Quinson [Fri, 13 Jul 2018 18:54:00 +0000 (20:54 +0200)]
C API: rename sg_engine_*() into simgrid_*()

5 years agostop parsing the command line when encountering '--'
Martin Quinson [Fri, 13 Jul 2018 18:20:07 +0000 (20:20 +0200)]
stop parsing the command line when encountering '--'

And also, add a test for this feature (fix #287)

5 years agotesh: better error reporting in one specific failure case
Martin Quinson [Fri, 13 Jul 2018 18:11:35 +0000 (20:11 +0200)]
tesh: better error reporting in one specific failure case

5 years agonew C function: simgrid_init
Martin Quinson [Fri, 13 Jul 2018 16:56:25 +0000 (18:56 +0200)]
new C function: simgrid_init