Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
simgrid.git
6 years agostart snake_casing s4u::Actor
Martin Quinson [Sun, 8 Apr 2018 20:32:26 +0000 (22:32 +0200)]
start snake_casing s4u::Actor

6 years agosnake_case s4u::Activity
Martin Quinson [Sat, 7 Apr 2018 20:54:44 +0000 (22:54 +0200)]
snake_case s4u::Activity

6 years agoenum class for e_s4u_activity_state_t
Martin Quinson [Sat, 7 Apr 2018 20:29:02 +0000 (22:29 +0200)]
enum class for e_s4u_activity_state_t

6 years agoignore newly generated files
Martin Quinson [Sat, 7 Apr 2018 20:14:04 +0000 (22:14 +0200)]
ignore newly generated files

6 years agoalways use the right type for link sharing policy
Martin Quinson [Sat, 7 Apr 2018 20:09:38 +0000 (22:09 +0200)]
always use the right type for link sharing policy

6 years agocut replay multiple files to make test shorter
Augustin Degomme [Sat, 7 Apr 2018 17:00:20 +0000 (19:00 +0200)]
cut replay multiple files to make test shorter

6 years agochange e_surf_link_sharing_policy_t into a proper enum class
Martin Quinson [Sat, 7 Apr 2018 16:41:35 +0000 (18:41 +0200)]
change e_surf_link_sharing_policy_t into a proper enum class

6 years agovarious useless cosmetics
Martin Quinson [Sat, 7 Apr 2018 15:35:41 +0000 (17:35 +0200)]
various useless cosmetics

6 years agokill ALL trailing whitespace (and deprecate a function in Link)
Martin Quinson [Sat, 7 Apr 2018 15:13:12 +0000 (17:13 +0200)]
kill ALL trailing whitespace (and deprecate a function in Link)

Sorry for the mixup, I forgot to commit between the two change sets.

6 years agocodacy: trailing whitespace
Martin Quinson [Sat, 7 Apr 2018 06:26:48 +0000 (08:26 +0200)]
codacy: trailing whitespace

6 years agomove all network models to the kernel::resource namespace
Martin Quinson [Sat, 7 Apr 2018 06:24:46 +0000 (08:24 +0200)]
move all network models to the kernel::resource namespace

6 years agokill useless C datatypes
Martin Quinson [Fri, 6 Apr 2018 20:06:29 +0000 (22:06 +0200)]
kill useless C datatypes

6 years agocut another bunch of include
Martin Quinson [Fri, 6 Apr 2018 20:00:34 +0000 (22:00 +0200)]
cut another bunch of include

6 years agomove the definition of surf_network_model in a lame attempt to fix windows
Martin Quinson [Fri, 6 Apr 2018 05:54:47 +0000 (07:54 +0200)]
move the definition of surf_network_model in a lame attempt to fix windows

6 years agoforce gnu_source here.
degomme [Thu, 5 Apr 2018 08:54:36 +0000 (10:54 +0200)]
force gnu_source here.
It's needed for unistd.h types, which would be not defined if the user only specifies POSIX_SOURCE

6 years agoUse dladdr(3) to get region filename.
Arnaud Giersch [Thu, 5 Apr 2018 08:21:18 +0000 (10:21 +0200)]
Use dladdr(3) to get region filename.

proc_regionfilename gives bogus results and breaks mmap privatization.

6 years agoUse XBT_DEBUG instead of disabled fprintf(stderr).
Arnaud Giersch [Thu, 5 Apr 2018 07:51:36 +0000 (09:51 +0200)]
Use XBT_DEBUG instead of disabled fprintf(stderr).

6 years agoDon't depend on <stdbool.h>.
Arnaud Giersch [Thu, 5 Apr 2018 07:20:34 +0000 (09:20 +0200)]
Don't depend on <stdbool.h>.

It's inclusion in xbt/base.h breaks existing MPI codesi (e.g. AMG2013).

6 years agoReduce code duplication.
Arnaud Giersch [Wed, 4 Apr 2018 16:34:11 +0000 (18:34 +0200)]
Reduce code duplication.

6 years agoempty a C->C++ wrapper that will soon die
Martin Quinson [Thu, 5 Apr 2018 05:27:26 +0000 (07:27 +0200)]
empty a C->C++ wrapper that will soon die

6 years agoreduce the scope of some #include, and cut useless ones
Martin Quinson [Wed, 4 Apr 2018 23:50:34 +0000 (01:50 +0200)]
reduce the scope of some #include, and cut useless ones

I'm sick of recompiling everything each time I change a line.

6 years agomake option 'network/crosstraffic' clean and nice
Martin Quinson [Wed, 4 Apr 2018 16:15:08 +0000 (18:15 +0200)]
make option 'network/crosstraffic' clean and nice

6 years agoreduce the amount of included headers
Martin Quinson [Wed, 4 Apr 2018 16:13:27 +0000 (18:13 +0200)]
reduce the amount of included headers

6 years agoMake cmd-line option "network/TCP-gamma" neat and clean
Martin Quinson [Wed, 4 Apr 2018 15:52:35 +0000 (17:52 +0200)]
Make cmd-line option "network/TCP-gamma" neat and clean

6 years agodocument last change
Martin Quinson [Tue, 3 Apr 2018 14:28:54 +0000 (16:28 +0200)]
document last change

6 years agotry to get rid of warning by defining calls here
degomme [Wed, 4 Apr 2018 07:54:18 +0000 (09:54 +0200)]
try to get rid of warning by defining calls here
To avoid redefining them, move also the definition from smpi.h to private.hpp

6 years agoprotect against uninitialized/absent smpi
Augustin Degomme [Tue, 3 Apr 2018 23:18:32 +0000 (01:18 +0200)]
protect against uninitialized/absent smpi

6 years agofix tests with timers by properly detecting POSIX_TIMERS
degomme [Tue, 3 Apr 2018 21:23:55 +0000 (23:23 +0200)]
fix tests with timers by properly detecting POSIX_TIMERS

6 years agofix dependency issue to prevent problems with make -jx
degomme [Tue, 3 Apr 2018 21:02:06 +0000 (23:02 +0200)]
fix dependency issue to prevent problems with make -jx

6 years agoavoid undefined NULL
degomme [Tue, 3 Apr 2018 20:33:11 +0000 (22:33 +0200)]
avoid undefined NULL

6 years agoKill unused typedefs from xbt::string.
Arnaud Giersch [Tue, 3 Apr 2018 17:16:47 +0000 (19:16 +0200)]
Kill unused typedefs from xbt::string.

6 years agoPlease sonar: use typedefs s_xbt_log_*_t.
Arnaud Giersch [Tue, 3 Apr 2018 17:02:19 +0000 (19:02 +0200)]
Please sonar: use typedefs s_xbt_log_*_t.

6 years agoKill useless typedef s_xbt_dict_cursor_t.
Arnaud Giersch [Tue, 3 Apr 2018 16:38:21 +0000 (18:38 +0200)]
Kill useless typedef s_xbt_dict_cursor_t.

6 years agosensible error messages when ending the daemons result in a deadlock (fix #258)
Martin Quinson [Tue, 3 Apr 2018 14:19:47 +0000 (16:19 +0200)]
sensible error messages when ending the daemons result in a deadlock (fix #258)

6 years agoRemove useless C linkage.
Arnaud Giersch [Tue, 3 Apr 2018 14:11:20 +0000 (16:11 +0200)]
Remove useless C linkage.

6 years agoKill useless typedef tmgr_Trace.
Arnaud Giersch [Tue, 3 Apr 2018 14:02:34 +0000 (16:02 +0200)]
Kill useless typedef tmgr_Trace.

6 years agoKill useless typedefs const_lmm_element_t and lmm_constraint_light_t.
Arnaud Giersch [Tue, 3 Apr 2018 13:56:50 +0000 (15:56 +0200)]
Kill useless typedefs const_lmm_element_t and lmm_constraint_light_t.

6 years agoKill useless typedefs routing_NetPoint and sg_netpoint_t.
Arnaud Giersch [Tue, 3 Apr 2018 12:58:34 +0000 (14:58 +0200)]
Kill useless typedefs routing_NetPoint and sg_netpoint_t.

6 years agoPlease sonar: use s_xbt_mheap_t.
Arnaud Giersch [Tue, 3 Apr 2018 12:26:56 +0000 (14:26 +0200)]
Please sonar: use s_xbt_mheap_t.

6 years agoKill unused typedef SMPI_Process.
Arnaud Giersch [Tue, 3 Apr 2018 12:20:23 +0000 (14:20 +0200)]
Kill unused typedef SMPI_Process.

6 years agoKill useless typedef s_smx_simcall_t.
Arnaud Giersch [Tue, 3 Apr 2018 11:53:19 +0000 (13:53 +0200)]
Kill useless typedef s_smx_simcall_t.

6 years agoKill useless typedefs surf_Resource and sg_resource_t.
Arnaud Giersch [Tue, 3 Apr 2018 09:19:05 +0000 (11:19 +0200)]
Kill useless typedefs surf_Resource and sg_resource_t.

6 years agoConstify attribute.
Arnaud Giersch [Tue, 3 Apr 2018 08:45:55 +0000 (10:45 +0200)]
Constify attribute.

6 years agoTypo.
Arnaud Giersch [Tue, 3 Apr 2018 07:36:39 +0000 (09:36 +0200)]
Typo.

6 years agoFix compilation warning.
Arnaud Giersch [Sat, 31 Mar 2018 20:32:14 +0000 (22:32 +0200)]
Fix compilation warning.

warning: ‘simgrid::surf::CpuTiAction’ declared with greater visibility than the type of its field ‘simgrid::surf::CpuTiAction::cpu_’ [-Wattributes]

6 years agotry to handle getopt internal global variable
degomme [Tue, 3 Apr 2018 12:53:11 +0000 (14:53 +0200)]
try to handle getopt internal global variable
add a wrapper that will set the value at each call to get the one from the correct process
This will probably not work for BSD implementations (they have optreset as well that might be needed).

6 years agos4u: test what happens when we kill a newborn actor (seems to work)
Martin Quinson [Tue, 3 Apr 2018 11:45:39 +0000 (13:45 +0200)]
s4u: test what happens when we kill a newborn actor (seems to work)

6 years agofix some issues arising when killing new-born actors (see #260)
Martin Quinson [Tue, 3 Apr 2018 11:40:22 +0000 (13:40 +0200)]
fix some issues arising when killing new-born actors (see #260)

6 years agosonar: make inheritance public
Martin Quinson [Tue, 3 Apr 2018 11:17:29 +0000 (13:17 +0200)]
sonar: make inheritance public

6 years agoDragonflyZone: do not save the whole ClusterCreationArgs structure
Martin Quinson [Tue, 3 Apr 2018 08:18:58 +0000 (10:18 +0200)]
DragonflyZone: do not save the whole ClusterCreationArgs structure

6 years agosnake_case routing
Martin Quinson [Tue, 3 Apr 2018 07:22:39 +0000 (09:22 +0200)]
snake_case routing

6 years agofurther snake_case in routing
Martin Quinson [Mon, 2 Apr 2018 21:16:46 +0000 (23:16 +0200)]
further snake_case in routing

6 years agosnake_case routing::NetPoint
Martin Quinson [Mon, 2 Apr 2018 21:10:16 +0000 (23:10 +0200)]
snake_case routing::NetPoint

6 years agosnake_case in resource::Resource
Martin Quinson [Mon, 2 Apr 2018 21:06:30 +0000 (23:06 +0200)]
snake_case in resource::Resource

6 years agoconvert getCname to get_cname
Martin Quinson [Mon, 2 Apr 2018 19:10:21 +0000 (21:10 +0200)]
convert getCname to get_cname

6 years agofinish snake-casing resource::Model
Martin Quinson [Mon, 2 Apr 2018 09:41:50 +0000 (11:41 +0200)]
finish snake-casing resource::Model

6 years agoresource:: extract action_heap into its own class
Martin Quinson [Sun, 1 Apr 2018 20:45:44 +0000 (22:45 +0200)]
resource:: extract action_heap into its own class

6 years agoinline a useless function
Martin Quinson [Sun, 1 Apr 2018 09:07:13 +0000 (11:07 +0200)]
inline a useless function

6 years agoCosmetics and snake_casing in Action and Model
Martin Quinson [Sun, 1 Apr 2018 08:00:04 +0000 (10:00 +0200)]
Cosmetics and snake_casing in Action and Model

6 years agomake Model::update_algo a constant field, set at initialization only
Martin Quinson [Sat, 31 Mar 2018 20:48:24 +0000 (22:48 +0200)]
make Model::update_algo a constant field, set at initialization only

6 years agoreindent to please clang
Martin Quinson [Sat, 31 Mar 2018 18:22:22 +0000 (20:22 +0200)]
reindent to please clang

6 years agoMerge branch 'master' of scm.gforge.inria.fr:/gitroot/simgrid/simgrid
Martin Quinson [Sat, 31 Mar 2018 17:58:00 +0000 (19:58 +0200)]
Merge branch 'master' of scm.gforge.inria.fr:/gitroot/simgrid/simgrid

6 years agofix build ?
Augustin Degomme [Sat, 31 Mar 2018 17:30:30 +0000 (19:30 +0200)]
fix build ?

6 years agoMerge branch 'master' of scm.gforge.inria.fr:/gitroot/simgrid/simgrid
Martin Quinson [Sat, 31 Mar 2018 17:27:07 +0000 (19:27 +0200)]
Merge branch 'master' of scm.gforge.inria.fr:/gitroot/simgrid/simgrid

6 years agodeprecate a function to snake_case it
Martin Quinson [Sat, 31 Mar 2018 17:23:38 +0000 (19:23 +0200)]
deprecate a function to snake_case it

6 years agoCosmetics in HostImpl
Martin Quinson [Sat, 31 Mar 2018 17:17:53 +0000 (19:17 +0200)]
Cosmetics in HostImpl

6 years agoDisable privatization for smpi_replay.
Arnaud Giersch [Fri, 30 Mar 2018 07:56:54 +0000 (09:56 +0200)]
Disable privatization for smpi_replay.

It does't seem to be mandatory, and the tests are broken with mmap privatization
because the global 'previous_send' is not correctly initialized for all processes.

6 years agosmpirun: really disable privatization with -no-privatize.
Arnaud Giersch [Fri, 30 Mar 2018 12:23:32 +0000 (14:23 +0200)]
smpirun: really disable privatization with -no-privatize.

6 years agoMove debug message.
Arnaud Giersch [Sat, 31 Mar 2018 15:17:12 +0000 (17:17 +0200)]
Move debug message.

6 years agoDisable privatization when not run through smpi_main().
Arnaud Giersch [Sat, 31 Mar 2018 15:16:08 +0000 (17:16 +0200)]
Disable privatization when not run through smpi_main().

SMPI_switch_data_segment is not initialized, and mmap privatization
is crashing when trying to call it.

6 years agoUse enum class for smpi privatization strategies.
Arnaud Giersch [Fri, 30 Mar 2018 20:16:44 +0000 (22:16 +0200)]
Use enum class for smpi privatization strategies.

6 years agoAnother fix in regexp.
Arnaud Giersch [Fri, 30 Mar 2018 11:24:50 +0000 (13:24 +0200)]
Another fix in regexp.

An hyphen '-' cannot be escaped in bracket expressions, it should be put first
(or last). Anyway, it is not allowed for Fortan identifier, so simply remove it.

Also unescape underscores.

6 years agocosmetics in cpu_ti
Martin Quinson [Sat, 31 Mar 2018 15:52:26 +0000 (17:52 +0200)]
cosmetics in cpu_ti

6 years agohave the maxmin system create by itself what it needs for selective update
Martin Quinson [Sat, 31 Mar 2018 14:37:23 +0000 (16:37 +0200)]
have the maxmin system create by itself what it needs for selective update

Earlier, the modified_set was created externally by some models (but
not all). This lead to the interesting situation where we were asking
for selective update with the boolean field, but not getting this
because the modified_set was not existing.

Now that we get it when we ask for it, we detect that:
- the lmm_usage tests cannot activate selective_update because they
  don't have real actions, so they cannot track them to see which were
  modified.
- Storage is having selective updates, but with full algorithm (thus
  the change to Action::~Action() so that we deal when selective is on
  but not Lazy). No idea of whether this is the wanted behavior.

6 years agolmm::System: rename some fields, and initialize them at declaration, not in ctor
Martin Quinson [Sat, 31 Mar 2018 07:32:36 +0000 (09:32 +0200)]
lmm::System: rename some fields, and initialize them at declaration, not in ctor

6 years agoCpuCas01: set updateAlgo as initializer
Martin Quinson [Fri, 30 Mar 2018 23:13:57 +0000 (01:13 +0200)]
CpuCas01: set updateAlgo as initializer

My goal here is to make updateAlgo a constant in each Model object.

6 years agocleanup the declaration and handling of the cpu/optim option
Martin Quinson [Fri, 30 Mar 2018 23:00:17 +0000 (01:00 +0200)]
cleanup the declaration and handling of the cpu/optim option

6 years agoconfig::Flag: allow to pass a map of the valid values
Martin Quinson [Fri, 30 Mar 2018 22:56:58 +0000 (00:56 +0200)]
config::Flag: allow to pass a map of the valid values

6 years agoreduce the visibility of xbt/config.hpp file to the cpp that really need it
Martin Quinson [Fri, 30 Mar 2018 22:46:01 +0000 (00:46 +0200)]
reduce the visibility of xbt/config.hpp file to the cpp that really need it

6 years agoMerge branch 'master' of github.com:simgrid/simgrid
Martin Quinson [Fri, 30 Mar 2018 22:15:57 +0000 (00:15 +0200)]
Merge branch 'master' of github.com:simgrid/simgrid

6 years agocosmetics
Martin Quinson [Fri, 30 Mar 2018 22:14:51 +0000 (00:14 +0200)]
cosmetics

6 years agoMerge pull request #259 from simgrid/configfix
Martin Quinson [Fri, 30 Mar 2018 22:13:35 +0000 (00:13 +0200)]
Merge pull request #259 from simgrid/configfix

config: fix declareFlag template

6 years agoconfig: fix declareFlag template
Gabriel Corona [Fri, 30 Mar 2018 21:59:02 +0000 (23:59 +0200)]
config: fix declareFlag template

6 years agochange a fixme into an assert
Martin Quinson [Fri, 30 Mar 2018 18:44:58 +0000 (20:44 +0200)]
change a fixme into an assert

6 years agovarious sonar fixes
Martin Quinson [Fri, 30 Mar 2018 17:47:00 +0000 (19:47 +0200)]
various sonar fixes

- namespaces cannot be uppercased
- classes with a virtual method should have a virtual destructor
- add the missing explicit keyworlds
- each identifier on its line

6 years agofix regexp. again.
degomme [Fri, 30 Mar 2018 11:08:21 +0000 (13:08 +0200)]
fix regexp. again.

6 years agofix regexp
degomme [Fri, 30 Mar 2018 09:45:00 +0000 (11:45 +0200)]
fix regexp

6 years agoMove variable definition in cpp file.
Arnaud Giersch [Thu, 29 Mar 2018 19:38:58 +0000 (21:38 +0200)]
Move variable definition in cpp file.

6 years agoFix comment.
Arnaud Giersch [Thu, 29 Mar 2018 12:04:00 +0000 (14:04 +0200)]
Fix comment.

6 years agoFix memory leak.
Arnaud Giersch [Thu, 29 Mar 2018 10:04:06 +0000 (12:04 +0200)]
Fix memory leak.

6 years agodon't link_set after link_add to not erase the -shared flag
Martin Quinson [Fri, 30 Mar 2018 06:36:29 +0000 (08:36 +0200)]
don't link_set after link_add to not erase the -shared flag

6 years agobe verbose when the SMPI_PRETEND_CC trick is activated
Martin Quinson [Fri, 30 Mar 2018 06:05:11 +0000 (08:05 +0200)]
be verbose when the SMPI_PRETEND_CC trick is activated

6 years agosmpicc: don't add -shared when SMPI_PRETEND_CC is on
Martin Quinson [Thu, 29 Mar 2018 21:31:16 +0000 (23:31 +0200)]
smpicc: don't add -shared when SMPI_PRETEND_CC is on

all mpi programs are compiled in the -shared binary model so that we
can load them with dlopen afterward. But shared binaries cannot be run
by themselves, which is a problem to ./configure that wants to ensure
that mpicc is a real compiler (not a cross-compiler) by executing some
stupid code of its own.

Before the introduction of dlopen as a privatization mechanism, we
used to prevent the binary doing weird things when SMPI_PRETEND_CC was
defined. Now, we extend this mecanism for our compiler wrapers to play
safe in this case.

6 years agoadd gnu+11 flags to smpicxx as this seems needed
degomme [Thu, 29 Mar 2018 13:53:27 +0000 (15:53 +0200)]
add gnu+11 flags to smpicxx as this seems needed

6 years agoUse C++ style casts.
Arnaud Giersch [Wed, 28 Mar 2018 20:58:31 +0000 (22:58 +0200)]
Use C++ style casts.

6 years agoIt won't compile without C++ anyway.
Arnaud Giersch [Wed, 28 Mar 2018 20:45:57 +0000 (22:45 +0200)]
It won't compile without C++ anyway.

6 years agoVariables are already declared in surf_interface.hpp.
Arnaud Giersch [Wed, 28 Mar 2018 20:25:25 +0000 (22:25 +0200)]
Variables are already declared in surf_interface.hpp.

6 years agoFile surf.hpp is C++ only. Remove SG_BEGIN/END_DECL.
Arnaud Giersch [Wed, 28 Mar 2018 20:22:12 +0000 (22:22 +0200)]
File surf.hpp is C++ only.  Remove SG_BEGIN/END_DECL.

6 years agoFunction surf_get_clock() is already declared in surf.hpp.
Arnaud Giersch [Wed, 28 Mar 2018 20:21:27 +0000 (22:21 +0200)]
Function surf_get_clock() is already declared in surf.hpp.

6 years agoprefer this_actor:: to Actor::self()->
Martin Quinson [Wed, 28 Mar 2018 20:39:44 +0000 (22:39 +0200)]
prefer this_actor:: to Actor::self()->