Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
simgrid.git
3 years agothese ones were critical actually.
Augustin Degomme [Wed, 15 Jul 2020 00:09:33 +0000 (02:09 +0200)]
these ones were critical actually.

3 years agocheck smpi compilation scripts with www.shellcheck.net
Augustin Degomme [Tue, 14 Jul 2020 23:35:09 +0000 (01:35 +0200)]
check smpi compilation scripts with shellcheck.net
surprisingly fine.
Sadly sonarcloud does not allow external plugins so checker can't be included.

3 years agoshellcheck tools/jenkins scripts.
Augustin Degomme [Tue, 14 Jul 2020 23:10:11 +0000 (01:10 +0200)]
shellcheck tools/jenkins scripts.
Mostly quoting stuff ..

3 years agouse shellcheck on smpirun
Augustin Degomme [Tue, 14 Jul 2020 22:52:05 +0000 (00:52 +0200)]
use shellcheck on smpirun
rules were mainly about escaping, quoting stuff, getting rid of -a and -o
but also some UUOC https://github.com/koalaman/shellcheck/wiki/SC2002
or performance improvement https://github.com/koalaman/shellcheck/wiki/SC2129
and some trap hint : https://github.com/koalaman/shellcheck/wiki/SC2064

two remainings : DEFAULT_NUMPROCS variable is unused. unclear what it was about, should it be the default num of cores in a generated platform ? or the default -np setting ?
"local" is not posix, but a proposal for now

3 years agoRemove unused state.
Arnaud Giersch [Fri, 10 Jul 2020 10:56:23 +0000 (12:56 +0200)]
Remove unused state.

3 years ago[sonar] Fix more implicit casts that should not lower precision (S5276).
Arnaud Giersch [Fri, 10 Jul 2020 09:27:15 +0000 (11:27 +0200)]
[sonar] Fix more implicit casts that should not lower precision (S5276).

3 years agoCosmetics.
Arnaud Giersch [Fri, 10 Jul 2020 06:51:03 +0000 (08:51 +0200)]
Cosmetics.

3 years agoTry to fix for 32bits systems.
Arnaud Giersch [Thu, 9 Jul 2020 22:33:51 +0000 (00:33 +0200)]
Try to fix for 32bits systems.

3 years ago[sonar] Explicit cast when loosing precision (src/xbt/, and parts of surf/).
Arnaud Giersch [Thu, 9 Jul 2020 21:05:45 +0000 (23:05 +0200)]
[sonar] Explicit cast when loosing precision (src/xbt/, and parts of surf/).

That's enough for tonight....

3 years ago[sonar] Explicit cast when loosing precision (teshsuite/).
Arnaud Giersch [Thu, 9 Jul 2020 19:55:23 +0000 (21:55 +0200)]
[sonar] Explicit cast when loosing precision (teshsuite/).

3 years ago[sonar] Explicit cast when loosing precision (C++ examples).
Arnaud Giersch [Thu, 9 Jul 2020 16:01:28 +0000 (18:01 +0200)]
[sonar] Explicit cast when loosing precision (C++ examples).

3 years ago[sonar] Explicit cast when loosing precision (C examples).
Arnaud Giersch [Thu, 9 Jul 2020 10:34:47 +0000 (12:34 +0200)]
[sonar] Explicit cast when loosing precision (C examples).

3 years agoconst++
Arnaud Giersch [Thu, 9 Jul 2020 10:03:22 +0000 (12:03 +0200)]
const++

3 years agoStick with brutal C-style casts (and fix compilation errors).
Arnaud Giersch [Thu, 9 Jul 2020 09:35:54 +0000 (11:35 +0200)]
Stick with brutal C-style casts (and fix compilation errors).

3 years agoFix parentheses around macro arguments (and prefer C++ style casts).
Arnaud Giersch [Thu, 9 Jul 2020 09:00:37 +0000 (11:00 +0200)]
Fix parentheses around macro arguments (and prefer C++ style casts).

3 years agoSuppress global variable.
Arnaud Giersch [Mon, 6 Jul 2020 08:22:16 +0000 (10:22 +0200)]
Suppress global variable.

3 years agocast hugepages macros parameters to int64 (#344)
Lucas Nesi [Thu, 9 Jul 2020 01:09:26 +0000 (22:09 -0300)]
cast hugepages macros parameters to int64 (#344)

cast hugepages macros parameters to int64

3 years agoAdd an example of wifi communication
Martin Quinson [Thu, 9 Jul 2020 00:44:01 +0000 (02:44 +0200)]
Add an example of wifi communication

3 years agoRemove this dupplicated and unused platform file
Martin Quinson [Wed, 8 Jul 2020 23:43:53 +0000 (01:43 +0200)]
Remove this dupplicated and unused platform file

3 years agoProvide a S4U function to control the SNR level of an host on a wifi link (+documenta...
Martin Quinson [Wed, 8 Jul 2020 23:42:30 +0000 (01:42 +0200)]
Provide a S4U function to control the SNR level of an host on a wifi link (+documentation)

3 years agoFix pip builds and distcheck
Martin Quinson [Wed, 8 Jul 2020 20:57:13 +0000 (22:57 +0200)]
Fix pip builds and distcheck

3 years agoTentative implementation of Activity::suspend() and resume()
Martin Quinson [Wed, 8 Jul 2020 14:48:57 +0000 (16:48 +0200)]
Tentative implementation of Activity::suspend() and resume()

I decided not to change the State when the activity is suspended,
because that State merely denotes whether pimpl_ was created already
or not.

This commit also adds a is_suspended() method, as well as an example.

3 years agodoc: simplify a sentence
Martin Quinson [Tue, 7 Jul 2020 10:36:01 +0000 (12:36 +0200)]
doc: simplify a sentence

3 years agoFix pip build
Martin Quinson [Tue, 7 Jul 2020 08:34:29 +0000 (10:34 +0200)]
Fix pip build

3 years agosmall improvements to the ns3 doc
Martin Quinson [Tue, 7 Jul 2020 08:29:43 +0000 (10:29 +0200)]
small improvements to the ns3 doc

3 years agoRename the async-* tests into comm-*
Martin Quinson [Mon, 6 Jul 2020 14:32:42 +0000 (16:32 +0200)]
Rename the async-* tests into comm-*

3 years agoUse correct type for variables, and avoid loosing precision.
Arnaud Giersch [Sat, 4 Jul 2020 20:48:52 +0000 (22:48 +0200)]
Use correct type for variables, and avoid loosing precision.

3 years ago[sonar] Make cast explicit.
Arnaud Giersch [Sat, 4 Jul 2020 20:29:03 +0000 (22:29 +0200)]
[sonar] Make cast explicit.

3 years agoFix return type.
Arnaud Giersch [Sat, 4 Jul 2020 12:32:06 +0000 (14:32 +0200)]
Fix return type.

3 years ago[sonar] Const etc. (round #3).
Arnaud Giersch [Fri, 3 Jul 2020 19:22:42 +0000 (21:22 +0200)]
[sonar] Const etc. (round #3).

3 years agoReindent.
Arnaud Giersch [Fri, 3 Jul 2020 12:27:29 +0000 (14:27 +0200)]
Reindent.

3 years ago[sonar] Const for pointer and reference parameters (slight return).
Arnaud Giersch [Fri, 3 Jul 2020 12:10:27 +0000 (14:10 +0200)]
[sonar] Const for pointer and reference parameters (slight return).

3 years ago[sonar] Const for local variables.
Arnaud Giersch [Fri, 3 Jul 2020 11:44:50 +0000 (13:44 +0200)]
[sonar] Const for local variables.

3 years ago[sonar] Declare functions "const" (round #2).
Arnaud Giersch [Fri, 3 Jul 2020 09:50:55 +0000 (11:50 +0200)]
[sonar] Declare functions "const" (round #2).

3 years agoMissing declarations for some fortran bindings.
Arnaud Giersch [Thu, 30 Jan 2020 15:39:02 +0000 (16:39 +0100)]
Missing declarations for some fortran bindings.

3 years ago[sonar] Convert integer literals to bool literals.
Arnaud Giersch [Thu, 2 Jul 2020 20:16:06 +0000 (22:16 +0200)]
[sonar] Convert integer literals to bool literals.

3 years agoFix simcalls.py after rename s/simcall/simcall_/.
Arnaud Giersch [Thu, 2 Jul 2020 20:41:22 +0000 (22:41 +0200)]
Fix simcalls.py after rename s/simcall/simcall_/.

3 years agoAny idea on how to fix this?
Arnaud Giersch [Thu, 2 Jul 2020 20:02:35 +0000 (22:02 +0200)]
Any idea on how to fix this?

As a wild guess, tried to change the condition with 'message->state->routing_table[i][j] != -1'
but got weird crash (double free detected).

3 years ago[sonar] Declare functions "const" in examples/ and teshsuite/.
Arnaud Giersch [Thu, 2 Jul 2020 19:42:09 +0000 (21:42 +0200)]
[sonar] Declare functions "const" in examples/ and teshsuite/.

3 years ago[sonar] Declare functions "const" in src/instr/.
Arnaud Giersch [Thu, 2 Jul 2020 15:54:00 +0000 (17:54 +0200)]
[sonar] Declare functions "const" in src/instr/.

3 years ago[sonar] Declare functions "const" in src/kernel/.
Arnaud Giersch [Thu, 2 Jul 2020 15:50:58 +0000 (17:50 +0200)]
[sonar] Declare functions "const" in src/kernel/.

3 years ago[sonar] Declare functions "const" in src/mc/.
Arnaud Giersch [Thu, 2 Jul 2020 15:30:56 +0000 (17:30 +0200)]
[sonar] Declare functions "const" in src/mc/.

3 years ago[sonar] Declare functions "const" in src/plugins/.
Arnaud Giersch [Thu, 2 Jul 2020 13:45:10 +0000 (15:45 +0200)]
[sonar] Declare functions "const" in src/plugins/.

3 years agoMake Engine::set_config(...) static functions.
Arnaud Giersch [Thu, 2 Jul 2020 13:17:04 +0000 (15:17 +0200)]
Make Engine::set_config(...) static functions.

3 years ago[sonar] Declare functions "const" in src/s4u/.
Arnaud Giersch [Thu, 2 Jul 2020 13:02:59 +0000 (15:02 +0200)]
[sonar] Declare functions "const" in src/s4u/.

3 years ago[sonar] Declare functions "const" in src/simix/.
Arnaud Giersch [Thu, 2 Jul 2020 12:56:13 +0000 (14:56 +0200)]
[sonar] Declare functions "const" in src/simix/.

3 years ago[sonar] Declare functions "const" in src/smpi/.
Arnaud Giersch [Thu, 2 Jul 2020 12:14:31 +0000 (14:14 +0200)]
[sonar] Declare functions "const" in src/smpi/.

3 years ago[sonar] Declare functions "const" in src/surf/.
Arnaud Giersch [Thu, 2 Jul 2020 12:01:57 +0000 (14:01 +0200)]
[sonar] Declare functions "const" in src/surf/.

3 years ago[sonar] Declare functions "const" in src/xbt/.
Arnaud Giersch [Thu, 2 Jul 2020 10:01:56 +0000 (12:01 +0200)]
[sonar] Declare functions "const" in src/xbt/.

3 years agoFix typo, and consider more files for exclusion.
Arnaud Giersch [Thu, 2 Jul 2020 06:39:54 +0000 (08:39 +0200)]
Fix typo, and consider more files for exclusion.

3 years ago[sonar] Add const qualifier for reference parameter.
Arnaud Giersch [Wed, 1 Jul 2020 20:52:16 +0000 (22:52 +0200)]
[sonar] Add const qualifier for reference parameter.

3 years ago[sonar] Declare function "noreturn".
Arnaud Giersch [Wed, 1 Jul 2020 20:33:07 +0000 (22:33 +0200)]
[sonar] Declare function "noreturn".

3 years ago[sonar] USe a typedef for type alias.
Arnaud Giersch [Wed, 1 Jul 2020 20:27:56 +0000 (22:27 +0200)]
[sonar] USe a typedef for type alias.

3 years ago[sonar] Remove redundant casts.
Arnaud Giersch [Wed, 1 Jul 2020 14:41:22 +0000 (16:41 +0200)]
[sonar] Remove redundant casts.

3 years agoIgnore sonar issues about concatenatable namespaces.
Arnaud Giersch [Wed, 1 Jul 2020 14:28:45 +0000 (16:28 +0200)]
Ignore sonar issues about concatenatable namespaces.

3 years agoKill unused ctor.
Arnaud Giersch [Fri, 12 Jun 2020 15:24:26 +0000 (17:24 +0200)]
Kill unused ctor.

3 years agoMerge branch 'smpi' into 'master'
Augustin Degomme [Thu, 25 Jun 2020 14:47:30 +0000 (16:47 +0200)]
Merge branch 'smpi' into 'master'

Typo in SMPI gather algorithm

See merge request simgrid/simgrid!37

3 years agoTypo in SMPI gather algorithm (comment)
Julien EMMANUEL [Thu, 25 Jun 2020 13:39:03 +0000 (15:39 +0200)]
Typo in SMPI gather algorithm (comment)

3 years agofix some long -> double faulty convertions reported by sonar
Martin Quinson [Sat, 13 Jun 2020 12:55:31 +0000 (14:55 +0200)]
fix some long -> double faulty convertions reported by sonar

3 years agoSpelling fix, just like the line below.
Arnaud Giersch [Fri, 12 Jun 2020 11:42:17 +0000 (13:42 +0200)]
Spelling fix, just like the line below.

3 years agoUse std::vector.
Arnaud Giersch [Tue, 9 Jun 2020 11:40:03 +0000 (13:40 +0200)]
Use std::vector.

3 years agoRemove redundant access specifier.
Arnaud Giersch [Tue, 9 Jun 2020 09:12:53 +0000 (11:12 +0200)]
Remove redundant access specifier.

3 years agoRegenerated.
Arnaud Giersch [Tue, 9 Jun 2020 09:08:32 +0000 (11:08 +0200)]
Regenerated.

3 years agoPrefer using initialization lists in ctors.
Arnaud Giersch [Tue, 9 Jun 2020 08:32:46 +0000 (10:32 +0200)]
Prefer using initialization lists in ctors.

3 years agotools and contrib spelling mistakes
Augustin Degomme [Fri, 12 Jun 2020 10:43:00 +0000 (12:43 +0200)]
tools and contrib spelling mistakes

3 years agospeeling mistakes in teshsuite (even mpich tests because why not)
Augustin Degomme [Fri, 12 Jun 2020 10:37:59 +0000 (12:37 +0200)]
speeling mistakes in teshsuite (even mpich tests because why not)

3 years agospellings mistakes in doc/
Augustin Degomme [Fri, 12 Jun 2020 10:15:58 +0000 (12:15 +0200)]
spellings mistakes in doc/

3 years agospelling mistakes in docs/
Augustin Degomme [Fri, 12 Jun 2020 10:11:04 +0000 (12:11 +0200)]
spelling mistakes in docs/

3 years agospelling mistakes in include/ and examples/
Augustin Degomme [Fri, 12 Jun 2020 10:01:06 +0000 (12:01 +0200)]
spelling mistakes in include/ and examples/
still with codespell

3 years agoFix most of spelling mistakes in src/
Augustin Degomme [Fri, 12 Jun 2020 09:52:57 +0000 (11:52 +0200)]
Fix most of spelling mistakes in src/
using codespell (https://github.com/codespell-project/codespell)
exclude catch.hpp

3 years agoFinish converting the way we use cfg=smpi/host-speed ourselves -- Bummer
Martin Quinson [Thu, 11 Jun 2020 00:13:29 +0000 (02:13 +0200)]
Finish converting the way we use cfg=smpi/host-speed ourselves -- Bummer

3 years agoFix pip builds
Martin Quinson [Wed, 10 Jun 2020 23:48:50 +0000 (01:48 +0200)]
Fix pip builds

3 years agoAlign the definitions of surf_parsed_filename accross files
Martin Quinson [Wed, 10 Jun 2020 23:43:21 +0000 (01:43 +0200)]
Align the definitions of surf_parsed_filename accross files

3 years agoClarify one paragraph in the doc
Martin Quinson [Wed, 10 Jun 2020 23:38:20 +0000 (01:38 +0200)]
Clarify one paragraph in the doc

3 years agoAccept units for 'smpi/host-speed' config element
Martin Quinson [Wed, 10 Jun 2020 23:24:35 +0000 (01:24 +0200)]
Accept units for 'smpi/host-speed' config element

3 years agosplit surf_parse into a separate file to make it reusable from elsewhere
Martin Quinson [Wed, 10 Jun 2020 21:35:42 +0000 (23:35 +0200)]
split surf_parse into a separate file to make it reusable from elsewhere

Also rename surf_parse_* functions into xbt_parse_*

Also, make the file name and line number explicit, as parameters to
functions that need it (less hidden global state is better). But I was
too lazy to clean smpi::parse_factor() tonight: the pandora box
remains closed for tonight.

3 years agoleaks --
Augustin Degomme [Tue, 9 Jun 2020 12:40:03 +0000 (14:40 +0200)]
leaks --
These lines were not supposed to be included in latest commit.
But as I had already written the commit message warning of memory leaks, I decided to add them anymway, in order not to lie.

3 years agodon't throw in smpi_helpers when passing configure, it may confuse some checkers
Augustin Degomme [Tue, 9 Jun 2020 09:28:50 +0000 (11:28 +0200)]
don't throw in smpi_helpers when passing configure, it may confuse some checkers
petsc fails detection of getcwd and others, because we are pulling them in our header with a different signature

3 years agoimprove handling of persistent requests.
Augustin Degomme [Mon, 8 Jun 2020 21:24:36 +0000 (23:24 +0200)]
improve handling of persistent requests.
not great, could leak in some cases.

3 years agoFinished = inactive
Augustin Degomme [Mon, 8 Jun 2020 14:05:42 +0000 (16:05 +0200)]
Finished = inactive
One is allowed to call MPI_WAIT with a null or inactive request argument. In this case the operation returns immediately with empty status.

3 years agostandard says handle should be set to MPI_DATATYPE_NULL.
Augustin Degomme [Mon, 8 Jun 2020 10:23:35 +0000 (12:23 +0200)]
standard says handle should be set to MPI_DATATYPE_NULL.

3 years agoThis call can be performed before MPI_Init, avoid bench_end/bench_start.
Augustin Degomme [Sun, 7 Jun 2020 15:39:33 +0000 (17:39 +0200)]
This call can be performed before MPI_Init, avoid bench_end/bench_start.

3 years agoreturning the correct value is better, weirdly.
Augustin Degomme [Sun, 7 Jun 2020 15:08:04 +0000 (17:08 +0200)]
returning the correct value is better, weirdly.

3 years agofix issues with attr and cloning
augustin degomme [Sun, 7 Jun 2020 01:57:30 +0000 (03:57 +0200)]
fix issues with attr and cloning

3 years agoplease clang
Augustin Degomme [Sun, 7 Jun 2020 01:12:07 +0000 (03:12 +0200)]
please clang

3 years agoeven if useless, let's initialize these to avoid upsetting valgrind.
Augustin Degomme [Sat, 6 Jun 2020 20:54:14 +0000 (22:54 +0200)]
even if useless, let's initialize these to avoid upsetting valgrind.

3 years agoFix MPI_Type_dup for derived datatypes.
Augustin Degomme [Sat, 6 Jun 2020 20:52:23 +0000 (22:52 +0200)]
Fix MPI_Type_dup for derived datatypes.

3 years agoplease sonar
augustin degomme [Sat, 6 Jun 2020 11:45:32 +0000 (13:45 +0200)]
please sonar

3 years agoTiny fixes
augustin degomme [Sat, 6 Jun 2020 09:38:16 +0000 (11:38 +0200)]
Tiny fixes
I was just checking than sanitizers, valgrind, and static analysis were still working.

3 years agoImplement MPI_Type_get_envelope and MPI_Type_get_contents
Augustin Degomme [Fri, 5 Jun 2020 23:35:17 +0000 (01:35 +0200)]
Implement MPI_Type_get_envelope and MPI_Type_get_contents

3 years agonothing to see here.
Augustin Degomme [Fri, 5 Jun 2020 15:11:00 +0000 (17:11 +0200)]
nothing to see here.

3 years agodon't fail for these probably harmless unimplemented calls
Augustin Degomme [Fri, 5 Jun 2020 14:45:43 +0000 (16:45 +0200)]
don't fail for these probably harmless unimplemented calls

3 years agoPrefer doublequotes (codacy).
Arnaud Giersch [Thu, 4 Jun 2020 15:39:59 +0000 (17:39 +0200)]
Prefer doublequotes (codacy).

3 years agoExclude more odr violations (seen with boost 1.71).
Arnaud Giersch [Thu, 4 Jun 2020 15:36:45 +0000 (17:36 +0200)]
Exclude more odr violations (seen with boost 1.71).

3 years agowhen SMPI_PRETEND_CC is set, don't replace program xx by subroutine xx, we want to...
Augustin Degomme [Fri, 5 Jun 2020 10:19:41 +0000 (12:19 +0200)]
when SMPI_PRETEND_CC is set, don't replace program xx by subroutine xx, we want to keep an entry point

3 years agochangelog
Augustin Degomme [Wed, 3 Jun 2020 20:32:12 +0000 (22:32 +0200)]
changelog

3 years agoTry to fix python tests failing with python 3.9 on fedora-rawhide.
Arnaud Giersch [Wed, 3 Jun 2020 19:12:29 +0000 (21:12 +0200)]
Try to fix python tests failing with python 3.9 on fedora-rawhide.

3 years agotry to fix ns3 examples. Not sure this was the way intended, but it avoids crashes...
Augustin Degomme [Wed, 3 Jun 2020 09:20:00 +0000 (11:20 +0200)]
try to fix ns3 examples. Not sure this was the way intended, but it avoids crashes for now.

3 years agorequalify all SMPI tesh files with timing information due to previous change
Augustin Degomme [Wed, 3 Jun 2020 00:20:30 +0000 (02:20 +0200)]
requalify all SMPI tesh files with timing information due to previous change

3 years agoadd a 16 byte envelope to each MPI message.
Augustin Degomme [Wed, 3 Jun 2020 00:19:51 +0000 (02:19 +0200)]
add a 16 byte envelope to each MPI message.
This simulates the send of src/dest,tag, and communicator, as in all MPI implems.
This avoids 0-sized messages to be sent to the lower layers, and should be more realistic
This will change simulation times a little bit.