Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
simgrid.git
10 months agoFix test on slow machines.
Arnaud Giersch [Fri, 8 Nov 2019 09:51:57 +0000 (10:51 +0100)]
Fix test on slow machines.

10 months agoCode smells spotted by static analyzers.
Arnaud Giersch [Fri, 8 Nov 2019 09:51:57 +0000 (10:51 +0100)]
Code smells spotted by static analyzers.

10 months agoNo, scan-build, there is no memory leak here.
Arnaud Giersch [Fri, 8 Nov 2019 09:51:57 +0000 (10:51 +0100)]
No, scan-build, there is no memory leak here.

10 months agoAdd option -t for bison.
Arnaud Giersch [Fri, 8 Nov 2019 09:51:57 +0000 (10:51 +0100)]
Add option -t for bison.

The added debugging code doesn't harm, and it silences scan-build.

10 months agoPrefer $(...) to backticks.
Arnaud Giersch [Fri, 8 Nov 2019 09:51:57 +0000 (10:51 +0100)]
Prefer $(...) to backticks.

10 months agoadd example of GH#139
Frederic Suter [Tue, 5 Nov 2019 08:39:23 +0000 (09:39 +0100)]
add example of GH#139

10 months agoMinor cleanups.
Arnaud Giersch [Sun, 3 Nov 2019 20:35:37 +0000 (21:35 +0100)]
Minor cleanups.

10 months agouser data should stay in user space
Frederic Suter [Mon, 4 Nov 2019 12:25:12 +0000 (13:25 +0100)]
user data should stay in user space

10 months agodeprecate simcall_process_sleep and add some reminders in libsimix.cpp
Frederic Suter [Mon, 4 Nov 2019 10:20:43 +0000 (11:20 +0100)]
deprecate simcall_process_sleep and add some reminders in libsimix.cpp

10 months agoC wrappers to set/get user data of the current actor
Frederic Suter [Mon, 4 Nov 2019 09:52:20 +0000 (10:52 +0100)]
C wrappers to set/get user data of the current actor

10 months agoreplace SIMIX_process_count by simgrid_get_actor_count
Frederic Suter [Mon, 4 Nov 2019 09:44:11 +0000 (10:44 +0100)]
replace SIMIX_process_count by simgrid_get_actor_count

10 months agoSIMIX cosmetics
Frederic Suter [Mon, 4 Nov 2019 09:03:57 +0000 (10:03 +0100)]
SIMIX cosmetics

10 months agohide some cruft from the doc
Martin Quinson [Sun, 3 Nov 2019 21:57:35 +0000 (22:57 +0100)]
hide some cruft from the doc

10 months agomove the README.rst in examples/ as it also describes python
Martin Quinson [Sun, 3 Nov 2019 21:53:36 +0000 (22:53 +0100)]
move the README.rst in examples/ as it also describes python

10 months agofurther convert the example documentation to the tabbed RST
Martin Quinson [Sun, 3 Nov 2019 21:49:47 +0000 (22:49 +0100)]
further convert the example documentation to the tabbed RST

10 months agomake msg task extendable too
Frederic Suter [Sun, 3 Nov 2019 17:54:21 +0000 (18:54 +0100)]
make msg task extendable too

10 months agouser data doesn't have to be stored at kernel level
Frederic Suter [Sun, 3 Nov 2019 17:36:03 +0000 (18:36 +0100)]
user data doesn't have to be stored at kernel level

10 months agoRemove old cruft.
Arnaud Giersch [Sun, 3 Nov 2019 11:26:45 +0000 (12:26 +0100)]
Remove old cruft.

10 months agomake s4u::File extendable
Frederic Suter [Sun, 3 Nov 2019 13:05:04 +0000 (14:05 +0100)]
make s4u::File extendable

this way it doesn't define its own user data accessors which become
3.29-deprecated.

10 months agoName changed for sonar property.
Arnaud Giersch [Sun, 3 Nov 2019 08:33:26 +0000 (09:33 +0100)]
Name changed for sonar property.

10 months agoParameter for cleanup callback won't be null.
Arnaud Giersch [Fri, 1 Nov 2019 23:12:34 +0000 (00:12 +0100)]
Parameter for cleanup callback won't be null.

10 months agoRestore handling of msg_global->process_data_cleanup.
Arnaud Giersch [Fri, 1 Nov 2019 23:03:31 +0000 (00:03 +0100)]
Restore handling of msg_global->process_data_cleanup.

10 months agoAllow const parameter for sg_actor_data().
Arnaud Giersch [Fri, 1 Nov 2019 23:01:12 +0000 (00:01 +0100)]
Allow const parameter for sg_actor_data().

10 months agoCosmetics.
Arnaud Giersch [Fri, 1 Nov 2019 22:59:48 +0000 (23:59 +0100)]
Cosmetics.

10 months agoReduce number of direct accesses to simix_global.
Arnaud Giersch [Fri, 1 Nov 2019 16:56:56 +0000 (17:56 +0100)]
Reduce number of direct accesses to simix_global.

10 months agoRemove unused parameter 'free_ctn' for xbt_dict_set() and xbt_dict_set_ext().
Arnaud Giersch [Fri, 1 Nov 2019 15:14:50 +0000 (16:14 +0100)]
Remove unused parameter 'free_ctn' for xbt_dict_set() and xbt_dict_set_ext().

10 months agobetter factorization of how examples are displayed in RST
Martin Quinson [Sat, 2 Nov 2019 14:38:50 +0000 (15:38 +0100)]
better factorization of how examples are displayed in RST

10 months agoCosmetics on how we present examples in C++ and python
Martin Quinson [Sat, 2 Nov 2019 09:40:02 +0000 (10:40 +0100)]
Cosmetics on how we present examples in C++ and python

This both makes room for the upcoming C examples and paves the road
for a better multilingual API documentation.

The implementation is really crude, with the name of files repeated 4
times, but I fail to script sphinx so far. More to come, I guess.

10 months agoadd the python binding to Actor::is_daemon
Martin Quinson [Sat, 2 Nov 2019 09:37:40 +0000 (10:37 +0100)]
add the python binding to Actor::is_daemon

10 months agostart documenting the C API in sphinx
Martin Quinson [Sat, 2 Nov 2019 00:12:59 +0000 (01:12 +0100)]
start documenting the C API in sphinx

10 months agoThe parenthesis of SG_BEGIN_DECL fools doxygen. Get rid of them
Martin Quinson [Fri, 1 Nov 2019 23:27:49 +0000 (00:27 +0100)]
The parenthesis of SG_BEGIN_DECL fools doxygen. Get rid of them

10 months agoAdd test in activity-lifecycle turning off its own host.
Arnaud Giersch [Thu, 31 Oct 2019 21:49:54 +0000 (22:49 +0100)]
Add test in activity-lifecycle turning off its own host.

Close https://github.com/simgrid/simgrid/issues/323

10 months agoHostImpl::turn_off(): SIMIX_process_self is maestro there, save real process before...
Arnaud Giersch [Thu, 31 Oct 2019 21:25:44 +0000 (22:25 +0100)]
HostImpl::turn_off(): SIMIX_process_self is maestro there, save real process before simcall.

10 months agoUseless if().
Arnaud Giersch [Wed, 30 Oct 2019 16:36:36 +0000 (17:36 +0100)]
Useless if().

10 months agoRestore test to its state before commit 08e94eb0482589e4b287cbea301b84daf52635bd.
Arnaud Giersch [Wed, 30 Oct 2019 16:38:46 +0000 (17:38 +0100)]
Restore test to its state before commit 08e94eb0482589e4b287cbea301b84daf52635bd.

Another test is coming soon to check turning off its own host.

10 months agosimplify user data management in MSG
Frederic Suter [Wed, 30 Oct 2019 18:09:39 +0000 (19:09 +0100)]
simplify user data management in MSG

The recently introduced generic extension for user data make the
specific management made in MSG redudant. MSG_process_get_data and
MSG_process_set_data are now mapped on the sg_actor_data_set and
sg_actor_data functions and have been moved to msg_legacy.cpp

10 months agoadd C interface to Actor::init and Actor::start
Frederic Suter [Wed, 30 Oct 2019 17:44:05 +0000 (18:44 +0100)]
add C interface to Actor::init and Actor::start

10 months agoMark deprecated virtual methods "final", and complete ChangeLog.
Arnaud Giersch [Sun, 27 Oct 2019 16:45:12 +0000 (17:45 +0100)]
Mark deprecated virtual methods "final", and complete ChangeLog.

Redefining these methods in derived classes may lead to runtime
errors, as seen with simgrid-FMI.

10 months agosecond attempt. Remove -g flag for flang from now, it's not really useful for our...
Augustin Degomme [Sun, 27 Oct 2019 14:47:29 +0000 (15:47 +0100)]
second attempt. Remove -g flag for flang from now, it's not really useful for our internal builds anyway (only tests are built with these settings)

10 months agoRevert "remove useless (?) common block in fortran code as flang7 has problems compil...
Augustin Degomme [Sun, 27 Oct 2019 14:35:47 +0000 (15:35 +0100)]
Revert "remove useless (?) common block in fortran code as flang7 has problems compiling it (see https://github.com/flang-compiler/flang/issues/671 )"

This reverts commit 3ea760af6a8cb65c3a2250ecc65f47386b10f286.

10 months agoremove useless (?) common block in fortran code as flang7 has problems compiling...
Augustin Degomme [Sun, 27 Oct 2019 09:44:47 +0000 (10:44 +0100)]
remove useless (?) common block in fortran code as flang7 has problems compiling it (see https://github.com/flang-compiler/flang/issues/671 )

10 months agoKeep deprecated wrappers "virtual".
Arnaud Giersch [Sat, 26 Oct 2019 21:26:04 +0000 (23:26 +0200)]
Keep deprecated wrappers "virtual".

10 months agocosmetic (process->actor)
Frederic Suter [Fri, 25 Oct 2019 08:56:06 +0000 (10:56 +0200)]
cosmetic (process->actor)

10 months agoCosmetic rename.
Arnaud Giersch [Thu, 24 Oct 2019 12:42:51 +0000 (14:42 +0200)]
Cosmetic rename.

10 months agoEndgame mode is always enabled, remove option.
Arnaud Giersch [Thu, 24 Oct 2019 12:33:16 +0000 (14:33 +0200)]
Endgame mode is always enabled, remove option.

10 months agoRemove duplicate error message, and use xbt_assert.
Arnaud Giersch [Thu, 24 Oct 2019 12:23:27 +0000 (14:23 +0200)]
Remove duplicate error message, and use xbt_assert.

10 months agoDon't shadow outer variable.
Arnaud Giersch [Tue, 22 Oct 2019 09:30:27 +0000 (11:30 +0200)]
Don't shadow outer variable.

10 months agomake actors_at_boot_ private
Frederic Suter [Thu, 24 Oct 2019 16:43:58 +0000 (18:43 +0200)]
make actors_at_boot_ private

10 months agoboss not happy, partial revert
Frederic Suter [Thu, 24 Oct 2019 15:00:51 +0000 (17:00 +0200)]
boss not happy, partial revert

10 months agomake HostImpl::actor_list_ private
Frederic Suter [Thu, 24 Oct 2019 12:35:23 +0000 (14:35 +0200)]
make HostImpl::actor_list_ private

10 months agoalmost useless old stuff... remove
Frederic Suter [Thu, 24 Oct 2019 11:28:34 +0000 (13:28 +0200)]
almost useless old stuff... remove

10 months agosome process to actor renaming
Frederic Suter [Thu, 24 Oct 2019 11:03:55 +0000 (13:03 +0200)]
some process to actor renaming

10 months agoremove direct accesses to pimpl_cpu
Frederic Suter [Thu, 24 Oct 2019 10:28:47 +0000 (12:28 +0200)]
remove direct accesses to pimpl_cpu

10 months agofix ns3
Frederic Suter [Tue, 22 Oct 2019 09:00:56 +0000 (11:00 +0200)]
fix ns3

10 months agomake host's pimpl_netpoint private
Frederic Suter [Tue, 22 Oct 2019 07:26:54 +0000 (09:26 +0200)]
make host's pimpl_netpoint private
* getter is public
* setter is protected

10 months agoUse xbt_assert instead of 'if() xbt_die'
Martin Quinson [Mon, 21 Oct 2019 20:07:16 +0000 (22:07 +0200)]
Use xbt_assert instead of 'if() xbt_die'

10 months agosonar: kill commented code
Martin Quinson [Mon, 21 Oct 2019 13:34:11 +0000 (15:34 +0200)]
sonar: kill commented code

10 months agoVariable is empty since... 2012!
Arnaud Giersch [Mon, 21 Oct 2019 12:27:38 +0000 (14:27 +0200)]
Variable is empty since... 2012!

10 months agoUpdate MANIFEST.in.
Arnaud Giersch [Mon, 21 Oct 2019 12:19:06 +0000 (14:19 +0200)]
Update MANIFEST.in.

10 months agoFix another dead store caught by cppcheck.
Arnaud Giersch [Mon, 21 Oct 2019 09:32:33 +0000 (11:32 +0200)]
Fix another dead store caught by cppcheck.

10 months agomake WifiLink depend on LinkImpl directly
Martin Quinson [Mon, 21 Oct 2019 12:13:47 +0000 (14:13 +0200)]
make WifiLink depend on LinkImpl directly

10 months agodefault value for latency should be 0
Martin Quinson [Mon, 21 Oct 2019 12:13:12 +0000 (14:13 +0200)]
default value for latency should be 0

10 months agocosmetics in the wifi model
Martin Quinson [Mon, 21 Oct 2019 11:43:57 +0000 (13:43 +0200)]
cosmetics in the wifi model

10 months agosplit the wifi model into its own files
Martin Quinson [Sun, 20 Oct 2019 13:43:10 +0000 (15:43 +0200)]
split the wifi model into its own files

11 months agoUse statically allocated stack.
Arnaud Giersch [Sun, 20 Oct 2019 19:29:54 +0000 (21:29 +0200)]
Use statically allocated stack.

Avoid memory leak and please static analyzers.

11 months agoAdd "explicit" keyword.
Arnaud Giersch [Sun, 20 Oct 2019 19:23:40 +0000 (21:23 +0200)]
Add "explicit" keyword.

11 months agoKill dead stores.
Arnaud Giersch [Sun, 20 Oct 2019 19:14:43 +0000 (21:14 +0200)]
Kill dead stores.

11 months agoPrefer initialization list.
Arnaud Giersch [Sun, 20 Oct 2019 19:13:44 +0000 (21:13 +0200)]
Prefer initialization list.

11 months agoReduce scope for variables.
Arnaud Giersch [Sun, 20 Oct 2019 19:04:05 +0000 (21:04 +0200)]
Reduce scope for variables.

11 months agoDie on error.
Arnaud Giersch [Sun, 20 Oct 2019 19:03:22 +0000 (21:03 +0200)]
Die on error.

11 months agoFix misspelling of "occurring".
Arnaud Giersch [Sat, 19 Oct 2019 21:55:52 +0000 (23:55 +0200)]
Fix misspelling of "occurring".

11 months agoSpell check.
Arnaud Giersch [Sun, 20 Oct 2019 14:13:15 +0000 (16:13 +0200)]
Spell check.

11 months agoTry to ensure test reproducibility.
Arnaud Giersch [Sun, 20 Oct 2019 12:36:41 +0000 (14:36 +0200)]
Try to ensure test reproducibility.

11 months agoRemove remaining mentions of RngStream.
Arnaud Giersch [Sat, 19 Oct 2019 19:42:50 +0000 (21:42 +0200)]
Remove remaining mentions of RngStream.

11 months agoKill dead code.
Arnaud Giersch [Sat, 19 Oct 2019 19:35:56 +0000 (21:35 +0200)]
Kill dead code.

11 months agodocument recently merged MR
Martin Quinson [Sat, 19 Oct 2019 16:54:53 +0000 (18:54 +0200)]
document recently merged MR

11 months agoMerge branch 'noRngStream' into 'master'
Martin Quinson [Sat, 19 Oct 2019 16:53:02 +0000 (18:53 +0200)]
Merge branch 'noRngStream' into 'master'

Removing RngStream

See merge request simgrid/simgrid!19

11 months agoRemoving RngStream
Yann Duplouy [Sat, 19 Oct 2019 16:53:02 +0000 (18:53 +0200)]
Removing RngStream

11 months agodocument our policy for version numbering
Martin Quinson [Fri, 18 Oct 2019 14:25:21 +0000 (16:25 +0200)]
document our policy for version numbering

11 months agorewrite completely the releasing guide
Martin Quinson [Fri, 18 Oct 2019 09:04:15 +0000 (11:04 +0200)]
rewrite completely the releasing guide

11 months agodocument some recently closed bugs
Martin Quinson [Wed, 16 Oct 2019 16:11:14 +0000 (18:11 +0200)]
document some recently closed bugs

11 months agoremove some direct accesses to pimpl_cpu
Frederic Suter [Fri, 18 Oct 2019 11:16:49 +0000 (13:16 +0200)]
remove some direct accesses to pimpl_cpu

11 months agoGitLab/CI: disable coverage.
Arnaud Giersch [Thu, 17 Oct 2019 12:02:38 +0000 (14:02 +0200)]
GitLab/CI: disable coverage.

It's currently not used, and broken with gfortran 9.2.1:
internal compiler error: in coverage_begin_function, at coverage.c:656

11 months agoTravis/win: python has been upgraded.
Arnaud Giersch [Thu, 17 Oct 2019 11:36:50 +0000 (13:36 +0200)]
Travis/win: python has been upgraded.

11 months agoTypos.
Arnaud Giersch [Thu, 17 Oct 2019 09:58:05 +0000 (11:58 +0200)]
Typos.

11 months agoConvert to C++, and call get_pid() directly.
Arnaud Giersch [Thu, 17 Oct 2019 09:47:45 +0000 (11:47 +0200)]
Convert to C++, and call get_pid() directly.

11 months agoThere is no need to use simix here.
Arnaud Giersch [Wed, 16 Oct 2019 20:06:46 +0000 (22:06 +0200)]
There is no need to use simix here.

11 months agoRemove file (deprecated since 16 months).
Arnaud Giersch [Tue, 15 Oct 2019 14:40:39 +0000 (16:40 +0200)]
Remove file (deprecated since 16 months).

11 months agoRemove references to dead variables.
Arnaud Giersch [Wed, 16 Oct 2019 21:56:17 +0000 (23:56 +0200)]
Remove references to dead variables.

11 months ago[sonar] Add "override" annotation.
Arnaud Giersch [Mon, 14 Oct 2019 16:23:25 +0000 (18:23 +0200)]
[sonar] Add "override" annotation.

11 months ago[sonar] Capitalize constant name.
Arnaud Giersch [Mon, 14 Oct 2019 10:12:19 +0000 (12:12 +0200)]
[sonar] Capitalize constant name.

11 months agoimprove the docker generation scripts
Martin Quinson [Wed, 16 Oct 2019 15:52:11 +0000 (17:52 +0200)]
improve the docker generation scripts

11 months agocmake: tell which version of SimGrid we are configuring
Martin Quinson [Tue, 15 Oct 2019 08:14:20 +0000 (10:14 +0200)]
cmake: tell which version of SimGrid we are configuring

11 months agoUpdate the release guide
Martin Quinson [Fri, 11 Oct 2019 18:07:16 +0000 (20:07 +0200)]
Update the release guide

11 months agoRewrite the NEWS after the release O:-)
Martin Quinson [Fri, 11 Oct 2019 18:07:03 +0000 (20:07 +0200)]
Rewrite the NEWS after the release O:-)

11 months agofix GH#305
Frederic Suter [Wed, 16 Oct 2019 15:26:15 +0000 (17:26 +0200)]
fix GH#305
the allocation of a task was only cancelled for unscheduled parallel
typed tasks. Do it for sequential tasks too ...
Sorry for the ultra long delay.

11 months agocosmetics
Frederic Suter [Wed, 16 Oct 2019 14:52:49 +0000 (16:52 +0200)]
cosmetics

11 months ago[sonar] Remove commented out code.
Arnaud Giersch [Sat, 12 Oct 2019 21:01:02 +0000 (23:01 +0200)]
[sonar] Remove commented out code.

11 months ago[cppcheck] Reduce scope for variables.
Arnaud Giersch [Sat, 12 Oct 2019 13:24:58 +0000 (15:24 +0200)]
[cppcheck] Reduce scope for variables.

11 months ago[sonar] Factor common expression and don't duplicate string literals.
Arnaud Giersch [Sat, 12 Oct 2019 13:17:43 +0000 (15:17 +0200)]
[sonar] Factor common expression and don't duplicate string literals.