Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
simgrid.git
2 years agoMake MSG fade away (part 2)
Frederic Suter [Tue, 23 Jan 2018 14:14:54 +0000 (15:14 +0100)]
Make MSG fade away (part 2)

move more function to sg_host_* and add the MSG macros
fix dumb 32-bit tests too

2 years agoMaking MSG fade away (part 1)
Frederic Suter [Tue, 23 Jan 2018 11:24:37 +0000 (12:24 +0100)]
Making MSG fade away (part 1)

most of the MSG_host functions already have a sg_host equivalent.
Don't duplicate the code or multiply the layer and use #define in
include/simgrid/host.h to guarantee backward compatibility

2 years agoplease clang
Frederic Suter [Tue, 23 Jan 2018 09:56:29 +0000 (10:56 +0100)]
please clang

2 years agomessing around MSG
Frederic Suter [Tue, 23 Jan 2018 08:45:19 +0000 (09:45 +0100)]
messing around MSG

2 years agoget rid of vm->isMigrating()
Frederic Suter [Mon, 22 Jan 2018 10:39:38 +0000 (11:39 +0100)]
get rid of vm->isMigrating()

There already was an equivalent in the live migration plugin. This
method was only used internally to detect if a VM was destroyed while
it was migrating. This is now useless.

2 years agoClose #105
Frederic Suter [Mon, 22 Jan 2018 10:09:30 +0000 (11:09 +0100)]
Close #105

When a VM is shutdown, a signal is triggered which is captured in the VM
live migration plugin. If the VM was currently migrating, it kills the
RX and TX actors and the actor that was used to call sg_vm_migrate in
an asynchronous way. Smart pointers on these three actors are stored
in a new extension of the VM which is created when started a migration.

A test for this feature has been added in
teshsuite/s4u/cloud-interrupt-migration which corresponds to the
scenario described in the issue

2 years agoKeep deprecated functions for three versions as usual.
Arnaud Giersch [Wed, 17 Jan 2018 17:08:38 +0000 (18:08 +0100)]
Keep deprecated functions for three versions as usual.

2 years agoDefine XBT_ATTRIB_DEPRECATED_v322 for next deprecated features.
Arnaud Giersch [Wed, 17 Jan 2018 16:42:23 +0000 (17:42 +0100)]
Define XBT_ATTRIB_DEPRECATED_v322 for next deprecated features.

2 years ago[TESH] Use platfdir and bindir for coll-alltoall test
Christian Heinrich [Wed, 17 Jan 2018 00:39:17 +0000 (01:39 +0100)]
[TESH] Use platfdir and bindir for coll-alltoall test

2 years ago[CMAKE] Copy also hostfile_coll for smpi tests
Christian Heinrich [Wed, 17 Jan 2018 00:38:50 +0000 (01:38 +0100)]
[CMAKE] Copy also hostfile_coll for smpi tests

2 years ago[SMPI] Added 2 FIXME's for PMPI_Is_thread_main()
Christian Heinrich [Tue, 16 Jan 2018 18:02:04 +0000 (19:02 +0100)]
[SMPI] Added 2 FIXME's for PMPI_Is_thread_main()

2 years ago[SMPI] Change comment in smpi_global.cpp
Christian Heinrich [Mon, 15 Jan 2018 22:49:35 +0000 (23:49 +0100)]
[SMPI] Change comment in smpi_global.cpp

2 years ago[SIMIX] Fix comment grammar
Christian Heinrich [Tue, 16 Jan 2018 12:11:55 +0000 (13:11 +0100)]
[SIMIX] Fix comment grammar

2 years agoimprove doc of how to release
Martin Quinson [Wed, 17 Jan 2018 11:19:55 +0000 (12:19 +0100)]
improve doc of how to release

2 years agofix sg_host_get_current_consumption() to do the same as C++
Martin Quinson [Wed, 17 Jan 2018 11:19:30 +0000 (12:19 +0100)]
fix sg_host_get_current_consumption() to do the same as C++

2 years ago[SIMIX] Fix the ActorImpl signal
Christian Heinrich [Fri, 12 Jan 2018 13:48:11 +0000 (14:48 +0100)]
[SIMIX] Fix the ActorImpl signal

The signal was fired too early, so I moved it to
another position.

2 years ago[TESH] Update pt2pt-dsend.tesh file with bindir, platfdir, ...
Christian Heinrich [Mon, 15 Jan 2018 14:15:21 +0000 (15:15 +0100)]
[TESH] Update pt2pt-dsend.tesh file with bindir, platfdir, ...

2 years ago[TESH] Fix smpi-trace tesh file
Christian Heinrich [Mon, 15 Jan 2018 14:14:39 +0000 (15:14 +0100)]
[TESH] Fix smpi-trace tesh file

This just fixes the ./smpi_trace path: It should be
using the  variable as well.

2 years ago[SMPI] Move even more redundant code to helper function
Christian Heinrich [Mon, 15 Jan 2018 14:06:07 +0000 (15:06 +0100)]
[SMPI] Move even more redundant code to helper function

2 years ago[SMPI] Added FIXME comment...
Christian Heinrich [Mon, 15 Jan 2018 14:05:17 +0000 (15:05 +0100)]
[SMPI] Added FIXME comment...

2 years ago[SMPI] Pass the request as pointer and fix tracing
Christian Heinrich [Mon, 15 Jan 2018 13:58:12 +0000 (14:58 +0100)]
[SMPI] Pass the request as pointer and fix tracing

2 years ago[SMPI] PMPI_Waitany/all: Move redundant code to helper function
Christian Heinrich [Mon, 15 Jan 2018 13:43:42 +0000 (14:43 +0100)]
[SMPI] PMPI_Waitany/all: Move redundant code to helper function

2 years ago[SMPI] Remove local variables
Christian Heinrich [Mon, 15 Jan 2018 13:32:49 +0000 (14:32 +0100)]
[SMPI] Remove local variables

2 years ago[SMPI] Remove now unused datastructure in PMPI_Waitall
Christian Heinrich [Mon, 15 Jan 2018 13:13:30 +0000 (14:13 +0100)]
[SMPI] Remove now unused datastructure in PMPI_Waitall

This is the same as two commits ago, just for another function.

2 years ago[SMPI] Don't use local structure in PMPI_Waitall
Christian Heinrich [Mon, 15 Jan 2018 13:11:49 +0000 (14:11 +0100)]
[SMPI] Don't use local structure in PMPI_Waitall

This is the same thing as two commits ago, but for
another function.

2 years ago[SMPI] Remove now unused datastructure in PMPI_Waitany
Christian Heinrich [Mon, 15 Jan 2018 12:49:00 +0000 (13:49 +0100)]
[SMPI] Remove now unused datastructure in PMPI_Waitany

The previous commit made changes that rendered the
structure savedvalstype unused. This commit
removes it completely.

2 years ago[SMPI] Don't use local structure in PMPI_Waitany
Christian Heinrich [Mon, 15 Jan 2018 12:47:45 +0000 (13:47 +0100)]
[SMPI] Don't use local structure in PMPI_Waitany

The datastructure savedvalstype serves no real purpose
and can be removed.

2 years ago[TESTS] Use platfdir, srcdir and bindir for more smpi tests
Christian Heinrich [Mon, 15 Jan 2018 12:10:53 +0000 (13:10 +0100)]
[TESTS] Use platfdir, srcdir and bindir for more smpi tests

2 years agoFix lua build.
Arnaud Giersch [Sat, 13 Jan 2018 09:50:05 +0000 (10:50 +0100)]
Fix lua build.

2 years agoUpdate .mailmap file.
Arnaud Giersch [Tue, 9 Jan 2018 15:01:51 +0000 (16:01 +0100)]
Update .mailmap file.

2 years ago[S4U] Add onCreation signal to the actor API
Christian Heinrich [Thu, 11 Jan 2018 15:19:07 +0000 (16:19 +0100)]
[S4U] Add onCreation signal to the actor API

2 years ago[TESH] Use platfdir variable in coll-alltoall/clusters.tesh
Christian Heinrich [Thu, 11 Jan 2018 23:22:42 +0000 (00:22 +0100)]
[TESH] Use platfdir variable in coll-alltoall/clusters.tesh

2 years ago[SMPI] Replace SIMIX_process_from_PID with S4U equivalent
Christian Heinrich [Thu, 11 Jan 2018 23:03:20 +0000 (00:03 +0100)]
[SMPI] Replace SIMIX_process_from_PID with S4U equivalent

2 years agouse enum class for cluster topology
Frederic Suter [Fri, 12 Jan 2018 09:18:55 +0000 (10:18 +0100)]
use enum class for cluster topology

2 years agoone more class in platform creation
Frederic Suter [Fri, 12 Jan 2018 09:05:37 +0000 (10:05 +0100)]
one more class in platform creation

2 years agokill dead code
Frederic Suter [Fri, 12 Jan 2018 08:29:46 +0000 (09:29 +0100)]
kill dead code

2 years agoplease Sonar
Frederic Suter [Fri, 12 Jan 2018 08:19:35 +0000 (09:19 +0100)]
please Sonar

2 years ago[SMPI] Spelling.
Christian Heinrich [Tue, 19 Dec 2017 14:28:45 +0000 (15:28 +0100)]
[SMPI] Spelling.

2 years ago[SMPI] Declare loop variable within the loop.
Christian Heinrich [Tue, 19 Dec 2017 14:20:28 +0000 (15:20 +0100)]
[SMPI] Declare loop variable within the loop.

Compilers will get this.

2 years ago[SMPI] Remove local variable sz in smpi_group.cpp
Christian Heinrich [Fri, 15 Dec 2017 13:47:55 +0000 (14:47 +0100)]
[SMPI] Remove local variable sz in smpi_group.cpp

We already tested before if size_ != group2->size() -- and since
sz = group2->size(), we have here size_ == sz. So just use size_.

2 years ago[SMPI] Rename variable bar -> barrier
Christian Heinrich [Thu, 7 Dec 2017 09:26:12 +0000 (10:26 +0100)]
[SMPI] Rename variable bar -> barrier

bar sounds more like foo/bar

2 years ago[SMPI] Use variable instead of 3 calls to the same function
Christian Heinrich [Thu, 7 Dec 2017 09:24:37 +0000 (10:24 +0100)]
[SMPI] Use variable instead of 3 calls to the same function

2 years ago[SMPI] Remove wrong comments on functions
Christian Heinrich [Wed, 6 Dec 2017 13:35:46 +0000 (14:35 +0100)]
[SMPI] Remove wrong comments on functions

2 years ago[SMPI] Fixed grammar in comment
Christian Heinrich [Wed, 6 Dec 2017 12:46:58 +0000 (13:46 +0100)]
[SMPI] Fixed grammar in comment

2 years ago[SMPI] Added doc block for smpi_backup_global_memory_segment()
Christian Heinrich [Wed, 6 Dec 2017 12:43:22 +0000 (13:43 +0100)]
[SMPI] Added doc block for smpi_backup_global_memory_segment()

2 years ago[SMPI] Use xbt_die() instead of printf & exit
Christian Heinrich [Wed, 6 Dec 2017 12:16:13 +0000 (13:16 +0100)]
[SMPI] Use xbt_die() instead of printf & exit

2 years ago[CMAKE] Copy the file hostfile_cluster to build-dir.
Christian Heinrich [Wed, 10 Jan 2018 16:08:24 +0000 (17:08 +0100)]
[CMAKE] Copy the file hostfile_cluster to build-dir.

2 years ago[CMAKE] Add srcdir, bindir and platfdir variables for more smpi tests
Christian Heinrich [Thu, 11 Jan 2018 21:19:47 +0000 (22:19 +0100)]
[CMAKE] Add srcdir, bindir and platfdir variables for more smpi tests

2 years ago[CMAKE/TESH] Make the platfdir variable available to all SMPI tests
Christian Heinrich [Wed, 10 Jan 2018 16:01:10 +0000 (17:01 +0100)]
[CMAKE/TESH] Make the platfdir variable available to all SMPI tests

This has been long overdue. Tests still need to be adapted
but platforms can be referred to as, e.g., /cluster.xml

2 years agorefactoring and cosmetics
Frederic Suter [Thu, 11 Jan 2018 14:48:46 +0000 (15:48 +0100)]
refactoring and cosmetics

2 years agouse class and enum class in Actor parsing
Frederic Suter [Thu, 11 Jan 2018 14:14:33 +0000 (15:14 +0100)]
use class and enum class in Actor parsing

2 years agouse enum class for trace connect kind
Frederic Suter [Thu, 11 Jan 2018 13:55:06 +0000 (14:55 +0100)]
use enum class for trace connect kind

2 years agoMessing up with VM
Frederic Suter [Thu, 11 Jan 2018 12:40:24 +0000 (13:40 +0100)]
Messing up with VM
 - move VM tracing to S4U
 - move last functions related to migration to the plugin
    - MSG_vm_create is now MSG_vm_create_migratable and tagged
      as DEPRECATED (will be removed in 3.21)
    - Assume that the live migration plugin is always loaded in JAVA
      (because all VMs are create with MSG_vm_create there)
 - add a proper destroy function to S4U VMs (shutdown first, then
   destroy)
 - pimpl_vm_ is now private (with getImpl() as accessor)
    - and use the user level interface as much as possible

Conclusion: The MSG_vm interface is now just a dummy wrapper on the
S4U interface and live migration is fully isolated in a plugin. Only
the is_migrating bool remains in VirtualMachineImpl, but is not (and
should not be) accessed or modified from outside the plugin. We can live
with that.

2 years agoconvert cloud-migration example
Frederic Suter [Thu, 11 Jan 2018 09:07:55 +0000 (10:07 +0100)]
convert cloud-migration example

2 years agofix 32bit
Frederic Suter [Wed, 10 Jan 2018 11:33:01 +0000 (12:33 +0100)]
fix 32bit

2 years agoconvert kademlia example to s4u
Frederic Suter [Wed, 10 Jan 2018 11:07:33 +0000 (12:07 +0100)]
convert kademlia example to s4u

2 years agoSlight cleanup after removal of xbt_dict_new().
Arnaud Giersch [Tue, 9 Jan 2018 12:40:49 +0000 (13:40 +0100)]
Slight cleanup after removal of xbt_dict_new().

2 years agoKill features marked deprecated until v3.19.
Arnaud Giersch [Tue, 9 Jan 2018 12:25:34 +0000 (13:25 +0100)]
Kill features marked deprecated until v3.19.

2 years agoFix xbt_log_extract_hierarchy.pl (remove check for XBT_LOG_CONNECT).
Arnaud Giersch [Tue, 9 Jan 2018 12:11:31 +0000 (13:11 +0100)]
Fix xbt_log_extract_hierarchy.pl (remove check for XBT_LOG_CONNECT).

2 years agoRemove XBT_LOG_CONNECT, it should be useless nowadays.
Arnaud Giersch [Tue, 9 Jan 2018 11:03:18 +0000 (12:03 +0100)]
Remove XBT_LOG_CONNECT, it should be useless nowadays.

2 years agoAlways enable contructor attribute on log categories.
Arnaud Giersch [Tue, 9 Jan 2018 10:50:44 +0000 (11:50 +0100)]
Always enable contructor attribute on log categories.

2 years agoRename constructor attribute.
Arnaud Giersch [Tue, 9 Jan 2018 10:44:18 +0000 (11:44 +0100)]
Rename constructor attribute.

Also drop support for very old compilers, and activate priorities on Mac too
(hoping that it works correctly nowadays).

2 years agoinstall.doc: improve the improvement
Martin Quinson [Tue, 9 Jan 2018 09:29:25 +0000 (10:29 +0100)]
install.doc: improve the improvement

2 years agodoc improvment on cmake options
Martin Quinson [Tue, 9 Jan 2018 07:40:58 +0000 (08:40 +0100)]
doc improvment on cmake options

2 years agoMerge branch 'master' of git+ssh://scm.gforge.inria.fr//gitroot/simgrid/simgrid
Frederic Suter [Mon, 8 Jan 2018 19:21:22 +0000 (20:21 +0100)]
Merge branch 'master' of git+ssh://scm.gforge.inria.fr//gitroot/simgrid/simgrid

2 years agoMerge branch 'master' of scm.gforge.inria.fr:/gitroot/simgrid/simgrid
Martin Quinson [Mon, 8 Jan 2018 16:46:43 +0000 (17:46 +0100)]
Merge branch 'master' of scm.gforge.inria.fr:/gitroot/simgrid/simgrid

2 years agoImprove the doc of MSG_task_*_bounded
Martin Quinson [Mon, 8 Jan 2018 15:16:01 +0000 (16:16 +0100)]
Improve the doc of MSG_task_*_bounded

2 years agosolverstack actually lives on gitlab
Martin Quinson [Mon, 8 Jan 2018 14:21:08 +0000 (15:21 +0100)]
solverstack actually lives on gitlab

2 years agoinstall: small improvements
Martin Quinson [Mon, 8 Jan 2018 10:26:20 +0000 (11:26 +0100)]
install: small improvements

2 years agoavoid xbt_strdup in c++ examples and tests
Frederic Suter [Sat, 30 Dec 2017 15:53:40 +0000 (16:53 +0100)]
avoid xbt_strdup in c++ examples and tests

2 years agoShutdown Engine first, and fix double-free errors.
Arnaud Giersch [Thu, 28 Dec 2017 17:38:36 +0000 (18:38 +0100)]
Shutdown Engine first, and fix double-free errors.

2 years agoUse new/delete and remove useless cast.
Arnaud Giersch [Wed, 27 Dec 2017 17:24:34 +0000 (18:24 +0100)]
Use new/delete and remove useless cast.

2 years agoReturn 1.0 if the task has not started.
Arnaud Giersch [Tue, 26 Dec 2017 20:59:37 +0000 (21:59 +0100)]
Return 1.0 if the task has not started.

2 years agoMake messages match the code.
Arnaud Giersch [Tue, 26 Dec 2017 21:17:57 +0000 (22:17 +0100)]
Make messages match the code.

2 years agoDead assignments.
Arnaud Giersch [Tue, 26 Dec 2017 21:16:47 +0000 (22:16 +0100)]
Dead assignments.

2 years agoGet the same result with a shorter command.
Arnaud Giersch [Tue, 26 Dec 2017 17:06:45 +0000 (18:06 +0100)]
Get the same result with a shorter command.

2 years agoAdd .mailmap, to improve git shortlog's output.
Arnaud Giersch [Tue, 26 Dec 2017 16:45:39 +0000 (17:45 +0100)]
Add .mailmap, to improve git shortlog's output.

2 years agoTypo + kill trailing whitespaces.
Arnaud Giersch [Tue, 26 Dec 2017 10:42:27 +0000 (11:42 +0100)]
Typo + kill trailing whitespaces.

2 years agosmpi doesn't know void anymore
Frederic Suter [Wed, 27 Dec 2017 00:08:34 +0000 (01:08 +0100)]
smpi doesn't know void anymore

2 years agoremove includes of datatypes.h
Frederic Suter [Wed, 27 Dec 2017 00:02:47 +0000 (01:02 +0100)]
remove includes of datatypes.h

2 years agoget rid of the vm_params struct
Frederic Suter [Tue, 26 Dec 2017 23:29:25 +0000 (00:29 +0100)]
get rid of the vm_params struct
this migration related stuff is now part of the plugin (which grows)
the set/get parameters for VM have thus been removed

some examples have been simplified in the process has they created VM
with useless parameters (no migration)

2 years agoimplement s4u::Comm::test_any() (fix #194)
Martin Quinson [Tue, 26 Dec 2017 23:22:32 +0000 (00:22 +0100)]
implement s4u::Comm::test_any()   (fix #194)

It's not tested, sorry @henricasanova.

2 years agomove the host list into the Engine
Martin Quinson [Tue, 26 Dec 2017 23:05:42 +0000 (00:05 +0100)]
move the host list into the Engine

2 years agoimprove the doc of SMPI privatization (fix #137)
Martin Quinson [Tue, 26 Dec 2017 22:06:06 +0000 (23:06 +0100)]
improve the doc of SMPI privatization (fix #137)

I just kept the bug open for reference until it got correctly
documented, and it's done now. I admit, the full feature solution is
not implemented, but the current one is good enough, and the doc links
to #137 for future reference.

2 years agofix #245: migrating an actor does not migrate its execution
Martin Quinson [Tue, 26 Dec 2017 21:26:15 +0000 (22:26 +0100)]
fix #245: migrating an actor does not migrate its execution

Before, the migration was only taking place when the actor got awaken
after an activity. Now, it takes place right away, and if it's
blocking on an execution, the activity is also migrated. If it's another
kind of activity, then an error is raised as this is not implemented
yet.

Also rewrite the s4u-actor-migrate example to be less funny but more
informative, and to test that feature.

(fix #245)

2 years agoadd Exec::setBound (and what lies beneath)
Frederic Suter [Tue, 26 Dec 2017 20:43:56 +0000 (21:43 +0100)]
add Exec::setBound (and what lies beneath)
also to convert the cloud-capping test (rather than example)
move the MSG to the dungeon

2 years agoallow to call s4u::Exec->setHost() after its start, to migrate it
Martin Quinson [Tue, 26 Dec 2017 16:49:37 +0000 (17:49 +0100)]
allow to call s4u::Exec->setHost() after its start, to migrate it

2 years agomove MutexImpl to the right namespace
Martin Quinson [Tue, 26 Dec 2017 14:22:24 +0000 (15:22 +0100)]
move MutexImpl to the right namespace

2 years agomove MutexImpl to the expected location
Martin Quinson [Tue, 26 Dec 2017 10:44:38 +0000 (11:44 +0100)]
move MutexImpl to the expected location

2 years agosplit MutexImpl into their own files
Martin Quinson [Tue, 26 Dec 2017 10:36:19 +0000 (11:36 +0100)]
split MutexImpl into their own files

2 years agocosmetics
Martin Quinson [Mon, 25 Dec 2017 17:54:23 +0000 (18:54 +0100)]
cosmetics

2 years agoimprove the doc of the release process
Martin Quinson [Mon, 25 Dec 2017 17:54:14 +0000 (18:54 +0100)]
improve the doc of the release process

2 years agoinitiate the 3.19 release cycle
Martin Quinson [Mon, 25 Dec 2017 17:53:32 +0000 (18:53 +0100)]
initiate the 3.19 release cycle

2 years agoallow zero-cost migration (a.k.a. setPm)
Frederic Suter [Tue, 26 Dec 2017 09:57:08 +0000 (10:57 +0100)]
allow zero-cost migration (a.k.a. setPm)

remove assert in suspend related to migration to be able to use it
during the migration (was a crappy hack before). This implies that we
assume that migration is a blocking operation (which is it) and that
nobody will try to let another process do a suspend.

2 years agovm_migrate is now part of the live_migration plugin \o/
Frederic Suter [Tue, 26 Dec 2017 09:23:47 +0000 (10:23 +0100)]
vm_migrate is now part of the live_migration plugin \o/

there are still some cleanups to do to complete the plugin
 - is_migrating in VirtualMachineImpl and related functions
 - the vm_params_t are only used by the migration
 - some factoring in VmLiveMigration.hpp
 - See if the final ack can be spared
 - check valgrind and sonar feedback

2 years agoMerge branch 'master' of git+ssh://scm.gforge.inria.fr//gitroot/simgrid/simgrid
Frederic Suter [Mon, 25 Dec 2017 19:55:10 +0000 (20:55 +0100)]
Merge branch 'master' of git+ssh://scm.gforge.inria.fr//gitroot/simgrid/simgrid

2 years agothis is still unimplemented, but please sonar
Augustin Degomme [Mon, 25 Dec 2017 18:54:31 +0000 (19:54 +0100)]
this is still unimplemented, but please sonar

2 years agorelease v3.18 v3.18
Martin Quinson [Sun, 24 Dec 2017 17:07:14 +0000 (18:07 +0100)]
release v3.18

2 years agoimprove doc
Martin Quinson [Sun, 24 Dec 2017 16:56:45 +0000 (17:56 +0100)]
improve doc

2 years agotry to fix Apple privatization after recent default change
Martin Quinson [Sun, 24 Dec 2017 16:04:09 +0000 (17:04 +0100)]
try to fix Apple privatization after recent default change