Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
simgrid.git
15 months agoadd codacy config file to ignore teshsuite folder for coverage computation
Augustin Degomme [Sat, 7 Jul 2018 17:20:47 +0000 (19:20 +0200)]
add codacy config file to ignore teshsuite folder for coverage computation

15 months agodeactivate bad call to MPI_Attr_put
Augustin Degomme [Fri, 6 Jul 2018 13:26:24 +0000 (15:26 +0200)]
deactivate bad call to MPI_Attr_put

15 months agoFix warning by putting the array only where it's needed
Augustin Degomme [Fri, 6 Jul 2018 13:25:38 +0000 (15:25 +0200)]
Fix warning by putting the array only where it's needed

15 months agocleanup
Augustin Degomme [Fri, 6 Jul 2018 13:06:10 +0000 (15:06 +0200)]
cleanup

15 months agoGenerate error strings at the same time enum is generated.
Augustin Degomme [Fri, 6 Jul 2018 12:56:06 +0000 (14:56 +0200)]
Generate error strings at the same time enum is generated.
- TODO : put back MPI_Errhandler_f2c and MPI_File_f2c unimplemented signatures...
Somehow converting from "#define MPI_SUCCESS 0" to their return type was OK but from enum is not for the compiler.

15 months agoHave MPI_* send a debug messages whenever output is not MPI_SUCCESS
Augustin Degomme [Fri, 6 Jul 2018 12:19:09 +0000 (14:19 +0200)]
Have MPI_* send a debug messages whenever output is not MPI_SUCCESS
Should help debugging quite a lot
TODO
- pass the message in WARNING
- requalify teshes for this (some intentionally give bad params to test)
- fix bugs in SMPI (already found one useless MPI_Attr_put call for example).

15 months ago- Support MPI_Error_string
Augustin Degomme [Fri, 6 Jul 2018 12:16:49 +0000 (14:16 +0200)]
- Support MPI_Error_string
TODO :
- better and extensible way to store errors/errorstrings, now it's stupid

15 months agoRevert "address FIXME and kill useless code"
Frederic Suter [Fri, 6 Jul 2018 10:14:18 +0000 (12:14 +0200)]
Revert "address FIXME and kill useless code"

This reverts commit 4bfa8a32e0083bcd28a78689625c4806c2fbbf46.

15 months agoaddress FIXME and kill useless code
Frederic Suter [Fri, 6 Jul 2018 09:55:07 +0000 (11:55 +0200)]
address FIXME and kill useless code

15 months ago[SMPI] Remove specific encoding of MPI_DATATYPE_NULL
Christian Heinrich [Fri, 6 Jul 2018 06:38:56 +0000 (08:38 +0200)]
[SMPI] Remove specific encoding of MPI_DATATYPE_NULL

This code is now being treated by MPI_DATATYPE_NULL
being an object.

15 months ago[SMPI] Make MPI_DATATYPE_NULL a non-null object
Christian Heinrich [Fri, 6 Jul 2018 06:37:37 +0000 (08:37 +0200)]
[SMPI] Make MPI_DATATYPE_NULL a non-null object

We're calling methods on the Datatype objects, such as
datatype->size(), especially in the replay component.
With MPI_DATATYPE_NULL being the nullptr, we'd have to
check every time whether or not a given object is
actually MPI_DATATYPE_NULL before using it.

Making MPI_DATATYPE_NULL a real object allows us to call methods
on this object that will be meaningful (for instance, size() returns 0)
and to avoid this constant checking.

Thanks to Michael Mercier for reporting this bug.

15 months agoMerge branch 'master' of git+ssh://scm.gforge.inria.fr//gitroot/simgrid/simgrid
Frederic Suter [Thu, 5 Jul 2018 13:24:39 +0000 (15:24 +0200)]
Merge branch 'master' of git+ssh://scm.gforge.inria.fr//gitroot/simgrid/simgrid

15 months ago[SMPI] Assert: host_speed must be > 0, not >= 0.
Christian Heinrich [Thu, 5 Jul 2018 12:59:50 +0000 (14:59 +0200)]
[SMPI] Assert: host_speed must be > 0, not >= 0.

15 months ago[CONFIG] Add smpi/plugin/lb/migration-frequency option
Christian Heinrich [Thu, 5 Jul 2018 12:42:27 +0000 (14:42 +0200)]
[CONFIG] Add smpi/plugin/lb/migration-frequency option

This needs to be moved to the plugin file, but unfortunately, when the
smpirun command is parsed, the plugin is not yet initialized and hence
an error is thrown (since this option is not yet known).

15 months ago[SMPI] Replace surf_get_clock with SIMIX_get_clock
Christian Heinrich [Thu, 5 Jul 2018 12:38:25 +0000 (14:38 +0200)]
[SMPI] Replace surf_get_clock with SIMIX_get_clock

15 months ago[S4U] Initialize s4u::Barrier in initializer list
Christian Heinrich [Thu, 5 Jul 2018 12:19:44 +0000 (14:19 +0200)]
[S4U] Initialize s4u::Barrier in initializer list

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

15 months agoadd C interface to s4u::Barrier
Frederic Suter [Thu, 5 Jul 2018 13:08:21 +0000 (15:08 +0200)]
add C interface to s4u::Barrier
move MSG version to legacy

15 months agoremove a dependency on MSG from SMPI
Frederic Suter [Thu, 5 Jul 2018 11:35:50 +0000 (13:35 +0200)]
remove a dependency on MSG from SMPI

15 months ago[CI] Activate PAPI in Coverage checks.
Christian Heinrich [Thu, 5 Jul 2018 09:53:28 +0000 (11:53 +0200)]
[CI] Activate PAPI in Coverage checks.

There are no real tests (yet), but at least that
code compiles again and will be tested for compilation
errors.

15 months ago[DVFS] Make the Dvfs plugin available
Christian Heinrich [Thu, 5 Jul 2018 06:55:53 +0000 (08:55 +0200)]
[DVFS] Make the Dvfs plugin available

This commit allows users to actually enable the plugin
via smpirun.

15 months ago[SMPI/PAPI] Make PAPI counters compile again ;)
Christian Heinrich [Wed, 4 Jul 2018 14:07:22 +0000 (16:07 +0200)]
[SMPI/PAPI] Make PAPI counters compile again ;)

This commit contains all the changes that were necessary
to reflect the changes in SimGrid/S4U since 2016.

15 months ago[CMAKE] Fix grammar for SMPI built option
Christian Heinrich [Tue, 3 Jul 2018 17:35:40 +0000 (19:35 +0200)]
[CMAKE] Fix grammar for SMPI built option

15 months ago[ENERGY] Move comment to the correct location
Christian Heinrich [Mon, 2 Jul 2018 13:31:15 +0000 (15:31 +0200)]
[ENERGY] Move comment to the correct location

15 months agodisable the autorestart test for now, sorry
Martin Quinson [Wed, 4 Jul 2018 23:55:20 +0000 (01:55 +0200)]
disable the autorestart test for now, sorry

15 months agotry to fix the build on centos
Martin Quinson [Wed, 4 Jul 2018 20:36:56 +0000 (22:36 +0200)]
try to fix the build on centos

15 months agostupid typo
Frederic Suter [Wed, 4 Jul 2018 14:25:41 +0000 (16:25 +0200)]
stupid typo

15 months agoAttempt to move msg_bar_t to S4U
Frederic Suter [Wed, 4 Jul 2018 14:01:51 +0000 (16:01 +0200)]
Attempt to move msg_bar_t to S4U

15 months agoBoost.test must be >= v1.59 to be useful to us
Martin Quinson [Wed, 4 Jul 2018 13:14:51 +0000 (15:14 +0200)]
Boost.test must be >= v1.59 to be useful to us

15 months agoRevert "cmake: cleanups around Boost detection"
Martin Quinson [Wed, 4 Jul 2018 13:12:56 +0000 (15:12 +0200)]
Revert "cmake: cleanups around Boost detection"

It requires cmake v3.10.2, released in january 2018...

This reverts commit 853baf79434abbab6ad23c839eb86f68ea546896.

15 months agocmake: cleanups around Boost detection
Martin Quinson [Wed, 4 Jul 2018 12:56:01 +0000 (14:56 +0200)]
cmake: cleanups around Boost detection

15 months agobetter integration of the new MC unit tests
Martin Quinson [Wed, 4 Jul 2018 08:07:30 +0000 (10:07 +0200)]
better integration of the new MC unit tests

Same functionalities than before, but leveraging boost_unit_test
instead of our own unit testing.

15 months agofix make distcheck
Martin Quinson [Wed, 4 Jul 2018 08:00:34 +0000 (10:00 +0200)]
fix make distcheck

15 months agoMerge branch 'master' of https://github.com/Onesphore/simgrid into Onesphore-master
Martin Quinson [Wed, 4 Jul 2018 07:55:33 +0000 (09:55 +0200)]
Merge branch 'master' of https://github.com/Onesphore/simgrid into Onesphore-master

15 months agoremove the old-style MC unit tests
Martin Quinson [Wed, 4 Jul 2018 07:46:17 +0000 (09:46 +0200)]
remove the old-style MC unit tests

They will come back renewed when I merge PR #273.

15 months agomove libsosp into its own directory
Martin Quinson [Wed, 4 Jul 2018 07:42:54 +0000 (09:42 +0200)]
move libsosp into its own directory

15 months agoreduce the adhesion from wannabe libsosp to the rest of MC
Martin Quinson [Wed, 4 Jul 2018 07:24:07 +0000 (09:24 +0200)]
reduce the adhesion from wannabe libsosp to the rest of MC

15 months agoMerge branch 'master' of scm.gforge.inria.fr:/gitroot/simgrid/simgrid
Martin Quinson [Tue, 3 Jul 2018 20:51:22 +0000 (22:51 +0200)]
Merge branch 'master' of scm.gforge.inria.fr:/gitroot/simgrid/simgrid

15 months agosimplification
Frederic Suter [Tue, 3 Jul 2018 10:03:33 +0000 (12:03 +0200)]
simplification

15 months agoobey our coding standards and cosmetics
Martin Quinson [Tue, 3 Jul 2018 07:24:57 +0000 (09:24 +0200)]
obey our coding standards and cosmetics

15 months agoavoid a segfault triggered when debugging #131 [noci]
Martin Quinson [Mon, 2 Jul 2018 13:22:11 +0000 (15:22 +0200)]
avoid a segfault triggered when debugging #131 [noci]

15 months agoadd a broken test
Frederic Suter [Mon, 2 Jul 2018 11:11:48 +0000 (13:11 +0200)]
add a broken test
it reproduces the behavior of the Java MWE provided in #131 by @bcamus

15 months agokill some include directives
Martin Quinson [Sun, 1 Jul 2018 22:50:44 +0000 (00:50 +0200)]
kill some include directives

15 months agofix clang build
Martin Quinson [Sun, 1 Jul 2018 22:30:16 +0000 (00:30 +0200)]
fix clang build

15 months agomerge extension<simgrid::simix::Host>() into HostImpl
Martin Quinson [Sun, 1 Jul 2018 20:44:55 +0000 (22:44 +0200)]
merge extension<simgrid::simix::Host>() into HostImpl

15 months agoreorder the compilations to fit my current needs
Martin Quinson [Sun, 1 Jul 2018 19:57:40 +0000 (21:57 +0200)]
reorder the compilations to fit my current needs

15 months agoobey a FIXME and factorize some code
Martin Quinson [Sun, 1 Jul 2018 17:22:26 +0000 (19:22 +0200)]
obey a FIXME and factorize some code

15 months agosimplify SIMIX_host_add_auto_restart_process
Martin Quinson [Sun, 1 Jul 2018 17:15:57 +0000 (19:15 +0200)]
simplify SIMIX_host_add_auto_restart_process

15 months agoFix context/context_ mismatches.
Arnaud Giersch [Sat, 30 Jun 2018 21:02:42 +0000 (23:02 +0200)]
Fix context/context_ mismatches.

15 months agoCosmetics.
Arnaud Giersch [Sat, 30 Jun 2018 20:56:56 +0000 (22:56 +0200)]
Cosmetics.

15 months agoreplace SIMIX_process_auto_restart_set() with ActorImpl::set_auto_restart()
Martin Quinson [Sat, 30 Jun 2018 16:26:05 +0000 (18:26 +0200)]
replace SIMIX_process_auto_restart_set() with ActorImpl::set_auto_restart()

15 months agoPartially snake_case ActorImpl
Martin Quinson [Sat, 30 Jun 2018 13:29:44 +0000 (15:29 +0200)]
Partially snake_case ActorImpl

I'm sick of snake casing, this one will have to wait.

15 months agodocument recent changes
Martin Quinson [Fri, 29 Jun 2018 23:35:07 +0000 (01:35 +0200)]
document recent changes

15 months agoMerge branch 'master' of github.com:simgrid/simgrid
Martin Quinson [Fri, 29 Jun 2018 23:14:34 +0000 (01:14 +0200)]
Merge branch 'master' of github.com:simgrid/simgrid

15 months agoRevert "please sonar and remove unused types"
Martin Quinson [Fri, 29 Jun 2018 23:12:50 +0000 (01:12 +0200)]
Revert "please sonar and remove unused types"

These types are used when simix.h is loaded from a C file. See eg
https://ci.inria.fr/simgrid/job/SimGrid-Multi/5639/build_mode=Debug,node=simgrid-debian8-64-dynamic-analysis/console

This reverts commit 83091276959030bb6b031127944400cdc71d214c.

15 months agocodacy: some cleanups in the new appveyor script
Martin Quinson [Fri, 29 Jun 2018 11:59:26 +0000 (13:59 +0200)]
codacy: some cleanups in the new appveyor script

15 months agotravis, appveyor: no IRC notification on success, pliz
Martin Quinson [Fri, 29 Jun 2018 11:12:23 +0000 (13:12 +0200)]
travis, appveyor: no IRC notification on success, pliz

15 months ago[EXAMPLES] Fix wrong header
Christian Heinrich [Fri, 29 Jun 2018 20:48:58 +0000 (22:48 +0200)]
[EXAMPLES] Fix wrong header

15 months ago[SMPI] Also commit changes to the fortran part in smpi_dvfs.cpp
Christian Heinrich [Fri, 29 Jun 2018 18:55:52 +0000 (20:55 +0200)]
[SMPI] Also commit changes to the fortran part in smpi_dvfs.cpp

15 months agoMerge pull request #279 from sthibaul/breakpoint
Martin Quinson [Fri, 29 Jun 2018 18:31:35 +0000 (20:31 +0200)]
Merge pull request #279 from sthibaul/breakpoint

Fix breakpoint option

15 months agoFix breakpoint option
Samuel Thibault [Fri, 29 Jun 2018 15:55:33 +0000 (17:55 +0200)]
Fix breakpoint option

It was using relative time deltas instead of absolute time.

15 months ago[SMPI] Deprecate functions in smpi_dvfs.cpp #278
Christian Heinrich [Fri, 29 Jun 2018 15:32:14 +0000 (17:32 +0200)]
[SMPI] Deprecate functions in smpi_dvfs.cpp #278

These functions are not SMPI specific and could be implemented
for other modules (MSG, ...) as well.

If you really can't use the barely longer version, let us know.

15 months ago[ENERGY] Fix bug: Variables were re-declared in lower scope
Christian Heinrich [Fri, 29 Jun 2018 14:39:41 +0000 (16:39 +0200)]
[ENERGY] Fix bug: Variables were re-declared in lower scope

15 months agoMerge pull request #271 from mpoquet/dynamic_replay
Martin Quinson [Fri, 29 Jun 2018 15:15:10 +0000 (17:15 +0200)]
Merge pull request #271 from mpoquet/dynamic_replay

Dynamic and manual replay of SMPI traces

15 months ago[smpi] replay: increase storage dynamicity
Millian Poquet [Thu, 31 May 2018 13:55:26 +0000 (15:55 +0200)]
[smpi] replay: increase storage dynamicity

Storing data associated to a SMPI process is now done in the
smpi_replay_main function -- previously it was done at initialization
time.

This allows more dynamicity regarding the replay of SMPI traces:
One will now be able to replay different traces in a fully dynamic
fashion.

15 months ago[smpi] replay: storage index: (pid-1) -> pid
Millian Poquet [Thu, 31 May 2018 13:47:12 +0000 (15:47 +0200)]
[smpi] replay: storage index: (pid-1) -> pid

The previous index was zero based since the data structure was an array.

Indexing by pid is more simple and more straightforward now that the
data structure is an associative array.

15 months ago[smpi] replay: storage var is now an ordered_map
Millian Poquet [Thu, 31 May 2018 13:24:39 +0000 (15:24 +0200)]
[smpi] replay: storage var is now an ordered_map

This commit is kept separate because it does not change the
code semantics at all, it just changes the data structure.

15 months agoplease sonar and remove unused types
Frederic Suter [Fri, 29 Jun 2018 12:24:54 +0000 (14:24 +0200)]
please sonar and remove unused types

15 months agotry to get IRC notifications on AppVeyor too
Martin Quinson [Fri, 29 Jun 2018 10:05:47 +0000 (12:05 +0200)]
try to get IRC notifications on AppVeyor too

15 months agoMinor changes
onesphore [Fri, 29 Jun 2018 09:49:19 +0000 (11:49 +0200)]
Minor changes

15 months agoFix some doxygen warnings.
Arnaud Giersch [Fri, 29 Jun 2018 09:43:34 +0000 (11:43 +0200)]
Fix some doxygen warnings.

15 months agoDefine __cplusplus for doxygen.
Arnaud Giersch [Fri, 29 Jun 2018 09:40:35 +0000 (11:40 +0200)]
Define __cplusplus for doxygen.

15 months agoReorder and complete doxygen input directories.
Arnaud Giersch [Fri, 29 Jun 2018 09:21:52 +0000 (11:21 +0200)]
Reorder and complete doxygen input directories.

15 months ago[S4U] Actor: Add 'const' keyword to getter methods
Christian Heinrich [Fri, 29 Jun 2018 09:21:57 +0000 (11:21 +0200)]
[S4U] Actor: Add 'const' keyword to getter methods

This signals to users that calling these methods will not
change the state of the object.

15 months ago[S4U] Host: Add 'const' keyword to getter methods
Christian Heinrich [Fri, 29 Jun 2018 09:21:34 +0000 (11:21 +0200)]
[S4U] Host: Add 'const' keyword to getter methods

This signals to users that calling these methods will not
change the state of the object.

15 months ago[SIMIX] Move std::function<void()> to simgrid::simix::ActorCode
Christian Heinrich [Fri, 29 Jun 2018 09:07:48 +0000 (11:07 +0200)]
[SIMIX] Move std::function<void()> to simgrid::simix::ActorCode

That's a typedef for the same thing but makes the code
more readable.

15 months ago[SMPI] Remove outdated FIXME from smpi_deployment
Christian Heinrich [Thu, 28 Jun 2018 12:22:05 +0000 (14:22 +0200)]
[SMPI] Remove outdated FIXME from smpi_deployment

15 months agoanother attempt to disable mmap on old MacOSX
Martin Quinson [Fri, 29 Jun 2018 07:47:07 +0000 (09:47 +0200)]
another attempt to disable mmap on old MacOSX

15 months agotry to disable mmap priv on ancient Mac systems
Martin Quinson [Fri, 29 Jun 2018 06:42:20 +0000 (08:42 +0200)]
try to disable mmap priv on ancient Mac systems

Nix seems to need it, for some reason.

15 months agoFix gforge-sync.
Arnaud Giersch [Thu, 28 Jun 2018 16:08:49 +0000 (18:08 +0200)]
Fix gforge-sync.

15 months agoFragmented the tests into smaller test cases.
onesphore [Thu, 28 Jun 2018 12:07:42 +0000 (14:07 +0200)]
Fragmented the tests into smaller test cases.

15 months ago[SMPI] Colls: Remove that ugly lambda and just use a for-loop
Christian Heinrich [Thu, 28 Jun 2018 11:10:04 +0000 (13:10 +0200)]
[SMPI] Colls: Remove that ugly lambda and just use a for-loop

Merci Arnaud Giersch ;)

15 months ago[SMPI] Colls: Move description & name for colls to std::string
Christian Heinrich [Thu, 28 Jun 2018 10:40:11 +0000 (12:40 +0200)]
[SMPI] Colls: Move description & name for colls to std::string

15 months ago[SMPI] Remove code-generating macro
Christian Heinrich [Thu, 28 Jun 2018 09:36:34 +0000 (11:36 +0200)]
[SMPI] Remove code-generating macro

Using a lambda function, we can achieve the same thing but in a cleaner

way

15 months ago[SMPI] Add FIXME note for MSG_init() call.
Christian Heinrich [Thu, 28 Jun 2018 08:52:44 +0000 (10:52 +0200)]
[SMPI] Add FIXME note for MSG_init() call.

15 months ago[SMPI] Move argument from const char* to std::string
Christian Heinrich [Thu, 28 Jun 2018 07:55:40 +0000 (09:55 +0200)]
[SMPI] Move argument from const char* to std::string

See for this one 2c03aca538a97089891fe7e67eca10d999c076fd as well

15 months ago[SMPI] Remove copy of old argument
Christian Heinrich [Thu, 28 Jun 2018 07:54:12 +0000 (09:54 +0200)]
[SMPI] Remove copy of old argument

15 months ago[SMPI] Move argument from const char* to std::string
Christian Heinrich [Thu, 28 Jun 2018 07:52:08 +0000 (09:52 +0200)]
[SMPI] Move argument from const char* to std::string

See 2c03aca538a97089891fe7e67eca10d999c076fd

15 months ago[SMPI] Remove old smpirun check
Christian Heinrich [Thu, 28 Jun 2018 07:51:22 +0000 (09:51 +0200)]
[SMPI] Remove old smpirun check

smpirun registers its own instances (called 'smpirun').
If we want to check whether or not the instance exists, we
should not do so by calling .empty()

15 months agoMerge remote-tracking branch 'upstream/master'
onesphore [Wed, 27 Jun 2018 12:57:16 +0000 (14:57 +0200)]
Merge remote-tracking branch 'upstream/master'
(Boost has been upgraded in the remote repo)

15 months agoSimplify expression.
Arnaud Giersch [Wed, 27 Jun 2018 12:33:38 +0000 (14:33 +0200)]
Simplify expression.

15 months agoComment unused function parameters.
Arnaud Giersch [Wed, 27 Jun 2018 12:26:44 +0000 (14:26 +0200)]
Comment unused function parameters.

15 months agoRemove useless parentheses.
Arnaud Giersch [Wed, 27 Jun 2018 12:18:12 +0000 (14:18 +0200)]
Remove useless parentheses.

15 months agominor changes.
onesphore [Wed, 27 Jun 2018 11:53:03 +0000 (13:53 +0200)]
minor changes.

15 months agoTravis: actually get the packages I just made available
Martin Quinson [Wed, 27 Jun 2018 10:26:03 +0000 (12:26 +0200)]
Travis: actually get the packages I just made available

Sorry for the noise, I'm debugging in production :)

15 months agotravis: try to get boost 1.60 here
Martin Quinson [Wed, 27 Jun 2018 10:21:56 +0000 (12:21 +0200)]
travis: try to get boost 1.60 here

15 months agoTry to reduce cognitive complexity for smpi_main (Sonar).
Arnaud Giersch [Tue, 26 Jun 2018 18:55:28 +0000 (20:55 +0200)]
Try to reduce cognitive complexity for smpi_main (Sonar).

15 months agoRemove redundant access specifier.
Arnaud Giersch [Tue, 26 Jun 2018 18:47:09 +0000 (20:47 +0200)]
Remove redundant access specifier.

15 months agoMake member variables "private".
Arnaud Giersch [Tue, 26 Jun 2018 15:17:11 +0000 (17:17 +0200)]
Make member variables "private".

15 months agoTry to please Sonar about redundant forward declaration of Transition.
Arnaud Giersch [Tue, 26 Jun 2018 13:00:29 +0000 (15:00 +0200)]
Try to please Sonar about redundant forward declaration of Transition.