Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
simgrid.git
4 years agoFix HAVE_FOOBAR flags handling
Gabriel Corona [Wed, 9 Mar 2016 10:14:02 +0000 (11:14 +0100)]
Fix HAVE_FOOBAR flags handling

* always #define them (to 0 or 1);

* check with FOO instead of defined(FOO);

This way we detect missing #includes with -Wundef.

4 years agoFix HAVE_GRAPHVIZ handling
Gabriel Corona [Wed, 9 Mar 2016 10:10:06 +0000 (11:10 +0100)]
Fix HAVE_GRAPHVIZ handling

4 years agoWarn on undefined #if, and enjoy that feature
Martin Quinson [Wed, 9 Mar 2016 09:28:15 +0000 (10:28 +0100)]
Warn on undefined #if, and enjoy that feature

- remove the #include <simgrid_config.h> from xbt/base.h now that it's safe
- Add the include where needed. Amusingly, xbt/string.hpp was unable
  of getting the definition of HAVE_MC alone. Fixing this leaves me with
  only 2 broken tests in MC mode where I had 17 of them before...

4 years agoempty portable.h and spread the include in files
Martin Quinson [Wed, 9 Mar 2016 08:55:35 +0000 (09:55 +0100)]
empty portable.h and spread the include in files

I did only what I can test to work on my machine so far (ie, all but
windows stuff)

4 years agoHAVE_STDDEF_H is never defined in our code
Martin Quinson [Wed, 9 Mar 2016 01:26:32 +0000 (02:26 +0100)]
HAVE_STDDEF_H is never defined in our code

4 years agokill windows backtraces. They were x86 only
Martin Quinson [Wed, 9 Mar 2016 01:19:45 +0000 (02:19 +0100)]
kill windows backtraces. They were x86 only

4 years agocosmetics
Martin Quinson [Wed, 9 Mar 2016 01:09:46 +0000 (02:09 +0100)]
cosmetics

4 years agoRevert "thread_local is C++11, remove the portability layer"
Martin Quinson [Wed, 9 Mar 2016 00:43:04 +0000 (01:43 +0100)]
Revert "thread_local is C++11, remove the portability layer"

This reverts commit 3893493151bcdbed55ef359cdfea4563ee8cddb8.

It fails on some platforms (clang 6, gcc 4.7.3), as if that part of
C++11 were not well implemented yet. In a few years maybe.

4 years agoKill <gpu>. Was not doing anything.
Martin Quinson [Wed, 9 Mar 2016 00:34:17 +0000 (01:34 +0100)]
Kill <gpu>. Was not doing anything.

4 years agouse C++ constants when possible
Martin Quinson [Wed, 9 Mar 2016 00:25:09 +0000 (01:25 +0100)]
use C++ constants when possible

4 years ago__func__ is C99 for __FUNCTION__. Kill portability layer
Martin Quinson [Wed, 9 Mar 2016 00:01:45 +0000 (01:01 +0100)]
__func__ is C99 for __FUNCTION__. Kill portability layer

4 years agogcc 2.4+ is not quite a recent version anymore
Martin Quinson [Tue, 8 Mar 2016 23:55:28 +0000 (00:55 +0100)]
gcc 2.4+ is not quite a recent version anymore

4 years agocreate the test before setting its properties
Martin Quinson [Tue, 8 Mar 2016 23:51:40 +0000 (00:51 +0100)]
create the test before setting its properties

otherwise it fails on travis and appveyor, even if it works pretty
well on my machine.

4 years agothread_local is C++11, remove the portability layer
Martin Quinson [Tue, 8 Mar 2016 23:40:50 +0000 (00:40 +0100)]
thread_local is C++11, remove the portability layer

4 years agouse #if instead if #ifdef for the things in the public config header
Martin Quinson [Tue, 8 Mar 2016 23:26:23 +0000 (00:26 +0100)]
use #if instead if #ifdef for the things in the public config header

4 years agoRename the fields of surf::Model
Martin Quinson [Tue, 8 Mar 2016 21:23:22 +0000 (22:23 +0100)]
Rename the fields of surf::Model

4 years agorename NS3 links
Martin Quinson [Tue, 8 Mar 2016 21:14:09 +0000 (22:14 +0100)]
rename NS3 links

4 years agoremove bw and lat traces from the Link constructor
Martin Quinson [Tue, 8 Mar 2016 21:11:15 +0000 (22:11 +0100)]
remove bw and lat traces from the Link constructor

4 years agoremove the state trace from the Link constructor
Martin Quinson [Tue, 8 Mar 2016 20:30:50 +0000 (21:30 +0100)]
remove the state trace from the Link constructor

use setStateTrace() after creation.

4 years agorouting: inline 2 functions
Martin Quinson [Tue, 8 Mar 2016 18:03:01 +0000 (19:03 +0100)]
routing: inline 2 functions

4 years agocmake: exec_program() is deprecated. Use execute_process() instead
Martin Quinson [Tue, 8 Mar 2016 16:38:02 +0000 (17:38 +0100)]
cmake: exec_program() is deprecated. Use execute_process() instead

4 years agoMove the surf::As* classes into their own files
Martin Quinson [Tue, 8 Mar 2016 15:47:47 +0000 (16:47 +0100)]
Move the surf::As* classes into their own files

4 years agorefactor AsImpl::RoutingMode after mc::ReductionMode
Martin Quinson [Tue, 8 Mar 2016 14:03:31 +0000 (15:03 +0100)]
refactor AsImpl::RoutingMode after mc::ReductionMode

Reviewing the code of Gabriel is often instructive about what you're
supposed to do in C++ ;)

4 years agofix da test
Martin Quinson [Tue, 8 Mar 2016 13:39:08 +0000 (14:39 +0100)]
fix da test

4 years agoMerge branch 'master' of scm.gforge.inria.fr:/gitroot/simgrid/simgrid
Martin Quinson [Tue, 8 Mar 2016 13:27:22 +0000 (14:27 +0100)]
Merge branch 'master' of scm.gforge.inria.fr:/gitroot/simgrid/simgrid

4 years agoMerge branch 'master' of git+ssh://scm.gforge.inria.fr//gitroot/simgrid/simgrid
Frederic Suter [Tue, 8 Mar 2016 13:26:45 +0000 (14:26 +0100)]
Merge branch 'master' of git+ssh://scm.gforge.inria.fr//gitroot/simgrid/simgrid

4 years agoreindent
Martin Quinson [Tue, 8 Mar 2016 13:25:46 +0000 (14:25 +0100)]
reindent

4 years agomove implementation bits of s4u::As into surf::AsImpl
Martin Quinson [Tue, 8 Mar 2016 11:20:23 +0000 (12:20 +0100)]
move implementation bits of s4u::As into surf::AsImpl

4 years ago[mc] Fix typo in dommunications determinism
Gabriel Corona [Tue, 8 Mar 2016 13:25:27 +0000 (14:25 +0100)]
[mc] Fix typo in dommunications determinism

4 years ago[mc] Move mc_safety code in simgrid::mc
Gabriel Corona [Tue, 8 Mar 2016 13:07:14 +0000 (14:07 +0100)]
[mc] Move mc_safety code in simgrid::mc

4 years agoalways include mc sources
Frederic Suter [Tue, 8 Mar 2016 13:17:31 +0000 (14:17 +0100)]
always include mc sources

4 years ago[mc] Use C++ ctor/new/delete for VisitedPair
Gabriel Corona [Tue, 8 Mar 2016 12:10:41 +0000 (13:10 +0100)]
[mc] Use C++ ctor/new/delete for VisitedPair

4 years agounique_ptr for dynar, automaton, swag, etc.
Gabriel Corona [Tue, 8 Mar 2016 11:27:05 +0000 (12:27 +0100)]
unique_ptr for dynar, automaton, swag, etc.

4 years ago[mc] Use C++ ctor/new/delete for Pair
Gabriel Corona [Tue, 8 Mar 2016 10:59:09 +0000 (11:59 +0100)]
[mc] Use C++ ctor/new/delete for Pair

4 years agoset will fail property for stack overoflow on win and osx
Frederic Suter [Tue, 8 Mar 2016 12:27:09 +0000 (13:27 +0100)]
set will fail property for stack overoflow on win and osx

4 years ago[mc] Fix compilation in non-MC
Gabriel Corona [Tue, 8 Mar 2016 11:54:49 +0000 (12:54 +0100)]
[mc] Fix compilation in non-MC

4 years ago[mc] Remove commented out code (parallel code)
Gabriel Corona [Tue, 8 Mar 2016 10:42:09 +0000 (11:42 +0100)]
[mc] Remove commented out code (parallel code)

4 years ago[mc] Move mc_liveness code in simgrid::mc
Gabriel Corona [Tue, 8 Mar 2016 10:21:13 +0000 (11:21 +0100)]
[mc] Move mc_liveness code in simgrid::mc

4 years ago[mc] Remove extra extern "C" {}
Gabriel Corona [Tue, 8 Mar 2016 10:16:58 +0000 (11:16 +0100)]
[mc] Remove extra extern "C" {}

4 years ago[mc] Move things in simgrid::mc
Gabriel Corona [Tue, 8 Mar 2016 09:49:36 +0000 (10:49 +0100)]
[mc] Move things in simgrid::mc

4 years ago[mc] Remove the SNAPSHOT and COMPARE_SNAPSHOTS MC simcalls
Gabriel Corona [Tue, 8 Mar 2016 09:44:49 +0000 (10:44 +0100)]
[mc] Remove the SNAPSHOT and COMPARE_SNAPSHOTS MC simcalls

They were not used.

4 years ago[mc] Update tesh files (bugged1_liveness_visited)
Gabriel Corona [Tue, 8 Mar 2016 09:18:37 +0000 (10:18 +0100)]
[mc] Update tesh files (bugged1_liveness_visited)

4 years ago[mc] Horrid double braces for std::array
Gabriel Corona [Tue, 8 Mar 2016 09:02:20 +0000 (10:02 +0100)]
[mc] Horrid double braces for std::array

This is needed in C++11 (not in C++14).

4 years ago[mc] Move things in the MC namespace
Gabriel Corona [Mon, 7 Mar 2016 14:02:37 +0000 (15:02 +0100)]
[mc] Move things in the MC namespace

4 years agoMerge branch 'master' of scm.gforge.inria.fr:/gitroot/simgrid/simgrid
Martin Quinson [Tue, 8 Mar 2016 08:37:25 +0000 (09:37 +0100)]
Merge branch 'master' of scm.gforge.inria.fr:/gitroot/simgrid/simgrid

4 years agodon't trigger rebuilds when the config headers didnt really change
Martin Quinson [Tue, 8 Mar 2016 07:31:07 +0000 (08:31 +0100)]
don't trigger rebuilds when the config headers didnt really change

4 years agouseless cosmetics in internal config header
Martin Quinson [Tue, 8 Mar 2016 07:06:19 +0000 (08:06 +0100)]
useless cosmetics in internal config header

4 years agoMerge branch 'master' of git+ssh://scm.gforge.inria.fr//gitroot/simgrid/simgrid
Frederic Suter [Mon, 7 Mar 2016 21:53:02 +0000 (22:53 +0100)]
Merge branch 'master' of git+ssh://scm.gforge.inria.fr//gitroot/simgrid/simgrid

4 years agoa couple of blank and space lines
Frederic Suter [Mon, 7 Mar 2016 21:50:01 +0000 (22:50 +0100)]
a couple of blank and space lines

4 years agomv ADD_TESH to the right CMakeLists.txt
Frederic Suter [Mon, 7 Mar 2016 21:45:07 +0000 (22:45 +0100)]
mv ADD_TESH to the right CMakeLists.txt

4 years agodisplay the content of simgrid_config.h at config time
Martin Quinson [Mon, 7 Mar 2016 21:27:32 +0000 (22:27 +0100)]
display the content of simgrid_config.h at config time

4 years agocleanups in public config header
Martin Quinson [Mon, 7 Mar 2016 21:21:33 +0000 (22:21 +0100)]
cleanups in public config header

4 years agosplit and simplify reduce and reduce-scatter
Frederic Suter [Mon, 7 Mar 2016 21:13:00 +0000 (22:13 +0100)]
split and simplify reduce and reduce-scatter

4 years agosimplify scatter and remove blanks
Frederic Suter [Mon, 7 Mar 2016 20:51:51 +0000 (21:51 +0100)]
simplify scatter and remove blanks

4 years agosimplify alltoall
Frederic Suter [Mon, 7 Mar 2016 20:34:16 +0000 (21:34 +0100)]
simplify alltoall

4 years agokill an obsolete script
Martin Quinson [Mon, 7 Mar 2016 20:28:09 +0000 (21:28 +0100)]
kill an obsolete script

4 years agoMerge branch 'master' of scm.gforge.inria.fr:/gitroot/simgrid/simgrid
Martin Quinson [Mon, 7 Mar 2016 20:23:59 +0000 (21:23 +0100)]
Merge branch 'master' of scm.gforge.inria.fr:/gitroot/simgrid/simgrid

4 years agoremove internal definitions from public config header
Martin Quinson [Mon, 7 Mar 2016 19:42:40 +0000 (20:42 +0100)]
remove internal definitions from public config header

4 years agofix test
Frederic Suter [Mon, 7 Mar 2016 20:04:26 +0000 (21:04 +0100)]
fix test

4 years agoMerge branch 'master' of git+ssh://scm.gforge.inria.fr//gitroot/simgrid/simgrid
Frederic Suter [Mon, 7 Mar 2016 19:54:40 +0000 (20:54 +0100)]
Merge branch 'master' of git+ssh://scm.gforge.inria.fr//gitroot/simgrid/simgrid

4 years agoalso check defaults for boost factory
Frederic Suter [Mon, 7 Mar 2016 19:48:50 +0000 (20:48 +0100)]
also check defaults for boost factory

4 years agofinally this is needed
Frederic Suter [Mon, 7 Mar 2016 19:35:08 +0000 (20:35 +0100)]
finally this is needed

4 years agoMerge branch 'master' of scm.gforge.inria.fr:/gitroot/simgrid/simgrid
Martin Quinson [Mon, 7 Mar 2016 19:36:19 +0000 (20:36 +0100)]
Merge branch 'master' of scm.gforge.inria.fr:/gitroot/simgrid/simgrid

4 years agoreindent for cosmetics
Martin Quinson [Mon, 7 Mar 2016 19:35:25 +0000 (20:35 +0100)]
reindent for cosmetics

4 years agoadd a verbose message to the Boost contexts
Martin Quinson [Mon, 7 Mar 2016 19:33:58 +0000 (20:33 +0100)]
add a verbose message to the Boost contexts

4 years agohappens when hesitating
Frederic Suter [Mon, 7 Mar 2016 19:31:35 +0000 (20:31 +0100)]
happens when hesitating

4 years agosimplify allredude tests
Frederic Suter [Mon, 7 Mar 2016 19:30:40 +0000 (20:30 +0100)]
simplify allredude tests

4 years agodamn, 2 modifications of Tests.cmake here
Frederic Suter [Mon, 7 Mar 2016 19:29:34 +0000 (20:29 +0100)]
damn, 2 modifications of Tests.cmake here
  + mv simix test
  + mv allreduce tests

4 years agoput add_tesh where they belong for simix
Frederic Suter [Mon, 7 Mar 2016 19:28:53 +0000 (20:28 +0100)]
put add_tesh where they belong for simix

4 years agokill some blank lines, #### lines, ...
Frederic Suter [Mon, 7 Mar 2016 18:17:08 +0000 (19:17 +0100)]
kill some blank lines, #### lines, ...

4 years agoNot escaping { and } in regexps is deprecated in recent perl, and triggers errors
degomme [Mon, 7 Mar 2016 16:50:18 +0000 (17:50 +0100)]
Not escaping { and } in regexps is deprecated in recent perl, and triggers errors

4 years agomove add_tesh where it belongs
Frederic Suter [Mon, 7 Mar 2016 16:37:54 +0000 (17:37 +0100)]
move add_tesh where it belongs

4 years agotry not to rely on dpkg here, fedora does not like that.
degomme [Mon, 7 Mar 2016 16:28:50 +0000 (17:28 +0100)]
try not to rely on dpkg here, fedora does not like that.

4 years agoMerge branch 'master' of git+ssh://scm.gforge.inria.fr/gitroot/simgrid/simgrid
degomme [Mon, 7 Mar 2016 15:55:23 +0000 (16:55 +0100)]
Merge branch 'master' of git+ssh://scm.gforge.inria.fr/gitroot/simgrid/simgrid

4 years agothese test work on windows, actually
degomme [Mon, 7 Mar 2016 15:55:11 +0000 (16:55 +0100)]
these test work on windows, actually

4 years agocmake: kill MMALLOC_WANT_OVERRIDE_LEGACY that dupplicated HAVE_MC
Martin Quinson [Mon, 7 Mar 2016 14:44:54 +0000 (15:44 +0100)]
cmake: kill MMALLOC_WANT_OVERRIDE_LEGACY that dupplicated HAVE_MC

4 years agoMerge branch 'master' of git+ssh://scm.gforge.inria.fr//gitroot/simgrid/simgrid
Frederic Suter [Mon, 7 Mar 2016 14:52:32 +0000 (15:52 +0100)]
Merge branch 'master' of git+ssh://scm.gforge.inria.fr//gitroot/simgrid/simgrid

4 years agono smpi won't be spared by my manic fury!
Frederic Suter [Mon, 7 Mar 2016 14:51:26 +0000 (15:51 +0100)]
no smpi won't be spared by my manic fury!
chop, chop, little ax, chop, chop!!

4 years agoLeftover reference to enable_tracing cmake option
Martin Quinson [Mon, 7 Mar 2016 10:58:04 +0000 (11:58 +0100)]
Leftover reference to enable_tracing cmake option

4 years ago[mc] Add comments for the DWARF-by-build-id lookup code
Gabriel Corona [Mon, 7 Mar 2016 12:42:53 +0000 (13:42 +0100)]
[mc] Add comments for the DWARF-by-build-id lookup code

4 years agopost-lunch useless cosmetics
Frederic Suter [Mon, 7 Mar 2016 12:40:48 +0000 (13:40 +0100)]
post-lunch useless cosmetics

4 years ago[mc] Comment about FILTERED_LIBS
Gabriel Corona [Mon, 7 Mar 2016 12:29:41 +0000 (13:29 +0100)]
[mc] Comment about FILTERED_LIBS

4 years ago[mc] Load DWARF info from external file using NT_GNU_BUILD_ID
Gabriel Corona [Mon, 7 Mar 2016 12:02:41 +0000 (13:02 +0100)]
[mc] Load DWARF info from external file using NT_GNU_BUILD_ID

4 years ago[mc] Reorganise the ELF/DWARF processing
Gabriel Corona [Mon, 7 Mar 2016 09:46:21 +0000 (10:46 +0100)]
[mc] Reorganise the ELF/DWARF processing

Preparation for loading DWARF from another file.

4 years agoMerge branch 'master' of git+ssh://scm.gforge.inria.fr//gitroot/simgrid/simgrid
Frederic Suter [Mon, 7 Mar 2016 11:08:35 +0000 (12:08 +0100)]
Merge branch 'master' of git+ssh://scm.gforge.inria.fr//gitroot/simgrid/simgrid

4 years agodid I mention that I hate blank lines?
Frederic Suter [Mon, 7 Mar 2016 11:08:00 +0000 (12:08 +0100)]
did I mention that I hate blank lines?

4 years agoput ADD_TESH where they belong
Frederic Suter [Mon, 7 Mar 2016 11:07:23 +0000 (12:07 +0100)]
put ADD_TESH where they belong

4 years agocmake: PTH_STACKGROW is actually used in many contexts, dont bind it to SysV ones
Martin Quinson [Mon, 7 Mar 2016 10:43:24 +0000 (11:43 +0100)]
cmake: PTH_STACKGROW is actually used in many contexts, dont bind it to SysV ones

4 years agofactoring and cleanups for msg/tracing
Frederic Suter [Mon, 7 Mar 2016 10:34:59 +0000 (11:34 +0100)]
factoring and cleanups for msg/tracing

4 years agodon't be so line expensive
Frederic Suter [Mon, 7 Mar 2016 10:14:57 +0000 (11:14 +0100)]
don't be so line expensive

4 years agoadopt good practices for s4u too
Frederic Suter [Mon, 7 Mar 2016 09:11:08 +0000 (10:11 +0100)]
adopt good practices for s4u too

4 years agoMerge branch 'master' of scm.gforge.inria.fr:/gitroot/simgrid/simgrid
Martin Quinson [Mon, 7 Mar 2016 09:49:11 +0000 (10:49 +0100)]
Merge branch 'master' of scm.gforge.inria.fr:/gitroot/simgrid/simgrid

4 years agoEnable Boost contextes on Windows
degomme [Mon, 7 Mar 2016 09:35:00 +0000 (10:35 +0100)]
Enable Boost contextes on Windows
Detection fails on our test platform if we don't use static version

4 years agoDisable raw contextes on Windows.
degomme [Mon, 7 Mar 2016 09:29:29 +0000 (10:29 +0100)]
Disable raw contextes on Windows.
They used to work on 32 bit version of simgrid on Windows, but are broken for 64 bits
We don't want to spend time maintaining them.

4 years agoCeterum censeo Applem delendam esse.
Martin Quinson [Mon, 7 Mar 2016 09:32:49 +0000 (10:32 +0100)]
Ceterum censeo Applem delendam esse.

4 years agoBummer, don't display a macro that we just tested to be undefine
Martin Quinson [Mon, 7 Mar 2016 09:22:54 +0000 (10:22 +0100)]
Bummer, don't display a macro that we just tested to be undefine

4 years agoMerge branch 'master' of github.com:mquinson/simgrid
Martin Quinson [Mon, 7 Mar 2016 09:03:05 +0000 (10:03 +0100)]
Merge branch 'master' of github.com:mquinson/simgrid

4 years agotry to fix the build of sysv contexts on windows
Martin Quinson [Mon, 7 Mar 2016 09:01:55 +0000 (10:01 +0100)]
try to fix the build of sysv contexts on windows

4 years agofactoring in examples/msg/masterslave
Frederic Suter [Mon, 7 Mar 2016 08:52:39 +0000 (09:52 +0100)]
factoring in examples/msg/masterslave

 this directory is a mess ... and the first one we tell users to look at

4 years ago[mc] Remove more useless braces
Gabriel Corona [Mon, 7 Mar 2016 08:48:04 +0000 (09:48 +0100)]
[mc] Remove more useless braces