Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
simgrid.git
3 years agoAvoid overflowing in the MPI_Prod version by using larger datatype
degomme [Thu, 16 Feb 2017 09:33:08 +0000 (10:33 +0100)]
Avoid overflowing in the MPI_Prod version by using larger datatype

3 years agosign the parameters
Frederic Suter [Thu, 16 Feb 2017 10:49:36 +0000 (11:49 +0100)]
sign the parameters

3 years agoMerge branch 'master' of git+ssh://scm.gforge.inria.fr//gitroot/simgrid/simgrid
Frederic Suter [Thu, 16 Feb 2017 10:36:21 +0000 (11:36 +0100)]
Merge branch 'master' of git+ssh://scm.gforge.inria.fr//gitroot/simgrid/simgrid

3 years agofifo2dynar
Frederic Suter [Thu, 16 Feb 2017 10:35:43 +0000 (11:35 +0100)]
fifo2dynar

3 years agoSometimes (most notably in StarPU-MPI case) the issuer of the comm is neither its...
Luka Stanisic [Wed, 8 Feb 2017 17:24:33 +0000 (18:24 +0100)]
Sometimes (most notably in StarPU-MPI case) the issuer of the comm is neither its src nor dst. I dont see how this can jeopardies the correct execution of SimGrid in other use cases, but I may be missing something.

This commit is indispensable for the correct termination of StarPU-MPI+SimGrid execution.

3 years agoa bit of cleaning
Frederic Suter [Thu, 16 Feb 2017 09:55:02 +0000 (10:55 +0100)]
a bit of cleaning

3 years agocosmetics
Frederic Suter [Thu, 16 Feb 2017 09:54:11 +0000 (10:54 +0100)]
cosmetics

3 years agoyet another bitwise pickyness + hey that's a foreach
Frederic Suter [Thu, 16 Feb 2017 08:59:48 +0000 (09:59 +0100)]
yet another bitwise pickyness + hey that's a foreach

3 years agomatch new with delete, not with free
Martin Quinson [Thu, 16 Feb 2017 08:55:44 +0000 (09:55 +0100)]
match new with delete, not with free

3 years agofix newly introduced bugs
Frederic Suter [Thu, 16 Feb 2017 08:14:14 +0000 (09:14 +0100)]
fix newly introduced bugs

3 years agosimplify code by using default values for the fields
Martin Quinson [Thu, 16 Feb 2017 01:53:45 +0000 (02:53 +0100)]
simplify code by using default values for the fields

3 years agoreindent
Martin Quinson [Thu, 16 Feb 2017 01:47:08 +0000 (02:47 +0100)]
reindent

3 years agofurther untangle the msg_process creation by using a default value for auto_restart
Martin Quinson [Thu, 16 Feb 2017 01:42:18 +0000 (02:42 +0100)]
further untangle the msg_process creation by using a default value for auto_restart

3 years agostart to untangle the MSG actor creation mess
Martin Quinson [Thu, 16 Feb 2017 01:21:51 +0000 (02:21 +0100)]
start to untangle the MSG actor creation mess

3 years agoeven more C++ style
Martin Quinson [Thu, 16 Feb 2017 00:54:19 +0000 (01:54 +0100)]
even more C++ style

3 years agoactually, there is no need for the MsgActor to remember about its host. Its s4u compo...
Martin Quinson [Thu, 16 Feb 2017 00:50:32 +0000 (01:50 +0100)]
actually, there is no need for the MsgActor to remember about its host. Its s4u component already knows it

3 years agoobey our coding standards + kill dead code
Martin Quinson [Thu, 16 Feb 2017 00:36:13 +0000 (01:36 +0100)]
obey our coding standards + kill dead code

MSG is tiring nowadays

3 years agokill dead code
Martin Quinson [Thu, 16 Feb 2017 00:34:57 +0000 (01:34 +0100)]
kill dead code

3 years agoplease sonar and cosmetics
Martin Quinson [Thu, 16 Feb 2017 00:27:45 +0000 (01:27 +0100)]
please sonar and cosmetics

- Uppercase the literal suffix.
- Remove the unused declaration of type "smx_host_priv_t".
- Move this "namespace" out of the 'extern "C"' declaration.

3 years agosonar: fix a regex
Martin Quinson [Thu, 16 Feb 2017 00:18:15 +0000 (01:18 +0100)]
sonar: fix a regex

3 years agorename simdata_process_t into MsgActorExt
Martin Quinson [Thu, 16 Feb 2017 00:08:20 +0000 (01:08 +0100)]
rename simdata_process_t into MsgActorExt

3 years agonot even for debugging purposes :)
Martin Quinson [Wed, 15 Feb 2017 23:43:12 +0000 (00:43 +0100)]
not even for debugging purposes :)

3 years agokill some useless getter simcalls
Martin Quinson [Wed, 15 Feb 2017 23:35:50 +0000 (00:35 +0100)]
kill some useless getter simcalls

They were rather misleading since they did not do any simcall,
actually. The code around the getters of data in the actors is still
somehow magical:

smpi_switch_data_segment((static_cast<smpi_process_data_t>((static_cast<simdata_process_t>(comm->dst_proc->data)->data))->index));

I love this one. Once I'm done, it will become:

smpi_switch_data_segment(comm->dst_proc->extension<SmpiActorExt>()->index);

I pretend that it is clearer. Maybe to me only? :-3

3 years agoreindent
Martin Quinson [Wed, 15 Feb 2017 23:17:28 +0000 (00:17 +0100)]
reindent

3 years agodon't hide the C++, deal with it
Martin Quinson [Wed, 15 Feb 2017 23:15:10 +0000 (00:15 +0100)]
don't hide the C++, deal with it

3 years agomove two severly misnamed identifiers to make them static
Martin Quinson [Wed, 15 Feb 2017 23:07:44 +0000 (00:07 +0100)]
move two severly misnamed identifiers to make them static

3 years agomake MSG use the Host extension mechanism (at least)
Martin Quinson [Wed, 15 Feb 2017 22:32:34 +0000 (23:32 +0100)]
make MSG use the Host extension mechanism (at least)

3 years agomake the Actors extendable (that was easy)
Martin Quinson [Wed, 15 Feb 2017 22:03:02 +0000 (23:03 +0100)]
make the Actors extendable (that was easy)

3 years agocosmetics: reinterpret_cast does not mandate any intermediate cast
Martin Quinson [Wed, 15 Feb 2017 22:02:32 +0000 (23:02 +0100)]
cosmetics: reinterpret_cast does not mandate any intermediate cast

3 years agosonar: ignore more generated files
Martin Quinson [Wed, 15 Feb 2017 18:07:18 +0000 (19:07 +0100)]
sonar: ignore more generated files

3 years agoused unsigned long long to have more than 50 bits
Frederic Suter [Wed, 15 Feb 2017 20:34:23 +0000 (21:34 +0100)]
used unsigned long long to have more than 50 bits

3 years agouse bitfields as bitfields
Frederic Suter [Wed, 15 Feb 2017 16:33:04 +0000 (17:33 +0100)]
use bitfields as bitfields

3 years agoMerge branch 'master' of git+ssh://scm.gforge.inria.fr//gitroot/simgrid/simgrid
Frederic Suter [Wed, 15 Feb 2017 16:32:59 +0000 (17:32 +0100)]
Merge branch 'master' of git+ssh://scm.gforge.inria.fr//gitroot/simgrid/simgrid

3 years agomake the C and Fortran interfaces of SMPI as extern C also in the code
Martin Quinson [Wed, 15 Feb 2017 16:27:37 +0000 (17:27 +0100)]
make the C and Fortran interfaces of SMPI as extern C also in the code

This is useless because they are also marked as such in the header
files, but sonar only notices if they are marked in the implementation
too.

Also do some tiny changes to please sonar.

3 years agoexclude some more sonar checks on generated files
Martin Quinson [Wed, 15 Feb 2017 16:07:20 +0000 (17:07 +0100)]
exclude some more sonar checks on generated files

3 years agomake some C functions as such to please sonar
Martin Quinson [Wed, 15 Feb 2017 15:37:01 +0000 (16:37 +0100)]
make some C functions as such to please sonar

3 years agonew callback: s4u::onTimeAdvance
Martin Quinson [Wed, 15 Feb 2017 15:31:53 +0000 (16:31 +0100)]
new callback: s4u::onTimeAdvance

3 years agonew signal s4u::Host::onSpeedChange: when pstate is changed (or similar)
Martin Quinson [Wed, 15 Feb 2017 15:19:28 +0000 (16:19 +0100)]
new signal s4u::Host::onSpeedChange: when pstate is changed (or similar)

3 years agoput all of the host_energy plugin in one file only
Martin Quinson [Wed, 15 Feb 2017 14:51:36 +0000 (15:51 +0100)]
put all of the host_energy plugin in one file only

3 years agoMake room for the upcoming network energy plugin
Martin Quinson [Wed, 15 Feb 2017 14:33:21 +0000 (15:33 +0100)]
Make room for the upcoming network energy plugin

3 years agoadd NetworkAction::links(), similar to CpuAction::cpus() for Betsegaw
Martin Quinson [Wed, 15 Feb 2017 14:30:53 +0000 (15:30 +0100)]
add NetworkAction::links(), similar to CpuAction::cpus() for Betsegaw

3 years agokill dead code
Martin Quinson [Tue, 14 Feb 2017 15:54:00 +0000 (16:54 +0100)]
kill dead code

3 years agofix tiny typo
Frederic Suter [Wed, 15 Feb 2017 11:41:43 +0000 (12:41 +0100)]
fix tiny typo

3 years agoRevert "Store this size in a fixed sized, as potentially this could overflow"
degomme [Wed, 15 Feb 2017 01:22:10 +0000 (02:22 +0100)]
Revert "Store this size in a fixed sized, as potentially this could overflow"
This is not the bug I was looking for, and printf is annoying, so let's postpone this one for tomorrow

This reverts commit a7eafe040faedcc0987b01b878672faec769d3f7.

3 years agoStore this size in a fixed sized, as potentially this could overflow
degomme [Wed, 15 Feb 2017 01:07:06 +0000 (02:07 +0100)]
Store this size in a fixed sized, as potentially this could overflow

3 years agoThis computation was incorrect and actually prevented this case to happen.
degomme [Wed, 15 Feb 2017 01:05:35 +0000 (02:05 +0100)]
This computation was incorrect and actually prevented this case to happen.
This may fix the last bugs in privatization on some systems

3 years agoMerge branch 'master' of git+ssh://scm.gforge.inria.fr//gitroot/simgrid/simgrid
Frederic Suter [Tue, 14 Feb 2017 16:39:07 +0000 (17:39 +0100)]
Merge branch 'master' of git+ssh://scm.gforge.inria.fr//gitroot/simgrid/simgrid

3 years agotoying with this mess of a code
Frederic Suter [Tue, 14 Feb 2017 16:34:30 +0000 (17:34 +0100)]
toying with this mess of a code

3 years agobackport
Frederic Suter [Tue, 14 Feb 2017 16:34:14 +0000 (17:34 +0100)]
backport

3 years agodocument cruft
Martin Quinson [Tue, 14 Feb 2017 15:27:16 +0000 (16:27 +0100)]
document cruft

3 years agoDon't hide the cruft, even to please sonar. Document it instead.
Martin Quinson [Tue, 14 Feb 2017 15:18:19 +0000 (16:18 +0100)]
Don't hide the cruft, even to please sonar. Document it instead.

This would really make the code more ugly. Instead, add a comment
explaining why, and I'll make the issue as wontfix in sonar.

This reverts commit 33231edf2cf2a3615965d676f3d5c7f37a951569.

3 years agoMerge branch 'master' of git+ssh://scm.gforge.inria.fr//gitroot/simgrid/simgrid
Frederic Suter [Tue, 14 Feb 2017 13:08:58 +0000 (14:08 +0100)]
Merge branch 'master' of git+ssh://scm.gforge.inria.fr//gitroot/simgrid/simgrid

3 years agosteal a bunch of easy commits and please sonar
Frederic Suter [Tue, 14 Feb 2017 12:21:33 +0000 (13:21 +0100)]
steal a bunch of easy commits and please sonar

3 years agosonar: disable rule cpp:PPStringifyAndPastingUsage
Martin Quinson [Tue, 14 Feb 2017 13:06:22 +0000 (14:06 +0100)]
sonar: disable rule cpp:PPStringifyAndPastingUsage

3 years agoPlease sonar.
degomme [Tue, 14 Feb 2017 11:35:56 +0000 (12:35 +0100)]
Please sonar.
Is this really what we want ?

3 years agolet's not used global variables for the sake of it, here.
degomme [Tue, 14 Feb 2017 11:32:01 +0000 (12:32 +0100)]
let's not used global variables for the sake of it, here.

3 years agoManually privatization of mpich tests when needed - improved
degomme [Tue, 14 Feb 2017 11:31:46 +0000 (12:31 +0100)]
Manually privatization of mpich tests when needed - improved

3 years agoIf sonar doesn't like const_cast, then remove the const.
degomme [Tue, 14 Feb 2017 09:45:12 +0000 (10:45 +0100)]
If sonar doesn't like const_cast, then remove the const.

3 years agoget rid of sd_workstation.cpp
Frederic Suter [Tue, 14 Feb 2017 10:14:05 +0000 (11:14 +0100)]
get rid of sd_workstation.cpp
fix sg_host_route_bandwidth function

3 years agofix ns3 builds
Martin Quinson [Tue, 14 Feb 2017 08:39:15 +0000 (09:39 +0100)]
fix ns3 builds

3 years agotell sonar that we will never put our C wrappers in a C++ namespace
Martin Quinson [Tue, 14 Feb 2017 01:34:32 +0000 (02:34 +0100)]
tell sonar that we will never put our C wrappers in a C++ namespace

3 years agoimprove the changelog
Martin Quinson [Tue, 14 Feb 2017 00:45:25 +0000 (01:45 +0100)]
improve the changelog

3 years agocomplete a bit the C wrapper of s4u::Host
Martin Quinson [Tue, 14 Feb 2017 00:45:05 +0000 (01:45 +0100)]
complete a bit the C wrapper of s4u::Host

3 years agocosmetics
Martin Quinson [Tue, 14 Feb 2017 00:14:29 +0000 (01:14 +0100)]
cosmetics

3 years agoFactorize smpi*_f2c, smpi_*c2f and other f77 calls
degomme [Tue, 14 Feb 2017 00:41:22 +0000 (01:41 +0100)]
Factorize smpi*_f2c, smpi_*c2f and other f77 calls

3 years agogeneralize previous type patch
degomme [Mon, 13 Feb 2017 21:41:19 +0000 (22:41 +0100)]
generalize previous type patch

3 years agoThat was added at some point because we couldn't comply. We can, now.
degomme [Mon, 13 Feb 2017 17:10:37 +0000 (18:10 +0100)]
That was added at some point because we couldn't comply. We can, now.

3 years agoactivate some MPI 2.2 tests in fortran
degomme [Mon, 13 Feb 2017 17:10:12 +0000 (18:10 +0100)]
activate some MPI 2.2 tests in fortran

3 years agoAdd support in fortran for user added MPI operations
degomme [Mon, 13 Feb 2017 17:09:52 +0000 (18:09 +0100)]
Add support in fortran for user added MPI operations

3 years agoseparate c2f and type creation. That was a bug (and probably a leak).
degomme [Mon, 13 Feb 2017 17:09:17 +0000 (18:09 +0100)]
separate c2f and type creation. That was a bug (and probably a leak).
I will fix all of the other ones as well.

3 years agoplease sonar by removing 2 redundent forward declaration
Martin Quinson [Mon, 13 Feb 2017 23:05:26 +0000 (00:05 +0100)]
please sonar by removing 2 redundent forward declaration

3 years agomove MailboxImpl to kernel::activity where it belongs
Martin Quinson [Mon, 13 Feb 2017 22:49:10 +0000 (23:49 +0100)]
move MailboxImpl to kernel::activity where it belongs

3 years agocosmetics
Martin Quinson [Mon, 13 Feb 2017 22:28:34 +0000 (23:28 +0100)]
cosmetics

3 years agoalign the Link callbacks with the ones of Host
Martin Quinson [Mon, 13 Feb 2017 22:17:45 +0000 (23:17 +0100)]
align the Link callbacks with the ones of Host

3 years agomove the Link signals to s4u
Martin Quinson [Mon, 13 Feb 2017 22:01:28 +0000 (23:01 +0100)]
move the Link signals to s4u

3 years agoFix for [#136] on github.
degomme [Mon, 13 Feb 2017 14:07:00 +0000 (15:07 +0100)]
Fix for [#136] on github.
We say clearly "# Don't use wc -l to compute it to avoid issues with trailing \n at EOF"
But then we used it anyway...

3 years agosonar found these potential issues .. why not.
degomme [Mon, 13 Feb 2017 14:06:01 +0000 (15:06 +0100)]
sonar found these potential issues .. why not.

3 years agofinish the conversion C++ of simix::MailboxImpl
Martin Quinson [Sun, 12 Feb 2017 20:48:53 +0000 (21:48 +0100)]
finish the conversion C++ of simix::MailboxImpl

3 years agoHopefully the last vars to manually privatize here
degomme [Sun, 12 Feb 2017 20:29:58 +0000 (21:29 +0100)]
Hopefully the last vars to manually privatize here

3 years agomanually privatize one mpich test (just for netbsd, basically)
degomme [Sun, 12 Feb 2017 20:08:45 +0000 (21:08 +0100)]
manually privatize one mpich test (just for netbsd, basically)

3 years agojust forgot to change half of the values I needed to change in here ..
degomme [Sun, 12 Feb 2017 20:05:21 +0000 (21:05 +0100)]
just forgot to change half of the values I needed to change in here ..

3 years agoSeparate boolean from others, as gcc > 6 complains on some operations.
degomme [Sun, 12 Feb 2017 19:08:12 +0000 (20:08 +0100)]
Separate boolean from others, as gcc > 6 complains on some operations.
And actually, this follows the standard.

3 years agowe can stop lying here, we handle these
degomme [Sun, 12 Feb 2017 18:53:03 +0000 (19:53 +0100)]
we can stop lying here, we handle these

3 years agoAdd a few extra layers of macros, to save some lines, and handle more types
degomme [Sun, 12 Feb 2017 18:52:48 +0000 (19:52 +0100)]
Add a few extra layers of macros, to save some lines, and handle more types

3 years agoreduce size of some tests, to save some time
degomme [Sun, 12 Feb 2017 13:11:36 +0000 (14:11 +0100)]
reduce size of some tests, to save some time

3 years agoincrease a timeout that fires on me from time to time
Martin Quinson [Sun, 12 Feb 2017 11:52:29 +0000 (12:52 +0100)]
increase a timeout that fires on me from time to time

3 years ago(partially) convert simix::MailboxImpl to C++
Martin Quinson [Sat, 11 Feb 2017 15:00:37 +0000 (16:00 +0100)]
(partially) convert simix::MailboxImpl to C++

3 years ago...
degomme [Sun, 12 Feb 2017 02:07:39 +0000 (03:07 +0100)]
...

3 years agowarning --
degomme [Sun, 12 Feb 2017 02:01:28 +0000 (03:01 +0100)]
warning --

3 years agoTry to fix mpich tests on systems without privatization
degomme [Sun, 12 Feb 2017 01:57:28 +0000 (02:57 +0100)]
Try to fix mpich tests on systems without privatization

3 years agotry to please 32 bits systems
degomme [Sun, 12 Feb 2017 01:30:58 +0000 (02:30 +0100)]
try to please 32 bits systems

3 years agoplease clang
degomme [Sun, 12 Feb 2017 01:04:41 +0000 (02:04 +0100)]
please clang

3 years agofix dist n°37
degomme [Sun, 12 Feb 2017 00:40:24 +0000 (01:40 +0100)]
fix dist n°37

3 years agoUpdate topo
degomme [Sun, 12 Feb 2017 00:28:48 +0000 (01:28 +0100)]
Update topo

3 years agoAdd a way to ensure MPI_Accumulate are applied in order, as per the *** standard
degomme [Sun, 12 Feb 2017 00:21:11 +0000 (01:21 +0100)]
Add a way to ensure MPI_Accumulate are applied in order, as per the *** standard

3 years agoUpdate RMA tests
degomme [Sun, 12 Feb 2017 00:20:37 +0000 (01:20 +0100)]
Update RMA tests

3 years agoUpdate perf
degomme [Sat, 11 Feb 2017 20:48:07 +0000 (21:48 +0100)]
Update perf

3 years agoUpdate init
degomme [Sat, 11 Feb 2017 20:35:34 +0000 (21:35 +0100)]
Update init

3 years agoUpdate info
degomme [Sat, 11 Feb 2017 20:28:12 +0000 (21:28 +0100)]
Update info

3 years agoUpdate group
degomme [Sat, 11 Feb 2017 20:15:28 +0000 (21:15 +0100)]
Update group