Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
simgrid.git
11 months agoMerge branch 'python-repr' into 'master'
Martin Quinson [Thu, 1 Jun 2023 11:20:43 +0000 (11:20 +0000)]
Merge branch 'python-repr' into 'master'

add repr for many simgrid objects

See merge request simgrid/simgrid!156

11 months agoswitch repr to Class(objectname). fix python operation tests.
Adrien Gougeon [Thu, 1 Jun 2023 09:48:52 +0000 (11:48 +0200)]
switch repr to Class(objectname). fix python operation tests.

11 months agoadd repr for many simgrid objects. replace mailbox __str__ to match __repr__ of other...
Adrien Gougeon [Thu, 1 Jun 2023 08:49:52 +0000 (10:49 +0200)]
add repr for many simgrid objects. replace mailbox __str__ to match __repr__ of others objects. clang-format.

11 months agoASan: yet another odr-violation to ignore.
Arnaud Giersch [Thu, 1 Jun 2023 07:23:19 +0000 (09:23 +0200)]
ASan: yet another odr-violation to ignore.

11 months agoAdd missing includes.
Arnaud Giersch [Wed, 31 May 2023 08:48:26 +0000 (10:48 +0200)]
Add missing includes.

11 months agoCorrect signature for deleted constructor.
Arnaud Giersch [Wed, 31 May 2023 08:48:26 +0000 (10:48 +0200)]
Correct signature for deleted constructor.

11 months agofiring on_this_completion breaks a lot of tests and I don't see how to fix this ...
Fred Suter [Wed, 31 May 2023 21:38:07 +0000 (17:38 -0400)]
firing on_this_completion breaks a lot of tests and I don't see how to fix this (@agiersch, any idea?)

11 months ago add on_this_veto signal to Activities
Fred Suter [Wed, 31 May 2023 20:55:13 +0000 (16:55 -0400)]
 add on_this_veto signal to Activities

11 months agoforgot to fire signals
Fred Suter [Wed, 31 May 2023 20:38:06 +0000 (16:38 -0400)]
forgot to fire signals

11 months agosimplify example
Fred Suter [Wed, 31 May 2023 20:27:26 +0000 (16:27 -0400)]
simplify example

11 months ago add on_this_[suspend,resume] signals to Activities
Fred Suter [Wed, 31 May 2023 20:21:37 +0000 (16:21 -0400)]
 add on_this_[suspend,resume] signals to Activities

11 months ago add on_this_completion signal to Activities
Fred Suter [Wed, 31 May 2023 20:03:55 +0000 (16:03 -0400)]
 add on_this_completion signal to Activities

11 months ago add on_this_start signal to Activities
Fred Suter [Wed, 31 May 2023 19:27:27 +0000 (15:27 -0400)]
 add on_this_start signal to Activities

11 months agoimprove comment
Fred Suter [Wed, 31 May 2023 14:10:41 +0000 (10:10 -0400)]
improve comment

11 months agoMerge branch 'doc-photovoltaic-plugin' into 'master'
Martin Quinson [Wed, 31 May 2023 15:11:10 +0000 (15:11 +0000)]
Merge branch 'doc-photovoltaic-plugin' into 'master'

add links to photovoltaic power/cost models in docs

See merge request simgrid/simgrid!155

11 months agoadd links to power/cost models in docs
Adrien Gougeon [Wed, 31 May 2023 14:18:34 +0000 (16:18 +0200)]
add links to power/cost models in docs

11 months agoMerge branch 'operation-python' into 'master'
Martin Quinson [Wed, 31 May 2023 12:30:47 +0000 (12:30 +0000)]
Merge branch 'operation-python' into 'master'

add python bindings for operations

See merge request simgrid/simgrid!153

11 months agoMerge branch 'simgrid-fork-plugin-photovoltaic'
Martin Quinson [Wed, 31 May 2023 12:23:45 +0000 (14:23 +0200)]
Merge branch 'simgrid-fork-plugin-photovoltaic'

11 months agomove on_start and on_completion from CommImpl to Comm
Fred Suter [Wed, 31 May 2023 01:38:16 +0000 (21:38 -0400)]
move on_start and on_completion from CommImpl to Comm

11 months agoGitHub action: update to actions/checkout@v3
Martin Quinson [Tue, 30 May 2023 14:06:16 +0000 (16:06 +0200)]
GitHub action: update to actions/checkout@v3

11 months agoadd python bindings for operations
Adrien Gougeon [Tue, 30 May 2023 10:57:58 +0000 (12:57 +0200)]
add python bindings for operations

11 months agoPlease Sonar and scan-build.
Arnaud Giersch [Wed, 24 May 2023 12:38:50 +0000 (14:38 +0200)]
Please Sonar and scan-build.

11 months agoMake ASan ignore more odr-violations.
Arnaud Giersch [Wed, 24 May 2023 12:34:42 +0000 (14:34 +0200)]
Make ASan ignore more odr-violations.

11 months agoFix some sonar issues in includes, after upgrade to c++17.
Arnaud Giersch [Wed, 24 May 2023 12:28:22 +0000 (14:28 +0200)]
Fix some sonar issues in includes, after upgrade to c++17.

11 months agoDisable implicit conversions in nlohmann/json.
Arnaud Giersch [Wed, 24 May 2023 16:18:15 +0000 (18:18 +0200)]
Disable implicit conversions in nlohmann/json.

See https://github.com/nlohmann/json#implicit-conversions

11 months agomove handling of remote disks to platform parsing.
Fred Suter [Tue, 23 May 2023 14:17:54 +0000 (10:17 -0400)]
move handling of remote disks to platform parsing.
they should be accessible without having to load the filesystem plugin.
only the notion of mounting point really pertains to the plugin

11 months agoadd accessors
Fred Suter [Tue, 23 May 2023 12:08:43 +0000 (08:08 -0400)]
add accessors

11 months agoSpecialize the Activity on_veto, on_suspend and on_resume in AnyActivity to ease...
Martin Quinson [Wed, 24 May 2023 00:02:02 +0000 (02:02 +0200)]
Specialize the Activity on_veto, on_suspend and on_resume in AnyActivity to ease the matching

11 months agoHide a bit an internal method (make it protected)
Martin Quinson [Tue, 23 May 2023 22:45:49 +0000 (00:45 +0200)]
Hide a bit an internal method (make it protected)

11 months agoeasy cleanup
Martin Quinson [Tue, 23 May 2023 22:25:44 +0000 (00:25 +0200)]
easy cleanup

11 months agoGive the on_this_ variant to all VM signals
Martin Quinson [Tue, 23 May 2023 21:56:46 +0000 (23:56 +0200)]
Give the on_this_ variant to all VM signals

11 months agoSort the signals on the plugin page
Martin Quinson [Tue, 23 May 2023 21:27:32 +0000 (23:27 +0200)]
Sort the signals on the plugin page

+ also fix some documentation errors

11 months agoRename Resource::on_state_change to Resource::on_onoff for sake of clarity
Martin Quinson [Tue, 23 May 2023 21:20:44 +0000 (23:20 +0200)]
Rename Resource::on_state_change to Resource::on_onoff for sake of clarity

11 months agoUse the right version for the deprecate macro
Martin Quinson [Tue, 23 May 2023 20:39:09 +0000 (22:39 +0200)]
Use the right version for the deprecate macro

11 months agoGive the _this_ variants to the Link signals
Martin Quinson [Tue, 23 May 2023 19:50:15 +0000 (21:50 +0200)]
Give the _this_ variants to the Link signals

11 months agoIgnore ASan warnings about odr-violation with Activity_T::on_completion.
Arnaud Giersch [Tue, 23 May 2023 15:33:45 +0000 (17:33 +0200)]
Ignore ASan warnings about odr-violation with Activity_T::on_completion.

These are false positives IIUC.

[ci-skip]

11 months agoMerge branch 'master' of framagit.org:simgrid/simgrid
Martin Quinson [Tue, 23 May 2023 18:57:11 +0000 (20:57 +0200)]
Merge branch 'master' of framagit.org:simgrid/simgrid

11 months agoVarious cleanups in the Host signals
Martin Quinson [Tue, 23 May 2023 18:43:26 +0000 (20:43 +0200)]
Various cleanups in the Host signals

- Add a on_this_*_cb variant to the Host signals
- Rename Activity::on_{suspended,resumed} for symmetry with Actor signals
- Change kernel::activity::CpuAction::on_state_change to s4u::Host::on_exec_state_change

11 months agoRemove global variables in PageStore_test too (mimic Snapshot_test).
Arnaud Giersch [Tue, 23 May 2023 13:46:51 +0000 (15:46 +0200)]
Remove global variables in PageStore_test too (mimic Snapshot_test).

11 months agoUse C++17 features: std::scoped_lock and structured bindings.
Arnaud Giersch [Tue, 23 May 2023 12:33:54 +0000 (14:33 +0200)]
Use C++17 features: std::scoped_lock and structured bindings.

11 months agoUse the "_t" and "_v" version of type traits.
Arnaud Giersch [Tue, 23 May 2023 12:26:38 +0000 (14:26 +0200)]
Use the "_t" and "_v" version of type traits.

11 months agoCompact namespaces.
Arnaud Giersch [Tue, 23 May 2023 10:05:47 +0000 (12:05 +0200)]
Compact namespaces.

11 months agoC++17 support is now required for public headers too.
Arnaud Giersch [Tue, 23 May 2023 09:45:42 +0000 (11:45 +0200)]
C++17 support is now required for public headers too.

Update ChangeLog, FindSimGrid.cmake, and sonar-project.properties.

11 months agoadd Io operations and an example
Fred Suter [Tue, 23 May 2023 10:36:14 +0000 (06:36 -0400)]
add Io operations and an example

11 months agoanother try to please clang
Fred Suter [Tue, 23 May 2023 08:17:57 +0000 (04:17 -0400)]
another try to please clang

11 months agotry to solve the -Wundefined-var-template thing with clang
Fred Suter [Tue, 23 May 2023 07:56:02 +0000 (03:56 -0400)]
try to solve the -Wundefined-var-template thing with clang

11 months agoallow operation to execute more than one function at start and end
Fred Suter [Tue, 23 May 2023 07:55:06 +0000 (03:55 -0400)]
allow operation to execute more than one function at start and end

11 months agoadd missing override
Fred Suter [Mon, 22 May 2023 19:21:41 +0000 (15:21 -0400)]
add missing override

11 months agohave a on_completion per activity type to save users some dynamic_cast-based filtering
Fred Suter [Mon, 22 May 2023 17:49:53 +0000 (13:49 -0400)]
have a on_completion per activity type to save users some dynamic_cast-based filtering

11 months agoAdd instance signals for all Disk signals
Martin Quinson [Mon, 22 May 2023 15:13:14 +0000 (17:13 +0200)]
Add instance signals for all Disk signals

11 months agoAdd instance signals for all Actor signals
Martin Quinson [Mon, 22 May 2023 15:02:54 +0000 (17:02 +0200)]
Add instance signals for all Actor signals

11 months agono need to save all ns3 sink points
Martin Quinson [Sat, 20 May 2023 22:05:31 +0000 (00:05 +0200)]
no need to save all ns3 sink points

11 months agoRename cfg 'ns3/TcpModel' to 'ns3/UdpModel'
Martin Quinson [Sat, 20 May 2023 21:46:51 +0000 (23:46 +0200)]
Rename cfg 'ns3/TcpModel' to 'ns3/UdpModel'

11 months agoTest that setting ns3 TCP models actually work
Martin Quinson [Fri, 19 May 2023 14:35:57 +0000 (16:35 +0200)]
Test that setting ns3 TCP models actually work

11 months agocosmetics in the ChangeLog
Martin Quinson [Fri, 12 May 2023 12:46:17 +0000 (14:46 +0200)]
cosmetics in the ChangeLog

11 months ago allow activities launched by maestro to be instrumented
Fred Suter [Mon, 22 May 2023 12:33:42 +0000 (08:33 -0400)]
 allow activities launched by maestro to be instrumented

11 months agothrow on_send and on_receive signals when doing a host-to-host Comm
Fred Suter [Wed, 17 May 2023 19:14:07 +0000 (15:14 -0400)]
throw on_send and on_receive signals when doing a host-to-host Comm
this is needed by instrumentation

11 months agoallow to set tracing category in STARTING state
Fred Suter [Tue, 16 May 2023 15:40:38 +0000 (11:40 -0400)]
allow to set tracing category in STARTING state

11 months agoExplicitly capture required scope variables (sonar).
Arnaud Giersch [Wed, 17 May 2023 12:14:35 +0000 (14:14 +0200)]
Explicitly capture required scope variables (sonar).

11 months agoGet rid of global variables for snapshot tests.
Arnaud Giersch [Wed, 17 May 2023 12:01:57 +0000 (14:01 +0200)]
Get rid of global variables for snapshot tests.

Also fix some sonar issues.

12 months agofix example photovoltaic
Adrien Gougeon [Tue, 16 May 2023 16:02:10 +0000 (18:02 +0200)]
fix example photovoltaic

12 months agoadd photovoltaic plugin
Adrien Gougeon [Tue, 16 May 2023 14:07:34 +0000 (16:07 +0200)]
add photovoltaic plugin

12 months agoReduce scope for variables.
Arnaud Giersch [Tue, 16 May 2023 12:44:01 +0000 (14:44 +0200)]
Reduce scope for variables.

12 months agoDon't shadow outer variables.
Arnaud Giersch [Tue, 16 May 2023 09:29:39 +0000 (11:29 +0200)]
Don't shadow outer variables.

12 months agoUse plain pointers instead of references to pointer.
Arnaud Giersch [Mon, 15 May 2023 15:12:12 +0000 (17:12 +0200)]
Use plain pointers instead of references to pointer.

12 months agoSuprious brace (fix non-linux builds).
Arnaud Giersch [Mon, 15 May 2023 13:25:05 +0000 (15:25 +0200)]
Suprious brace (fix non-linux builds).

12 months agoDefine master_socket_name only once, and embed it with the request to fork.
Arnaud Giersch [Mon, 15 May 2023 08:39:45 +0000 (10:39 +0200)]
Define master_socket_name only once, and embed it with the request to fork.

12 months agoTry harder not to fail with stale sockets after several runs.
Arnaud Giersch [Fri, 12 May 2023 09:19:55 +0000 (11:19 +0200)]
Try harder not to fail with stale sockets after several runs.

* on linux, prefer abstract unix sockets that are automatically removed
* otherwise, remove possible stale socket before bind

12 months agoThe default destructor should be fine.
Arnaud Giersch [Fri, 12 May 2023 11:15:06 +0000 (13:15 +0200)]
The default destructor should be fine.

12 months agoDisable move constructor which cannot be 'noexecept' (sonar).
Arnaud Giersch [Fri, 12 May 2023 07:45:46 +0000 (09:45 +0200)]
Disable move constructor which cannot be 'noexecept' (sonar).

12 months agoCosmetics.
Arnaud Giersch [Fri, 12 May 2023 07:30:55 +0000 (09:30 +0200)]
Cosmetics.

12 months agoadd two more utility functions to the Operation plugin
Fred Suter [Thu, 11 May 2023 14:29:20 +0000 (10:29 -0400)]
add two more utility functions to the Operation plugin

12 months agoFix make distcheck
Martin Quinson [Wed, 10 May 2023 21:35:25 +0000 (23:35 +0200)]
Fix make distcheck

12 months agoMC: Kill the now useless code State::get_recipe
Martin Quinson [Wed, 10 May 2023 21:27:34 +0000 (23:27 +0200)]
MC: Kill the now useless code State::get_recipe

12 months agoMerge branch 'master' of framagit.org:simgrid/simgrid
Martin Quinson [Wed, 10 May 2023 21:22:28 +0000 (23:22 +0200)]
Merge branch 'master' of framagit.org:simgrid/simgrid

12 months agoDFS MC: Restore from system states even if we have to run some transitions out of it
Martin Quinson [Wed, 10 May 2023 21:21:10 +0000 (23:21 +0200)]
DFS MC: Restore from system states even if we have to run some transitions out of it

This makes the model-check/checkpoint a bit more efficient by
increasing the amount of cases where we can reuse taken checkpoints.

It is still awfully slow because checkpoints are. The next step is to
implement model-check/checkpoint with forks.

12 months agoMerge branch 'dag-lab' into 'master'
Martin Quinson [Wed, 10 May 2023 11:08:09 +0000 (11:08 +0000)]
Merge branch 'dag-lab' into 'master'

Add dag scheduling lab to docs

See merge request simgrid/simgrid!150

12 months agoMerge branch 'changelog-operation-plugin' into 'master'
Martin Quinson [Wed, 10 May 2023 11:07:36 +0000 (11:07 +0000)]
Merge branch 'changelog-operation-plugin' into 'master'

Add plugins operation and battery to changelog

See merge request simgrid/simgrid!149

12 months agoUse forwarding references with std::forward (sonar).
Arnaud Giersch [Tue, 9 May 2023 14:46:08 +0000 (16:46 +0200)]
Use forwarding references with std::forward (sonar).

(hope I got it right this time)

12 months agoUse a std::vector as an underlying container for backtrack_points, so that maximal_su...
Arnaud Giersch [Tue, 9 May 2023 14:27:35 +0000 (16:27 +0200)]
Use a std::vector as an underlying container for backtrack_points, so that maximal_subsets_iterator can have a noexcept move constructor by default.

12 months agoUse a static variable for empty_set, and allow default noexcept move constructor.
Arnaud Giersch [Tue, 9 May 2023 13:57:50 +0000 (15:57 +0200)]
Use a static variable for empty_set, and allow default noexcept move constructor.

12 months agoadd dag scheduling lab
Adrien Gougeon [Tue, 9 May 2023 12:45:25 +0000 (14:45 +0200)]
add dag scheduling lab

12 months agoPlug memory leak.
Arnaud Giersch [Mon, 8 May 2023 19:27:14 +0000 (21:27 +0200)]
Plug memory leak.

12 months agoUse pointer-to-const for parameter (sonar).
Arnaud Giersch [Sat, 6 May 2023 11:48:33 +0000 (13:48 +0200)]
Use pointer-to-const for parameter (sonar).

12 months agoFix sonar bug: attribute access on a value that can be 'None'.
Arnaud Giersch [Fri, 5 May 2023 08:38:39 +0000 (10:38 +0200)]
Fix sonar bug: attribute access on a value that can be 'None'.

12 months agoMisc Sonar issues.
Arnaud Giersch [Thu, 4 May 2023 13:13:45 +0000 (15:13 +0200)]
Misc Sonar issues.

* declare functions "const"
* use pointer-to-const or reference-to-const
* use structured bindings
* extract assignment from expression
* mark constructors "explicit"
* pass large object parameters by reference-to-const
* use default implementation constructor
* explicitly capture required variables in lambdas

12 months agomess up with operations
Fred Suter [Fri, 5 May 2023 01:20:01 +0000 (21:20 -0400)]
mess up with operations
+ chainable setters
+ getters
+ boost instrusive pointers

12 months agoRename Link::get_usage() to Link::get_load() for consistency with Host::
Martin Quinson [Thu, 4 May 2023 14:14:54 +0000 (16:14 +0200)]
Rename Link::get_usage() to Link::get_load() for consistency with Host::

12 months agoadd plugins operation and battery
Adrien Gougeon [Thu, 4 May 2023 09:22:11 +0000 (11:22 +0200)]
add plugins operation and battery

12 months agofurther simplify this example
Fred Suter [Wed, 3 May 2023 14:39:56 +0000 (10:39 -0400)]
further simplify this example

12 months agoOne use less of get_recipe() that will soon die
Martin Quinson [Fri, 28 Apr 2023 00:01:20 +0000 (02:01 +0200)]
One use less of get_recipe() that will soon die

12 months agoFactorize more code between DFSExplo and LivenessExplo, and UDPOR
Martin Quinson [Thu, 27 Apr 2023 23:25:04 +0000 (01:25 +0200)]
Factorize more code between DFSExplo and LivenessExplo, and UDPOR

12 months agoKill useless empty function.
Arnaud Giersch [Tue, 2 May 2023 14:32:11 +0000 (16:32 +0200)]
Kill useless empty function.

12 months agoMissing "override".
Arnaud Giersch [Tue, 2 May 2023 14:22:02 +0000 (16:22 +0200)]
Missing "override".

12 months agoSimplify expression.
Arnaud Giersch [Tue, 2 May 2023 14:14:43 +0000 (16:14 +0200)]
Simplify expression.

12 months agoFix use-after-free observed with the s4u-operation examples.
Arnaud Giersch [Tue, 2 May 2023 14:12:18 +0000 (16:12 +0200)]
Fix use-after-free observed with the s4u-operation examples.

12 months agoCosmetics (sonar).
Arnaud Giersch [Tue, 2 May 2023 14:24:29 +0000 (16:24 +0200)]
Cosmetics (sonar).

12 months agoDefine each identifier in a dedicated statement (sonar).
Arnaud Giersch [Tue, 11 Apr 2023 09:13:59 +0000 (11:13 +0200)]
Define each identifier in a dedicated statement (sonar).

12 months agoRevert "Run mc-*-liveness tests serial, and hope to pass on CI."
Arnaud Giersch [Sat, 29 Apr 2023 08:03:02 +0000 (10:03 +0200)]
Revert "Run mc-*-liveness tests serial, and hope to pass on CI."

This reverts commit 881507dc9fbeba0c63112dd0058d9c591b67419e.

In fact, it was just the CI infrastructure that was unusually slow these days.

12 months agoWhitespace cleanup (codefactor.io).
Arnaud Giersch [Tue, 18 Apr 2023 09:39:48 +0000 (11:39 +0200)]
Whitespace cleanup (codefactor.io).