Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
simgrid.git
2 years agodicts to maps in Dijkstra
Frederic Suter [Thu, 12 Oct 2017 07:58:40 +0000 (09:58 +0200)]
dicts to maps in Dijkstra

Is that code tested?

2 years agominor smell--
Frederic Suter [Thu, 12 Oct 2017 07:25:00 +0000 (09:25 +0200)]
minor smell--

2 years agoFix build on freebsd and macos.
Arnaud Giersch [Wed, 11 Oct 2017 21:31:38 +0000 (23:31 +0200)]
Fix build on freebsd and macos.

2 years agoanother pre-release check to do
Martin Quinson [Wed, 11 Oct 2017 21:20:19 +0000 (23:20 +0200)]
another pre-release check to do

2 years agodocument how the jenkins hosts were created (fix #210)
Martin Quinson [Wed, 11 Oct 2017 21:19:43 +0000 (23:19 +0200)]
document how the jenkins hosts were created (fix #210)

2 years agoComment unused function parameter.
Arnaud Giersch [Wed, 11 Oct 2017 20:27:51 +0000 (22:27 +0200)]
Comment unused function parameter.

2 years agoC -> C++ casts.
Arnaud Giersch [Wed, 11 Oct 2017 19:47:55 +0000 (21:47 +0200)]
C -> C++ casts.

2 years agoUse std::string in s4u examples.
Arnaud Giersch [Wed, 11 Oct 2017 12:38:13 +0000 (14:38 +0200)]
Use std::string in s4u examples.

2 years agoReplace some malloc/free by C++ new/delete.
Arnaud Giersch [Wed, 11 Oct 2017 09:08:39 +0000 (11:08 +0200)]
Replace some malloc/free by C++ new/delete.

2 years agoRefactoring instr
Frederic Suter [Wed, 11 Oct 2017 13:23:03 +0000 (15:23 +0200)]
Refactoring instr

PJ_container_get and PJ_container_get_or_null functions become
byName(std::string name) and byNameOrNull(std::string name) methods of
the Container class.

2 years agofurther cleanups in instr
Frederic Suter [Wed, 11 Oct 2017 09:01:31 +0000 (11:01 +0200)]
further cleanups in instr

2 years agouse initialization list to please sonar
Frederic Suter [Wed, 11 Oct 2017 07:24:40 +0000 (09:24 +0200)]
use initialization list to please sonar

2 years agoAdd a comment to empty function.
Arnaud Giersch [Tue, 10 Oct 2017 21:05:52 +0000 (23:05 +0200)]
Add a comment to empty function.

2 years agoRemove useless typedef's from C++ files.
Arnaud Giersch [Tue, 10 Oct 2017 20:48:18 +0000 (22:48 +0200)]
Remove useless typedef's from C++ files.

2 years agoComment some unused parameters.
Arnaud Giersch [Tue, 10 Oct 2017 20:38:40 +0000 (22:38 +0200)]
Comment some unused parameters.

2 years agothis field is useless indeed. Good catch CI
Frederic Suter [Tue, 10 Oct 2017 16:47:21 +0000 (18:47 +0200)]
this field is useless indeed. Good catch CI
(BTW it was useless but public before ;))

2 years agofactoring in instr Events
Frederic Suter [Tue, 10 Oct 2017 16:29:12 +0000 (18:29 +0200)]
factoring in instr Events

If all derived classes share the same fields, they may belong to the
super class ...

sonar will whine about protected fields, but I don't care

2 years agostringify and objectify instr::Value (wip)
Frederic Suter [Tue, 10 Oct 2017 15:05:16 +0000 (17:05 +0200)]
stringify and objectify instr::Value (wip)

get -> byName
get_or_new -> byNameOrCreate (as for mailboxes)
constructor and most fields are private + accessors

2 years agoMerge branch 'master' of git+ssh://scm.gforge.inria.fr//gitroot/simgrid/simgrid
Frederic Suter [Tue, 10 Oct 2017 12:29:16 +0000 (14:29 +0200)]
Merge branch 'master' of git+ssh://scm.gforge.inria.fr//gitroot/simgrid/simgrid

2 years agoremove useless parameters in header generation
Frederic Suter [Tue, 10 Oct 2017 12:22:56 +0000 (14:22 +0200)]
remove useless parameters in header generation

2 years agoAdd dummy typedefs to fix build in C mode.
Arnaud Giersch [Mon, 9 Oct 2017 13:38:08 +0000 (15:38 +0200)]
Add dummy typedefs to fix build in C mode.

2 years agoApply clang-format on previously renamed files.
Arnaud Giersch [Tue, 10 Oct 2017 10:09:09 +0000 (12:09 +0200)]
Apply clang-format on previously renamed files.

2 years agoSort include lists according to clang-format.
Arnaud Giersch [Tue, 10 Oct 2017 09:48:21 +0000 (11:48 +0200)]
Sort include lists according to clang-format.

2 years agoUse C++ style includes when available.
Arnaud Giersch [Tue, 10 Oct 2017 09:34:46 +0000 (11:34 +0200)]
Use C++ style includes when available.

2 years agoIn C++ files, replace SG_{BEGIN,END}+_DECL() by extern "C" { }.
Arnaud Giersch [Tue, 10 Oct 2017 09:29:10 +0000 (11:29 +0200)]
In C++ files, replace SG_{BEGIN,END}+_DECL() by extern "C" { }.

2 years agoRemove useless #ifdef __cplusplus from hpp files.
Arnaud Giersch [Mon, 9 Oct 2017 21:32:05 +0000 (23:32 +0200)]
Remove useless #ifdef __cplusplus from hpp files.

2 years agoFile smpi/include/private.h cannot be compiled in C mode either. Merge with private...
Arnaud Giersch [Mon, 9 Oct 2017 21:17:45 +0000 (23:17 +0200)]
File smpi/include/private.h cannot be compiled in C mode either. Merge with private.hpp.

2 years agoFix filenames in doc.
Arnaud Giersch [Mon, 9 Oct 2017 19:57:19 +0000 (21:57 +0200)]
Fix filenames in doc.

2 years agoRename C++ only header files from .h to .hpp.
Arnaud Giersch [Mon, 9 Oct 2017 19:46:39 +0000 (21:46 +0200)]
Rename C++ only header files from .h to .hpp.

2 years agosimcalls.py: improve indentation of generated files.
Arnaud Giersch [Mon, 9 Oct 2017 19:34:05 +0000 (21:34 +0200)]
simcalls.py: improve indentation of generated files.

2 years agosimplify destruction of containers
Frederic Suter [Tue, 10 Oct 2017 08:52:12 +0000 (10:52 +0200)]
simplify destruction of containers

2 years agorevalidate tesh files
Frederic Suter [Tue, 10 Oct 2017 08:36:21 +0000 (10:36 +0200)]
revalidate tesh files
(order change in destruction of containers)

2 years agoplease sonar
Frederic Suter [Tue, 10 Oct 2017 06:26:53 +0000 (08:26 +0200)]
please sonar
these are not TODOs anymore
the unused data is a good catch though

2 years agoMerge branch 'master' of git+ssh://scm.gforge.inria.fr//gitroot/simgrid/simgrid
Frederic Suter [Tue, 10 Oct 2017 06:11:14 +0000 (08:11 +0200)]
Merge branch 'master' of git+ssh://scm.gforge.inria.fr//gitroot/simgrid/simgrid

2 years agoRename file .cc -> .cpp.
Arnaud Giersch [Mon, 9 Oct 2017 13:44:43 +0000 (15:44 +0200)]
Rename file .cc -> .cpp.

2 years agoProtect C++ code when building in C mode.
Arnaud Giersch [Mon, 9 Oct 2017 10:04:24 +0000 (12:04 +0200)]
Protect C++ code when building in C mode.

2 years agoChange some struct to class.
Arnaud Giersch [Sat, 7 Oct 2017 12:21:32 +0000 (14:21 +0200)]
Change some struct to class.

2 years agoReduce number of Sonar smells in Java examples.
Arnaud Giersch [Fri, 6 Oct 2017 21:30:50 +0000 (23:30 +0200)]
Reduce number of Sonar smells in Java examples.

2 years agoUse Msg logger in Java examples.
Arnaud Giersch [Fri, 6 Oct 2017 21:14:30 +0000 (23:14 +0200)]
Use Msg logger in Java examples.

2 years agosloppy replacement of dict by map and char* by string
Frederic Suter [Mon, 9 Oct 2017 15:25:46 +0000 (17:25 +0200)]
sloppy replacement of dict by map and char* by string
some tesh files have to be revalidated as the order in which the
destruction of containers is logged has changed.

2 years agodict->map
Frederic Suter [Mon, 9 Oct 2017 13:51:07 +0000 (15:51 +0200)]
dict->map

2 years agoa dict whose values are "1" (as char* of course) to say a element is
Frederic Suter [Mon, 9 Oct 2017 13:30:28 +0000 (15:30 +0200)]
a dict whose values are "1" (as char* of course) to say a element is
in is a std::set

2 years agofix a tiny todo
Frederic Suter [Mon, 9 Oct 2017 07:11:33 +0000 (09:11 +0200)]
fix a tiny todo

2 years agostringify a bit
Frederic Suter [Mon, 9 Oct 2017 06:54:54 +0000 (08:54 +0200)]
stringify a bit

2 years agouse initialisation lists (and std::string)
Frederic Suter [Mon, 9 Oct 2017 06:39:09 +0000 (08:39 +0200)]
use initialisation lists (and std::string)

2 years agoupdate the doc on how to release
Martin Quinson [Sun, 8 Oct 2017 21:14:15 +0000 (23:14 +0200)]
update the doc on how to release

2 years agostart the dev of the next version
Martin Quinson [Sun, 8 Oct 2017 21:14:03 +0000 (23:14 +0200)]
start the dev of the next version

2 years agoRelease v3.17 v3_17
Martin Quinson [Sun, 8 Oct 2017 16:44:53 +0000 (18:44 +0200)]
Release v3.17

2 years agoimprove doc of how to release
Martin Quinson [Sun, 8 Oct 2017 16:48:20 +0000 (18:48 +0200)]
improve doc of how to release

2 years agoIntegrate a Debian patch (armel portability)
Martin Quinson [Sun, 8 Oct 2017 16:47:14 +0000 (18:47 +0200)]
Integrate a Debian patch (armel portability)

2 years agocodacy
Martin Quinson [Sun, 8 Oct 2017 16:44:31 +0000 (18:44 +0200)]
codacy

2 years agoprepare the files for the next release
Martin Quinson [Fri, 6 Oct 2017 05:47:30 +0000 (07:47 +0200)]
prepare the files for the next release

2 years agowe will get ride of <include> very soon
Martin Quinson [Fri, 6 Oct 2017 05:44:09 +0000 (07:44 +0200)]
we will get ride of <include> very soon

2 years agoCover the Full network/optim.
Arnaud Giersch [Thu, 5 Oct 2017 21:02:09 +0000 (23:02 +0200)]
Cover the Full network/optim.

2 years agoCover the Reno2 network model.
Arnaud Giersch [Thu, 5 Oct 2017 20:52:17 +0000 (22:52 +0200)]
Cover the Reno2 network model.

2 years agoSet routing="None" for constant network model.
Arnaud Giersch [Thu, 5 Oct 2017 20:37:31 +0000 (22:37 +0200)]
Set routing="None" for constant network model.

2 years agoKill dead code: it's already split between CpuAction and NetworkCm02Action.
Arnaud Giersch [Thu, 5 Oct 2017 20:30:21 +0000 (22:30 +0200)]
Kill dead code: it's already split between CpuAction and NetworkCm02Action.

2 years agoFix invalid free when SIMIX_global_init() exits early.
Arnaud Giersch [Thu, 5 Oct 2017 19:48:33 +0000 (21:48 +0200)]
Fix invalid free when SIMIX_global_init() exits early.

2 years agoadd a test to cover the Constant-time network model
Martin Quinson [Thu, 5 Oct 2017 20:20:30 +0000 (22:20 +0200)]
add a test to cover the Constant-time network model

2 years agoAdd tests for xbt/log and fix some memory leaks.
Arnaud Giersch [Thu, 5 Oct 2017 11:36:23 +0000 (13:36 +0200)]
Add tests for xbt/log and fix some memory leaks.

2 years agoFactorize code.
Arnaud Giersch [Thu, 5 Oct 2017 07:55:48 +0000 (09:55 +0200)]
Factorize code.

2 years agoAnother try to silence sonar on commented lines of code.
Arnaud Giersch [Thu, 5 Oct 2017 06:53:09 +0000 (08:53 +0200)]
Another try to silence sonar on commented lines of code.

2 years agoRemove a few more commented lines of code.
Arnaud Giersch [Thu, 5 Oct 2017 06:48:49 +0000 (08:48 +0200)]
Remove a few more commented lines of code.

2 years agoReduce scope for variable.
Arnaud Giersch [Wed, 4 Oct 2017 21:43:39 +0000 (23:43 +0200)]
Reduce scope for variable.

2 years agothis variable is accessed concurrently (thanks TSan)
Martin Quinson [Thu, 5 Oct 2017 06:21:33 +0000 (08:21 +0200)]
this variable is accessed concurrently (thanks TSan)

2 years agoReduce cognitive complexity (sonar).
Arnaud Giersch [Wed, 4 Oct 2017 21:15:15 +0000 (23:15 +0200)]
Reduce cognitive complexity (sonar).

2 years agoAvoid implicit bool to int conversion.
Arnaud Giersch [Wed, 4 Oct 2017 20:56:01 +0000 (22:56 +0200)]
Avoid implicit bool to int conversion.

2 years agoRemove side effects from right hand operands of && or ||.
Arnaud Giersch [Wed, 4 Oct 2017 20:26:21 +0000 (22:26 +0200)]
Remove side effects from right hand operands of && or ||.

2 years agoAdd a dummy action in empty catch block (sonar).
Arnaud Giersch [Wed, 4 Oct 2017 20:07:32 +0000 (22:07 +0200)]
Add a dummy action in empty catch block (sonar).

2 years agoReduce code duplication.
Arnaud Giersch [Wed, 4 Oct 2017 20:06:12 +0000 (22:06 +0200)]
Reduce code duplication.

2 years agoRemove lines of commented code spotted by sonar.
Arnaud Giersch [Wed, 4 Oct 2017 16:43:57 +0000 (18:43 +0200)]
Remove lines of commented code spotted by sonar.

2 years agocosmetics in field names (and fix MC builds)
Martin Quinson [Wed, 4 Oct 2017 20:04:29 +0000 (22:04 +0200)]
cosmetics in field names (and fix MC builds)

2 years agosonar cleanups
Martin Quinson [Wed, 4 Oct 2017 19:40:54 +0000 (21:40 +0200)]
sonar cleanups

2 years agoDeprecate an obscure part of the XML format
Martin Quinson [Wed, 4 Oct 2017 19:02:39 +0000 (21:02 +0200)]
Deprecate an obscure part of the XML format

2 years agosonar: also exclude java tests from coverage
Martin Quinson [Wed, 4 Oct 2017 18:57:14 +0000 (20:57 +0200)]
sonar: also exclude java tests from coverage

2 years agoCannot have comm == MPI_COMM_NULL here.
Arnaud Giersch [Wed, 4 Oct 2017 14:45:38 +0000 (16:45 +0200)]
Cannot have comm == MPI_COMM_NULL here.

2 years agoDelete obsolete hack.
Arnaud Giersch [Wed, 4 Oct 2017 13:55:58 +0000 (15:55 +0200)]
Delete obsolete hack.

2 years agoRemove unused functions from xbt_os_thread.
Arnaud Giersch [Wed, 4 Oct 2017 13:38:29 +0000 (15:38 +0200)]
Remove unused functions from xbt_os_thread.

Functions: xbt_os_thread_cancel(), xbt_os_thread_detach(), _os_thread_ex_terminate().

2 years agoRemoved unused functions from xbt_str.
Arnaud Giersch [Wed, 4 Oct 2017 10:18:16 +0000 (12:18 +0200)]
Removed unused functions from xbt_str.

Functions: xbt_str_split_str(), xbt_str_subst(), xbt_str_ltrim(),
           xbt_str_rtrim(), xbt_str_trim().

2 years agoDelete trailing spaces.
Arnaud Giersch [Wed, 4 Oct 2017 13:40:59 +0000 (15:40 +0200)]
Delete trailing spaces.

2 years agoA call to bprintf is enough here.
Arnaud Giersch [Wed, 4 Oct 2017 09:24:06 +0000 (11:24 +0200)]
A call to bprintf is enough here.

2 years agoUse std::replace instead of xbt_str_subst in C++ files.
Arnaud Giersch [Tue, 3 Oct 2017 20:39:07 +0000 (22:39 +0200)]
Use std::replace instead of xbt_str_subst in C++ files.

2 years agoRemove useless includes for xbt/str.h.
Arnaud Giersch [Tue, 3 Oct 2017 19:43:05 +0000 (21:43 +0200)]
Remove useless includes for xbt/str.h.

2 years agoMerge branch 'master' of github.com:simgrid/simgrid
Martin Quinson [Wed, 4 Oct 2017 13:22:22 +0000 (15:22 +0200)]
Merge branch 'master' of github.com:simgrid/simgrid

2 years agocodacy
Martin Quinson [Wed, 4 Oct 2017 13:17:02 +0000 (15:17 +0200)]
codacy

2 years agocodacy
Martin Quinson [Wed, 4 Oct 2017 13:17:02 +0000 (15:17 +0200)]
codacy

2 years ago[SMPI] Renamed smpi_*_data_exe as a first step for overhaul of the privatization
Christian Heinrich [Tue, 3 Oct 2017 16:19:32 +0000 (18:19 +0200)]
[SMPI] Renamed smpi_*_data_exe as a first step for overhaul of the privatization

We will introduce a smpi_data_exe_copy variable soon and
we want more uniform names; having the (size|copy|start) at the end makes it much
simpler for us to grep for these variables.

2 years agoenable MPICH3 tests on travis to get the associated coverage on sonar
Martin Quinson [Tue, 3 Oct 2017 10:51:19 +0000 (12:51 +0200)]
enable MPICH3 tests on travis to get the associated coverage on sonar

2 years agofix teshfile according to my recent cosmetics
Martin Quinson [Mon, 2 Oct 2017 23:01:44 +0000 (01:01 +0200)]
fix teshfile according to my recent cosmetics

2 years agosonar: fix a syntax error in the file
Martin Quinson [Mon, 2 Oct 2017 22:55:48 +0000 (00:55 +0200)]
sonar: fix a syntax error in the file

2 years agoignore the newly created binary
Martin Quinson [Mon, 2 Oct 2017 22:43:12 +0000 (00:43 +0200)]
ignore the newly created binary

2 years agofurther reduce the differences between the s4u-async examples
Martin Quinson [Mon, 2 Oct 2017 22:27:13 +0000 (00:27 +0200)]
further reduce the differences between the s4u-async examples

2 years agovarious cosmetics in the s4u-async-wait example
Martin Quinson [Mon, 2 Oct 2017 22:05:38 +0000 (00:05 +0200)]
various cosmetics in the s4u-async-wait example

2 years agocosmetics and doc
Martin Quinson [Mon, 2 Oct 2017 21:28:11 +0000 (23:28 +0200)]
cosmetics and doc

2 years agosimplification, and don't miss any such file
Martin Quinson [Mon, 2 Oct 2017 21:21:40 +0000 (23:21 +0200)]
simplification, and don't miss any such file

2 years agoupdate changelog
Martin Quinson [Sun, 1 Oct 2017 21:57:10 +0000 (23:57 +0200)]
update changelog

2 years agoMerge pull request #224 from Takishipp/async-wait
Martin Quinson [Mon, 2 Oct 2017 19:49:53 +0000 (21:49 +0200)]
Merge pull request #224 from Takishipp/async-wait

Add s4u-async-wait to the examples of s4u

2 years agoMerge branch 'master' into async-wait
Zitagcc [Mon, 2 Oct 2017 16:02:10 +0000 (18:02 +0200)]
Merge branch 'master' into async-wait

2 years agos4u-async-wait is complete
Takishipp [Mon, 2 Oct 2017 16:02:57 +0000 (18:02 +0200)]
s4u-async-wait is complete

2 years agoReintroduce lines removed at commit 5bc3597e1513c7b94497ae0ea819e5fa2e28058a.
Arnaud Giersch [Sun, 1 Oct 2017 20:32:48 +0000 (22:32 +0200)]
Reintroduce lines removed at commit 5bc3597e1513c7b94497ae0ea819e5fa2e28058a.

Only put them in SIMIX_clean instead of SIMIX_process_killall.

I don't really understand when/why they are useful, but the call to
SIMIX_process_empty_trash() fixes a leak seen with teshsuite/mc/random-bug.