Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
simgrid.git
3 years agoTell when we have more leaked handles to display
Martin Quinson [Sat, 3 Apr 2021 07:42:34 +0000 (09:42 +0200)]
Tell when we have more leaked handles to display

3 years agoDisplay the leaked handles in the tests (using no_loc to hide pointers)
Martin Quinson [Sat, 3 Apr 2021 07:39:52 +0000 (09:39 +0200)]
Display the leaked handles in the tests (using no_loc to hide pointers)

3 years agoCosmetics in an error message
Martin Quinson [Sat, 3 Apr 2021 07:09:12 +0000 (09:09 +0200)]
Cosmetics in an error message

To ease the grepping of this message in a child project ;)

3 years agoMerge branch 'master' of framagit.org:simgrid/simgrid
Martin Quinson [Sat, 3 Apr 2021 07:05:37 +0000 (09:05 +0200)]
Merge branch 'master' of framagit.org:simgrid/simgrid

3 years agovalidate that MPI_Op can be applied at entrance of MPI call, instead of xbt_dying...
Augustin Degomme [Sat, 3 Apr 2021 00:40:40 +0000 (02:40 +0200)]
validate that MPI_Op can be applied at entrance of MPI call, instead of xbt_dying deep inside SMPI.
For RMA comms, somehow derived datatypes also are allowed. and it's too late for me to add this, so keep the previous checks for now.

3 years agoPack_size is meant to return the upper bound of the size.
Augustin Degomme [Fri, 2 Apr 2021 22:19:17 +0000 (00:19 +0200)]
Pack_size is meant to return the upper bound of the size.
Thanks agier

3 years agoA bool is OK in boolean context.
Arnaud Giersch [Fri, 2 Apr 2021 21:03:11 +0000 (23:03 +0200)]
A bool is OK in boolean context.

3 years agoCosmetics.
Arnaud Giersch [Fri, 2 Apr 2021 20:45:36 +0000 (22:45 +0200)]
Cosmetics.

3 years agochange way WIFI are create + make sharing_policy optional
SUTER Frederic [Fri, 2 Apr 2021 21:38:48 +0000 (23:38 +0200)]
change way WIFI are create + make sharing_policy optional

3 years agoreindent
SUTER Frederic [Fri, 2 Apr 2021 16:59:12 +0000 (18:59 +0200)]
reindent

3 years agomore simplifications
SUTER Frederic [Fri, 2 Apr 2021 16:18:09 +0000 (18:18 +0200)]
more simplifications

3 years agoFix count for SMPI leak report.
Arnaud Giersch [Fri, 2 Apr 2021 20:31:04 +0000 (22:31 +0200)]
Fix count for SMPI leak report.

3 years agoFunction doesn't exist.
Arnaud Giersch [Fri, 2 Apr 2021 19:44:36 +0000 (21:44 +0200)]
Function doesn't exist.

3 years ago[mc] Enable finalize_app() in SafetyChecker.
Arnaud Giersch [Fri, 2 Apr 2021 14:35:31 +0000 (16:35 +0200)]
[mc] Enable finalize_app() in SafetyChecker.

Update mc-coll-allreduce-with-leaks.tesh accordingly.

3 years ago[sonar] Const in s4u::Disk.
Arnaud Giersch [Fri, 2 Apr 2021 12:46:22 +0000 (14:46 +0200)]
[sonar] Const in s4u::Disk.

3 years agoupdate test with latest version from mpich.
Augustin Degomme [Fri, 2 Apr 2021 18:01:29 +0000 (20:01 +0200)]
update test with latest version from mpich.
d5e44448d0 was a misguided fix, as MPI_SUM is forbidden on MPI_BYTE... And I can't remember what the issue with ubsan was, so let's see

3 years agoMPI_BYTE has some specific requirements, and doesn't allow most operations on it
Augustin Degomme [Fri, 2 Apr 2021 17:29:20 +0000 (19:29 +0200)]
MPI_BYTE has some specific requirements, and doesn't allow most operations on it

3 years agoreport the proper size on the receiver side, when its buffer was allocated too largely.
Augustin Degomme [Fri, 2 Apr 2021 15:32:00 +0000 (17:32 +0200)]
report the proper size on the receiver side, when its buffer was allocated too largely.
I'm sure it used to be done properly ...

3 years agoselect proper errhandler when MPI_COMM_WORLD is duplicated
Augustin Degomme [Fri, 2 Apr 2021 15:31:12 +0000 (17:31 +0200)]
select proper errhandler when MPI_COMM_WORLD is duplicated

3 years agorecv should return MPI_ERR_TRUNCATE
Augustin Degomme [Fri, 2 Apr 2021 15:30:51 +0000 (17:30 +0200)]
recv should return MPI_ERR_TRUNCATE
we crash properly when needed, but don't return it properly if errhandler is meant not to crash

3 years agofail when trying to attach a buffer if one is already attached
Augustin Degomme [Fri, 2 Apr 2021 15:28:48 +0000 (17:28 +0200)]
fail when trying to attach a buffer if one is already attached

3 years agowhen the standard said "return" here, it was not meant as return value.
Augustin Degomme [Fri, 2 Apr 2021 15:27:45 +0000 (17:27 +0200)]
when the standard said "return" here, it was not meant as return value.

3 years agowe need to check comm is not null before trying for the rank, duh..
Augustin Degomme [Fri, 2 Apr 2021 09:34:18 +0000 (11:34 +0200)]
we need to check comm is not null before trying for the rank, duh..

3 years agothis tests actually does not conform to the standard and crashed now, but it's OK...
Augustin Degomme [Fri, 2 Apr 2021 09:23:53 +0000 (11:23 +0200)]
this tests actually does not conform to the standard and crashed now, but it's OK to say we are strict here.

3 years agoAdd a deleted flag to keep track of invalid but not actually deleted handles
Augustin Degomme [Fri, 2 Apr 2021 09:23:03 +0000 (11:23 +0200)]
Add a deleted flag to keep track of invalid but not actually deleted handles
We can then crash if someone tries to use it later on.
just do it for Comm for now, will extend later.

3 years agofix size of allocated buffer
Augustin Degomme [Fri, 2 Apr 2021 09:20:03 +0000 (11:20 +0200)]
fix size of allocated buffer

3 years agoImplement MPI_Comm_test_inter.
Augustin Degomme [Fri, 2 Apr 2021 09:19:47 +0000 (11:19 +0200)]
Implement MPI_Comm_test_inter.
Answer is no, as we don't support intercommunicators.

3 years agoadd more Fortran definitions
Augustin Degomme [Fri, 2 Apr 2021 09:19:08 +0000 (11:19 +0200)]
add more Fortran definitions

3 years agoSeal NetZone
Bruno Donassolo [Fri, 2 Apr 2021 17:26:31 +0000 (19:26 +0200)]
Seal NetZone

We need to be able to seal the netzone too.
Sealing a netzone, seals its children and hosts.

Add protection to avoid sealing twice.

3 years agoConstify list of links parameter
Bruno Donassolo [Fri, 2 Apr 2021 16:41:04 +0000 (18:41 +0200)]
Constify list of links parameter

3 years agoSimplified methods to add routes
Bruno Donassolo [Fri, 2 Apr 2021 15:21:23 +0000 (17:21 +0200)]
Simplified methods to add routes

Avoid using LinkImpl in s4u interface.
Add method that raises and exception if netpoint isn't found

Allows the implementation of a platform like small_platform.xml without
using "internal" structures.

3 years agosimplify constant model a bit
SUTER Frederic [Fri, 2 Apr 2021 15:41:11 +0000 (17:41 +0200)]
simplify constant model a bit

3 years agosnake casing IB
SUTER Frederic [Fri, 2 Apr 2021 15:22:01 +0000 (17:22 +0200)]
snake casing IB

3 years agosmall simplifications and cleanups
SUTER Frederic [Fri, 2 Apr 2021 09:28:14 +0000 (11:28 +0200)]
small simplifications and cleanups

3 years agosimplification
SUTER Frederic [Fri, 2 Apr 2021 08:35:42 +0000 (10:35 +0200)]
simplification

3 years agoFix error handling.
Bruno Donassolo [Fri, 2 Apr 2021 10:01:09 +0000 (12:01 +0200)]
Fix error handling.

Raise std::invalid_argument exception instead of dying.

Thanks for the review ;)

3 years agoAvoid a local variable only used by xbt_assert.
Arnaud Giersch [Fri, 2 Apr 2021 08:50:23 +0000 (10:50 +0200)]
Avoid a local variable only used by xbt_assert.

3 years agoChange "if(...) xbt_die(...)" to "xbt_assert(...)".
Arnaud Giersch [Wed, 31 Mar 2021 09:58:57 +0000 (11:58 +0200)]
Change "if(...) xbt_die(...)" to "xbt_assert(...)".

Some of them could certainly be improved to report the error to the user code,
for example with a proper exception, but it's another work.

3 years agoNever disable xbt_assert anymore.
Arnaud Giersch [Fri, 2 Apr 2021 08:25:39 +0000 (10:25 +0200)]
Never disable xbt_assert anymore.

3 years agoMake mc::Api::get_actor_name return a const&.
Arnaud Giersch [Fri, 2 Apr 2021 07:55:05 +0000 (09:55 +0200)]
Make mc::Api::get_actor_name return a const&.

Sometimes avoids unnecessary copies.

3 years agoEmpty is when len == 0!.
Arnaud Giersch [Fri, 2 Apr 2021 08:04:30 +0000 (10:04 +0200)]
Empty is when len == 0!.

3 years agoImprove debug messages (code is still not functional).
Arnaud Giersch [Thu, 1 Apr 2021 21:07:28 +0000 (23:07 +0200)]
Improve debug messages (code is still not functional).

3 years agoFIXME++
Arnaud Giersch [Thu, 1 Apr 2021 21:05:27 +0000 (23:05 +0200)]
FIXME++

3 years agoFix segfault with debug message.
Arnaud Giersch [Thu, 1 Apr 2021 20:49:03 +0000 (22:49 +0200)]
Fix segfault with debug message.

3 years agoRender mc::Api::get_actor_name() public.
Arnaud Giersch [Thu, 1 Apr 2021 20:48:09 +0000 (22:48 +0200)]
Render mc::Api::get_actor_name() public.

3 years agoZero-initialize struct to avoid valgrind warnings.
Arnaud Giersch [Thu, 1 Apr 2021 20:22:15 +0000 (22:22 +0200)]
Zero-initialize struct to avoid valgrind warnings.

Use memset, since there is no warranty that the padding bits are set to zero
with an empty initilizer-list {}

3 years ago[ci-skip] save some space on docker images (without breaking stuff hopefully)
Augustin Degomme [Thu, 1 Apr 2021 19:08:31 +0000 (21:08 +0200)]
[ci-skip] save some space on docker images (without breaking stuff hopefully)

3 years agosnake_case some surviving camels
Martin Quinson [Thu, 1 Apr 2021 19:02:15 +0000 (21:02 +0200)]
snake_case some surviving camels

3 years agoRenaming, snake_case
Bruno Donassolo [Thu, 1 Apr 2021 17:25:15 +0000 (19:25 +0200)]
Renaming, snake_case

3 years agoFriendly set_latency, accepts strings.
Bruno Donassolo [Thu, 1 Apr 2021 17:00:10 +0000 (19:00 +0200)]
Friendly set_latency, accepts strings.

Human-friendly version for set_latency function.
Accepts strings such as "1ms".

3 years agoAdd create_link in s4u::NetZone
Bruno Donassolo [Thu, 1 Apr 2021 16:15:37 +0000 (18:15 +0200)]
Add create_link in s4u::NetZone

With SharingPolicy as parameter since it's mandatory to decide if we
must create a WiFi link or not.

Setting default as SHARED according to DTD

3 years agoSimplyfying create_host and exporting it to s4u::NetZone
Bruno Donassolo [Thu, 1 Apr 2021 15:06:20 +0000 (17:06 +0200)]
Simplyfying create_host and exporting it to s4u::NetZone

3 years agoAdding seal() for Host
Bruno Donassolo [Thu, 1 Apr 2021 14:31:31 +0000 (16:31 +0200)]
Adding seal() for Host

Allow changing Host settings before seal

3 years agoFactory functions for all Netzones
Bruno Donassolo [Thu, 1 Apr 2021 12:16:52 +0000 (14:16 +0200)]
Factory functions for all Netzones

3 years agoDeobfuscate error checking.
Arnaud Giersch [Thu, 1 Apr 2021 13:00:01 +0000 (15:00 +0200)]
Deobfuscate error checking.

3 years agoMove declarations for xbt_abort and xbt_die to xbt/asserts.h.
Arnaud Giersch [Wed, 31 Mar 2021 20:22:32 +0000 (22:22 +0200)]
Move declarations for xbt_abort and xbt_die to xbt/asserts.h.

Adjust some #include consequently.

3 years agoMake xbt_die use the root log category.
Arnaud Giersch [Wed, 31 Mar 2021 20:20:43 +0000 (22:20 +0200)]
Make xbt_die use the root log category.

3 years agoUsing xbt_* functions in vasprintf() does not look like a good idea.
Arnaud Giersch [Thu, 1 Apr 2021 11:28:08 +0000 (13:28 +0200)]
Using xbt_* functions in vasprintf() does not look like a good idea.

3 years agoMoving the models initialization to NetZoneImpl.
Bruno Donassolo [Thu, 1 Apr 2021 09:13:33 +0000 (11:13 +0200)]
Moving the models initialization to NetZoneImpl.

By moving the models init to NetZoneImpl, we don't need the xml to initialize the
models.

This should enable C++ platform creation.

3 years agosg_exit never allowed to reload a platform afterward, so reduce the visibility of...
Martin Quinson [Thu, 1 Apr 2021 07:52:25 +0000 (09:52 +0200)]
sg_exit never allowed to reload a platform afterward, so reduce the visibility of a variable

At least it never worked properly

3 years agotypo (reported by lintian)
Martin Quinson [Thu, 1 Apr 2021 07:22:05 +0000 (09:22 +0200)]
typo (reported by lintian)

3 years agoActor's ID should be a long, and should be named AID
Martin Quinson [Wed, 31 Mar 2021 21:08:43 +0000 (23:08 +0200)]
Actor's ID should be a long, and should be named AID

3 years agoadd libfmt-dev as a pajeng dependency [noci]
Augustin Degomme [Thu, 1 Apr 2021 06:44:28 +0000 (08:44 +0200)]
add libfmt-dev as a pajeng dependency [noci]

3 years agoMake ExecImpl::get_hosts return a const&.
Arnaud Giersch [Wed, 31 Mar 2021 08:59:25 +0000 (10:59 +0200)]
Make ExecImpl::get_hosts return a const&.

3 years agoPointer to const.
Arnaud Giersch [Wed, 31 Mar 2021 08:48:38 +0000 (10:48 +0200)]
Pointer to const.

3 years agoUnused variable.
Arnaud Giersch [Wed, 31 Mar 2021 08:46:36 +0000 (10:46 +0200)]
Unused variable.

3 years agoSave a reinterpret_cast.
Arnaud Giersch [Wed, 31 Mar 2021 08:19:41 +0000 (10:19 +0200)]
Save a reinterpret_cast.

3 years agoConstify xbt::string::to_string_data.
Arnaud Giersch [Wed, 31 Mar 2021 08:07:37 +0000 (10:07 +0200)]
Constify xbt::string::to_string_data.

3 years agoPtrace returns a long int.
Arnaud Giersch [Wed, 31 Mar 2021 07:54:55 +0000 (09:54 +0200)]
Ptrace returns a long int.

3 years ago[mc] Add some coverage_checkpoint() for model-checked applications.
Arnaud Giersch [Tue, 30 Mar 2021 12:29:11 +0000 (14:29 +0200)]
[mc] Add some coverage_checkpoint() for model-checked applications.

3 years ago[mc] Politely ask the model-checked application to terminate on shutdown.
Arnaud Giersch [Tue, 30 Mar 2021 12:25:54 +0000 (14:25 +0200)]
[mc] Politely ask the model-checked application to terminate on shutdown.

3 years ago[mc] Add an option to ask a model-checked application to terminate.
Arnaud Giersch [Tue, 30 Mar 2021 12:24:19 +0000 (14:24 +0200)]
[mc] Add an option to ask a model-checked application to terminate.

3 years ago[mc] Use a basic message type for answering mc::MessageType::FINALIZE.
Arnaud Giersch [Tue, 30 Mar 2021 12:10:51 +0000 (14:10 +0200)]
[mc] Use a basic message type for answering mc::MessageType::FINALIZE.

3 years ago[mc] Use existing ModelChecker::shutdown() on ModelChecker::exit().
Arnaud Giersch [Mon, 29 Mar 2021 09:53:13 +0000 (11:53 +0200)]
[mc] Use existing ModelChecker::shutdown() on ModelChecker::exit().

3 years ago[mc] Terminate crashing applications too.
Arnaud Giersch [Tue, 30 Mar 2021 13:26:42 +0000 (15:26 +0200)]
[mc] Terminate crashing applications too.

3 years agoRemove function calls with side effects from xbt_assert.
Arnaud Giersch [Tue, 30 Mar 2021 09:12:12 +0000 (11:12 +0200)]
Remove function calls with side effects from xbt_assert.

3 years agoForgot initial dash line in ChangeLog.
Arnaud Giersch [Mon, 29 Mar 2021 20:52:42 +0000 (22:52 +0200)]
Forgot initial dash line in ChangeLog.

3 years ago[mc] Don't retrieve actor hostname again if it's already there.
Arnaud Giersch [Tue, 30 Mar 2021 19:57:49 +0000 (21:57 +0200)]
[mc] Don't retrieve actor hostname again if it's already there.

3 years ago[mc] Fix mc::Api::get_actor_host_name.
Arnaud Giersch [Tue, 30 Mar 2021 19:52:54 +0000 (21:52 +0200)]
[mc] Fix mc::Api::get_actor_host_name.

Host name has moved from Host to HostImpl.

3 years agoRevert "Fix MC tests."
Arnaud Giersch [Tue, 30 Mar 2021 19:45:44 +0000 (21:45 +0200)]
Revert "Fix MC tests."

This reverts commit ba5cf16371aed445f20533645ca049990862630a.

A fix for the MC side is coming soon.

3 years agoFix MC tests.
Bruno Donassolo [Tue, 30 Mar 2021 17:58:32 +0000 (19:58 +0200)]
Fix MC tests.

Move back host name to s4u::Host. There, it's accessible by MC

3 years agoRefactor Host and HostImpl
Bruno Donassolo [Thu, 18 Mar 2021 09:49:30 +0000 (10:49 +0100)]
Refactor Host and HostImpl

- Going towards empty s4u interfaces
- s4u::Host is created at HostImpl directly as for s4u::Link and
LinkImpl.
- VirtualMachines are still an exception. The user creates directly the
s4u::VirtualMachine object

3 years agoNew API: set_pstate_speed
Bruno Donassolo [Thu, 25 Mar 2021 16:48:42 +0000 (17:48 +0100)]
New API: set_pstate_speed

Implement new API to set pstate for a host:
- Host* Host::set_pstate_speed(const std::vector<double>& speed_per_state)
- Host* Host::set_pstate_speed(const std::vector<std::string>& speed_per_state)

3 years agofix java test: get_remaining() needs the Exec to be started
SUTER Frederic [Tue, 30 Mar 2021 10:45:34 +0000 (12:45 +0200)]
fix java test: get_remaining() needs the Exec to be started

3 years agotry to match Activity design to Resource design
SUTER Frederic [Sat, 27 Mar 2021 11:28:25 +0000 (12:28 +0100)]
try to match Activity design to Resource design

3 years agoDefine next XBT_ATTRIB_DEPRECATED macro.
Arnaud Giersch [Sun, 28 Mar 2021 15:28:56 +0000 (17:28 +0200)]
Define next XBT_ATTRIB_DEPRECATED macro.

3 years agoRemove deprecated features for next release.
Arnaud Giersch [Sun, 28 Mar 2021 13:50:57 +0000 (15:50 +0200)]
Remove deprecated features for next release.

3 years agoStart the dev of 3.28.
Arnaud Giersch [Sun, 28 Mar 2021 13:44:45 +0000 (15:44 +0200)]
Start the dev of 3.28.

3 years agoRelease SimGrid v3.27 v3.27
Martin Quinson [Mon, 29 Mar 2021 14:44:45 +0000 (16:44 +0200)]
Release SimGrid v3.27

3 years agoAvoid using && in .gitlab-ci.yml.
Arnaud Giersch [Mon, 29 Mar 2021 12:56:19 +0000 (14:56 +0200)]
Avoid using && in .gitlab-ci.yml.

It does not always stop the script as we would expect.
See https://gitlab.com/gitlab-org/gitlab-runner/-/issues/25394 for more info.

3 years agoMove xbt_modinter.h to src/include/xbt/.
Arnaud Giersch [Mon, 29 Mar 2021 11:30:47 +0000 (13:30 +0200)]
Move xbt_modinter.h to src/include/xbt/.

3 years agoTypos [noci]
Martin Quinson [Mon, 29 Mar 2021 10:28:08 +0000 (12:28 +0200)]
Typos [noci]

3 years agoadd some words about new options in smpi tuto
Augustin Degomme [Sun, 28 Mar 2021 23:36:04 +0000 (01:36 +0200)]
add some words about new options in smpi tuto

3 years agotypo [noci]
Augustin Degomme [Sun, 28 Mar 2021 15:55:04 +0000 (17:55 +0200)]
typo [noci]

3 years agocosmetics
Augustin Degomme [Sun, 28 Mar 2021 14:03:30 +0000 (16:03 +0200)]
cosmetics

3 years agoadd message when 0 bytes are allocated
Augustin Degomme [Sun, 28 Mar 2021 14:03:09 +0000 (16:03 +0200)]
add message when 0 bytes are allocated

3 years agoProposition of a NEWS entry
Martin Quinson [Sun, 28 Mar 2021 10:11:44 +0000 (12:11 +0200)]
Proposition of a NEWS entry

3 years agocosmetics
Augustin Degomme [Sun, 28 Mar 2021 01:47:16 +0000 (03:47 +0200)]
cosmetics

3 years agoalso change option name in MC-flavored tesh
Augustin Degomme [Sun, 28 Mar 2021 01:29:20 +0000 (03:29 +0200)]
also change option name in MC-flavored tesh

3 years agotrim changelog
Augustin Degomme [Sun, 28 Mar 2021 00:59:56 +0000 (01:59 +0100)]
trim changelog