Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
simgrid.git
16 months agoInstall SIGSEGV handler unconditionally.
Arnaud Giersch [Fri, 13 Jan 2023 12:14:52 +0000 (13:14 +0100)]
Install SIGSEGV handler unconditionally.

16 months agoNo need to compute coverage for Java anymore.
Arnaud Giersch [Fri, 13 Jan 2023 10:21:04 +0000 (11:21 +0100)]
No need to compute coverage for Java anymore.

[ci-skip]

16 months agoUpdate scripts for Jenkins, now that Java is gone.
Arnaud Giersch [Fri, 13 Jan 2023 08:57:30 +0000 (09:57 +0100)]
Update scripts for Jenkins, now that Java is gone.

16 months agoI guess that this line was not meant to be removed.
Arnaud Giersch [Fri, 13 Jan 2023 08:48:05 +0000 (09:48 +0100)]
I guess that this line was not meant to be removed.

16 months agoNo need to install Java-related packages anymore.
Arnaud Giersch [Fri, 13 Jan 2023 08:35:59 +0000 (09:35 +0100)]
No need to install Java-related packages anymore.

16 months agoMinor cleanups.
Arnaud Giersch [Fri, 13 Jan 2023 08:33:40 +0000 (09:33 +0100)]
Minor cleanups.

16 months agoTypos.
Arnaud Giersch [Fri, 13 Jan 2023 08:29:14 +0000 (09:29 +0100)]
Typos.

16 months agoFix the pages job on gitlab CI
Martin Quinson [Thu, 12 Jan 2023 23:43:59 +0000 (00:43 +0100)]
Fix the pages job on gitlab CI

16 months agoRemove Java bindings. They are not updated since maybe 10 years
Martin Quinson [Thu, 12 Jan 2023 11:13:37 +0000 (12:13 +0100)]
Remove Java bindings. They are not updated since maybe 10 years

We want to remove MSG and slowly transition to SimGrid 4.

16 months agopthreads are not used anymore. Standard C++ ones are
Martin Quinson [Wed, 11 Jan 2023 14:05:32 +0000 (15:05 +0100)]
pthreads are not used anymore. Standard C++ ones are

16 months agoKill remaining traces of win32 support.
Arnaud Giersch [Thu, 12 Jan 2023 09:04:19 +0000 (10:04 +0100)]
Kill remaining traces of win32 support.

16 months agoRemove ancient hack.
Arnaud Giersch [Wed, 11 Jan 2023 08:38:10 +0000 (09:38 +0100)]
Remove ancient hack.

16 months agoCosmetics: align with other similar declarations.
Arnaud Giersch [Fri, 6 Jan 2023 07:53:19 +0000 (08:53 +0100)]
Cosmetics: align with other similar declarations.

16 months agoFix make distcheck
Martin Quinson [Tue, 10 Jan 2023 21:58:12 +0000 (22:58 +0100)]
Fix make distcheck

16 months agoStop trying to build on native WIN32, it's broken anyway
Martin Quinson [Sat, 7 Jan 2023 20:54:21 +0000 (21:54 +0100)]
Stop trying to build on native WIN32, it's broken anyway

16 months agoFix tests built with PYBIND11_ASSERT_GIL_HELD_INCREF_DECREF.
Arnaud Giersch [Thu, 5 Jan 2023 15:44:08 +0000 (16:44 +0100)]
Fix tests built with PYBIND11_ASSERT_GIL_HELD_INCREF_DECREF.

There was more (hidden) calls to inc_ref/dec_ref while the GIL was not held.

All of them are lambdas used as callbacks with a captured py::object.
As a workaround, the reference counter is increased before releasing the GIL,
and the lambda simply captures the raw pointers.

For more details, see the release notes for pybind11 versions 2.10.2, 2.10.3,
and the future 2.11.

16 months agoEnsure that the GIL is held when using inc_ref/dec_ref.
Arnaud Giersch [Thu, 5 Jan 2023 13:54:39 +0000 (14:54 +0100)]
Ensure that the GIL is held when using inc_ref/dec_ref.

16 months agoUse C++ string for argument.
Arnaud Giersch [Wed, 4 Jan 2023 15:20:31 +0000 (16:20 +0100)]
Use C++ string for argument.

16 months agoSuperfluous py::call_guard.
Arnaud Giersch [Wed, 4 Jan 2023 15:08:23 +0000 (16:08 +0100)]
Superfluous py::call_guard.

16 months agoReindent.
Arnaud Giersch [Thu, 5 Jan 2023 13:49:36 +0000 (14:49 +0100)]
Reindent.

16 months agoUpdate copyright lines for 2023.
Arnaud Giersch [Sun, 1 Jan 2023 10:55:08 +0000 (11:55 +0100)]
Update copyright lines for 2023.

17 months agoUse std::byte for bye-oriented data manipulation (sonar).
Arnaud Giersch [Tue, 10 May 2022 13:45:07 +0000 (15:45 +0200)]
Use std::byte for bye-oriented data manipulation (sonar).

17 months agoReally exclude MBI scripts from Sonar analysis.
Arnaud Giersch [Fri, 16 Dec 2022 15:49:38 +0000 (16:49 +0100)]
Really exclude MBI scripts from Sonar analysis.

[ci-skip]

17 months agoLGTM.com will be shut down in the next days.
Arnaud Giersch [Fri, 9 Dec 2022 13:51:00 +0000 (14:51 +0100)]
LGTM.com will be shut down in the next days.

[ci-skip]

17 months agoPointer to const++ (sonar).
Arnaud Giersch [Thu, 8 Dec 2022 09:49:32 +0000 (10:49 +0100)]
Pointer to const++ (sonar).

[ci-skip]

17 months agoUse pointer-to-const when possible (Sonar).
Arnaud Giersch [Tue, 22 Nov 2022 12:43:36 +0000 (13:43 +0100)]
Use pointer-to-const when possible (Sonar).

17 months agoRedundant cast.
Arnaud Giersch [Wed, 7 Dec 2022 09:58:58 +0000 (10:58 +0100)]
Redundant cast.

17 months agoKill unimplemented declarations.
Arnaud Giersch [Tue, 6 Dec 2022 16:03:08 +0000 (17:03 +0100)]
Kill unimplemented declarations.

17 months agoMake the definition match the declaration in dtypes.h.
Arnaud Giersch [Tue, 6 Dec 2022 16:02:40 +0000 (17:02 +0100)]
Make the definition match the declaration in dtypes.h.

17 months agoKill unused file.
Arnaud Giersch [Tue, 6 Dec 2022 16:00:44 +0000 (17:00 +0100)]
Kill unused file.

17 months agoReduce duplication of compiler flags for warnings.
Arnaud Giersch [Mon, 5 Dec 2022 14:56:30 +0000 (15:56 +0100)]
Reduce duplication of compiler flags for warnings.

17 months agoAdd -Wextra to CFLAGS too.
Arnaud Giersch [Tue, 6 Dec 2022 10:46:01 +0000 (11:46 +0100)]
Add -Wextra to CFLAGS too.

... and fix associated warnings.

17 months agoMerge "else" branches.
Arnaud Giersch [Mon, 5 Dec 2022 13:56:56 +0000 (14:56 +0100)]
Merge "else" branches.

17 months agoDocument recent change [noci]
Martin Quinson [Thu, 1 Dec 2022 21:25:32 +0000 (22:25 +0100)]
Document recent change [noci]

17 months agoBig fat error message when trying to enable MC on not supported archs
Martin Quinson [Wed, 30 Nov 2022 21:57:27 +0000 (22:57 +0100)]
Big fat error message when trying to enable MC on not supported archs

The previous message was ways too easy to miss [no-ci].

17 months agoMerge branch 'faster_activity_removal' into 'master'
Augustin Degomme [Thu, 1 Dec 2022 17:56:23 +0000 (17:56 +0000)]
Merge branch 'faster_activity_removal' into 'master'

Replaced std::list by std::set to keep track of activities

See merge request simgrid/simgrid!123

17 months agoReplaced std::list by std::set to keep track of activities
Henri Casanova [Thu, 1 Dec 2022 17:33:13 +0000 (07:33 -1000)]
Replaced std::list by std::set to keep track of activities

17 months agoCosmetics.
Arnaud Giersch [Wed, 23 Nov 2022 16:12:52 +0000 (17:12 +0100)]
Cosmetics.

* use existing functions sthread_enable/disable
* useless casts
* static variables are already zero initialized

17 months agoUse C++ string_view.
Arnaud Giersch [Wed, 23 Nov 2022 14:48:27 +0000 (15:48 +0100)]
Use C++ string_view.

17 months agoReplace static function by a lambda.
Arnaud Giersch [Wed, 23 Nov 2022 14:29:39 +0000 (15:29 +0100)]
Replace static function by a lambda.

18 months agoFix doc.
Arnaud Giersch [Tue, 22 Nov 2022 10:43:28 +0000 (11:43 +0100)]
Fix doc.

18 months agobetter failure handling for streams
Fred Suter [Mon, 21 Nov 2022 17:03:00 +0000 (12:03 -0500)]
better failure handling for streams

18 months agoAddress misc Sonar issues.
Arnaud Giersch [Mon, 21 Nov 2022 14:36:37 +0000 (15:36 +0100)]
Address misc Sonar issues.

18 months agoCosmetics: "transfert" -> "transfer".
Arnaud Giersch [Mon, 21 Nov 2022 13:11:00 +0000 (14:11 +0100)]
Cosmetics: "transfert" -> "transfer".

18 months agoKill useless computation.
Arnaud Giersch [Thu, 17 Nov 2022 15:19:56 +0000 (16:19 +0100)]
Kill useless computation.

18 months agoCheck bounds.
Arnaud Giersch [Thu, 17 Nov 2022 15:18:40 +0000 (16:18 +0100)]
Check bounds.

18 months ago[ci skip] some release notes about the I/O streams
Fred Suter [Thu, 10 Nov 2022 19:29:10 +0000 (14:29 -0500)]
[ci skip] some release notes about the I/O streams

18 months agoCompletely revise the way to deal with Streamed I/Os
Fred Suter [Wed, 9 Nov 2022 22:43:12 +0000 (17:43 -0500)]
Completely revise the way to deal with Streamed I/Os

Do not implement a new funky HostModel but handle the io_stream call
in CLM03. Basic idea (thx alegrand): start from a regular
NetworkAction and add some extra constraints if it is an I/O stream.

+ Pros: easy to implement and inherit of all the complexity of the
network part. This would have been too much work and redundancy with a
new model. No extra flag, just a new type of I/Os (similar to the
Comm::sendto spirit)

+ Cons: had to cheat a bit to NOT inherit some of the network model
(LV08) complexity for the I/O part (bandwidth factor). Still has to
find a way to not pay the network latency if the stream starts from a
disk. Had to add a little hack to reserve more space in communicate
for the extra constraints.

This new type of I/O is tested in teshsuite/s4u/io-stream (with the
basic CM02 model without crosstraffic to verify if bottlenecks are
correctly handled, and then with the default config)

18 months agothis belongs to the Impl not a specific model
Fred Suter [Tue, 8 Nov 2022 20:06:29 +0000 (15:06 -0500)]
this belongs to the Impl not a specific model

18 months agofurther simplification/cleanups
Fred Suter [Tue, 8 Nov 2022 19:24:03 +0000 (14:24 -0500)]
further simplification/cleanups

18 months agoReduce the number of lambdas involved for python bindings.
Arnaud Giersch [Tue, 8 Nov 2022 14:43:05 +0000 (15:43 +0100)]
Reduce the number of lambdas involved for python bindings.

18 months agoTry to fix build by installing binutils.
Arnaud Giersch [Tue, 8 Nov 2022 09:59:41 +0000 (10:59 +0100)]
Try to fix build by installing binutils.

18 months agoRemove explicit conversion to std::string when it's not required.
Arnaud Giersch [Mon, 7 Nov 2022 15:03:13 +0000 (16:03 +0100)]
Remove explicit conversion to std::string when it's not required.

Some of them were redundant.
Some of them became optional after the removal of xbt::string.

18 months agoTypo.
Arnaud Giersch [Fri, 4 Nov 2022 17:47:40 +0000 (18:47 +0100)]
Typo.

18 months agoKeep integer operations.
Arnaud Giersch [Thu, 3 Nov 2022 17:36:30 +0000 (18:36 +0100)]
Keep integer operations.

18 months agoUse boolean value.
Arnaud Giersch [Thu, 3 Nov 2022 16:22:52 +0000 (17:22 +0100)]
Use boolean value.

18 months agoMark "override" (Sonar).
Arnaud Giersch [Thu, 3 Nov 2022 13:46:07 +0000 (14:46 +0100)]
Mark "override" (Sonar).

18 months agoCosmetics.
Arnaud Giersch [Thu, 3 Nov 2022 13:39:48 +0000 (14:39 +0100)]
Cosmetics.

18 months agosimplify the I/O stream thing A LOT. Might be plunged in CLM03 afterall
Fred Suter [Mon, 7 Nov 2022 21:25:24 +0000 (16:25 -0500)]
simplify the I/O stream thing A LOT. Might be plunged in CLM03 afterall

18 months agoAlso ignore the brand new python 3.11 on appveyor
Martin Quinson [Sun, 6 Nov 2022 10:39:24 +0000 (11:39 +0100)]
Also ignore the brand new python 3.11 on appveyor

18 months agoRemove a work around for a 2017 bug in Python + Windows
Martin Quinson [Sun, 6 Nov 2022 10:33:57 +0000 (11:33 +0100)]
Remove a work around for a 2017 bug in Python + Windows

18 months agoHelp windows builds: do not redefine XBT_PUBLIC
Martin Quinson [Sun, 6 Nov 2022 10:26:07 +0000 (11:26 +0100)]
Help windows builds: do not redefine XBT_PUBLIC

18 months agoPublic headers must remain C++14 for now
Martin Quinson [Sun, 6 Nov 2022 09:46:34 +0000 (10:46 +0100)]
Public headers must remain C++14 for now

18 months agoRevalidate a tesh file in Java after recent changes
Martin Quinson [Sun, 6 Nov 2022 09:42:22 +0000 (10:42 +0100)]
Revalidate a tesh file in Java after recent changes

18 months agoMissing include
Martin Quinson [Sun, 6 Nov 2022 09:22:48 +0000 (10:22 +0100)]
Missing include

18 months agosetter function only need a simcall in MC or with parallel execs
Martin Quinson [Sun, 6 Nov 2022 00:17:57 +0000 (01:17 +0100)]
setter function only need a simcall in MC or with parallel execs

This change introduce a new kind of simcalls alongside
simcall_answered and simcall_blocking: simcall_run_object_access that
is dedicated to object setter functions.

This is an answered simcall if running in // or in MC, and just a
regular function call if runnning a plain simulation.

This may speed up large simulations with a huge amount of activities,
but the perf improvement is not evaluated yet.

The performance could be further improved with a SIMGRID_HAVE_PARALLEL
option allowing the compiler to know beforhand that the simcall branch
will never be taken. But such an option would require to be tested and
I'm too lazy for that.

18 months agoAllow the MC replay to use the 'zero' buffering
Martin Quinson [Sat, 5 Nov 2022 19:04:43 +0000 (20:04 +0100)]
Allow the MC replay to use the 'zero' buffering

18 months agoDo not MC_assert on failed xbt_assert, it's too shaky
Martin Quinson [Sat, 5 Nov 2022 18:59:49 +0000 (19:59 +0100)]
Do not MC_assert on failed xbt_assert, it's too shaky

I'll handle it from the MC side instead

18 months agoMove a function to the right file and other cleanups
Martin Quinson [Fri, 4 Nov 2022 23:50:14 +0000 (00:50 +0100)]
Move a function to the right file and other cleanups

18 months agoKill a now unused field
Martin Quinson [Fri, 4 Nov 2022 23:44:25 +0000 (00:44 +0100)]
Kill a now unused field

18 months agoReduce the amount of header files loading xbt/string.hpp
Martin Quinson [Fri, 4 Nov 2022 23:23:35 +0000 (00:23 +0100)]
Reduce the amount of header files loading xbt/string.hpp

Prefer to load this file from the source files (as usual) to reduce
the amount of files to be rebuilt when this file changes.

18 months agoKill the now useless type xbt::string
Martin Quinson [Fri, 4 Nov 2022 22:37:27 +0000 (23:37 +0100)]
Kill the now useless type xbt::string

18 months agoanother attempt to avoid deadlocks in wrench when using sio host model
Fred Suter [Fri, 4 Nov 2022 12:26:40 +0000 (08:26 -0400)]
another attempt to avoid deadlocks in wrench when using sio host model

18 months agotypo
Fred Suter [Fri, 4 Nov 2022 12:00:34 +0000 (08:00 -0400)]
typo

18 months agofix deadlock found by hcasanova in case of self communications
Fred Suter [Fri, 4 Nov 2022 01:50:46 +0000 (21:50 -0400)]
fix deadlock found by hcasanova in case of self communications

18 months agocomplexify the test a bit further
Fred Suter [Thu, 3 Nov 2022 21:29:23 +0000 (17:29 -0400)]
complexify the test a bit further

18 months agoReuse existing variable, and shorten conditional.
Arnaud Giersch [Thu, 3 Nov 2022 09:05:57 +0000 (10:05 +0100)]
Reuse existing variable, and shorten conditional.

18 months agoDon't call function with side effect twice in the same expression.
Arnaud Giersch [Wed, 2 Nov 2022 22:33:20 +0000 (23:33 +0100)]
Don't call function with side effect twice in the same expression.

The evaluation order is undecided and may give different results (e.g. using clang vs. gcc).

18 months agoUpdate random-bug-nocrash.tesh after last changes.
Arnaud Giersch [Wed, 2 Nov 2022 22:12:50 +0000 (23:12 +0100)]
Update random-bug-nocrash.tesh after last changes.

18 months agoVariable is declared in xbt/asserts.h.
Arnaud Giersch [Wed, 2 Nov 2022 19:52:05 +0000 (20:52 +0100)]
Variable is declared in xbt/asserts.h.

18 months agoSpurious #include.
Arnaud Giersch [Wed, 2 Nov 2022 19:51:13 +0000 (20:51 +0100)]
Spurious #include.

18 months agoMerge branch 'master' of framagit.org:simgrid/simgrid
Martin Quinson [Tue, 1 Nov 2022 22:55:04 +0000 (23:55 +0100)]
Merge branch 'master' of framagit.org:simgrid/simgrid

18 months agoDisplay the mailbox name when showing a deadlocking situation
Martin Quinson [Tue, 1 Nov 2022 22:54:56 +0000 (23:54 +0100)]
Display the mailbox name when showing a deadlocking situation

18 months agoMC: display the status of all actors in case of deadlock
Martin Quinson [Tue, 1 Nov 2022 21:29:27 +0000 (22:29 +0100)]
MC: display the status of all actors in case of deadlock

18 months agoMC: tell the user about how to use the replay path in case of problem
Martin Quinson [Tue, 1 Nov 2022 21:16:35 +0000 (22:16 +0100)]
MC: tell the user about how to use the replay path in case of problem

18 months agoDisplay the stack of each actor during a MC replay (unless --log=no_log for the tests)
Martin Quinson [Tue, 1 Nov 2022 18:39:55 +0000 (19:39 +0100)]
Display the stack of each actor during a MC replay (unless --log=no_log for the tests)

18 months agoMerge branch 'fluidio' into 'master'
Fred Suter [Tue, 1 Nov 2022 13:15:57 +0000 (13:15 +0000)]
Merge branch 'fluidio' into 'master'

Fluidio

See merge request simgrid/simgrid!121

18 months agofix issues spotted by agriersch
Fred Suter [Tue, 1 Nov 2022 13:04:18 +0000 (09:04 -0400)]
fix issues spotted by agriersch

18 months agoMC replay: check whether there is a deadlock after running the trace
Martin Quinson [Mon, 31 Oct 2022 23:35:54 +0000 (00:35 +0100)]
MC replay: check whether there  is a deadlock after running the trace

18 months agoAlign the behavior of MC and MC_replay in SMPI, so that replay actually works
Martin Quinson [Mon, 31 Oct 2022 23:25:43 +0000 (00:25 +0100)]
Align the behavior of MC and MC_replay in SMPI, so that replay actually works

+ improved debug messages

18 months agoBe more verbose on the blocking transition when displaying the actor state on Ctrl-C
Martin Quinson [Mon, 31 Oct 2022 21:41:10 +0000 (22:41 +0100)]
Be more verbose on the blocking transition when displaying the actor state on Ctrl-C

18 months agoextend test
Fred Suter [Mon, 31 Oct 2022 14:34:58 +0000 (10:34 -0400)]
extend test

18 months agoplug leak and more consistency with other models
Fred Suter [Mon, 31 Oct 2022 14:33:21 +0000 (10:33 -0400)]
plug leak and more consistency with other models

18 months agoMC_replay: Ensure that times_considered is always set
Martin Quinson [Sun, 30 Oct 2022 23:27:14 +0000 (00:27 +0100)]
MC_replay: Ensure that times_considered is always set

+ small cosmetics while reading again that code

18 months agoMBI: display the expected diagnostic on error
Martin Quinson [Tue, 25 Oct 2022 22:28:43 +0000 (00:28 +0200)]
MBI: display the expected diagnostic on error

18 months agocheck that disk has been given as argument before accessing its pimpl
Fred Suter [Fri, 28 Oct 2022 18:51:20 +0000 (14:51 -0400)]
check that disk has been given as argument before accessing its pimpl

18 months agoadd a transfer bottleneck case
Fred Suter [Fri, 28 Oct 2022 15:23:12 +0000 (11:23 -0400)]
add a transfer bottleneck case

18 months agorevalidate tesh
Fred Suter [Fri, 28 Oct 2022 11:48:13 +0000 (07:48 -0400)]
revalidate tesh

18 months agoupdate
Fred Suter [Fri, 28 Oct 2022 11:39:12 +0000 (07:39 -0400)]
update

18 months agoadd example
Fred Suter [Fri, 28 Oct 2022 11:38:47 +0000 (07:38 -0400)]
add example