Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
simgrid.git
2 years agoMerge branch 'master' of ssh://scm.gforge.inria.fr/gitroot/simgrid/simgrid
Arnaud Giersch [Wed, 13 Jun 2018 13:48:33 +0000 (15:48 +0200)]
Merge branch 'master' of ssh://scm.gforge.inria.fr/gitroot/simgrid/simgrid

2 years agosimplify tracing of MPI_Test. Add tracing for Testall and friends.
degomme [Wed, 13 Jun 2018 12:58:15 +0000 (14:58 +0200)]
simplify tracing of MPI_Test. Add tracing for Testall and friends.

2 years ago[SMPI] Move instr_find_color to C++
Christian Heinrich [Wed, 13 Jun 2018 11:51:16 +0000 (13:51 +0200)]
[SMPI] Move instr_find_color to C++

- Use a std::map instead of an ugly array with some semantics on it
- Make sure that exact matches are always preferred over substring matches
- Return a default color code ("0.5 0.5 0.5")

2 years ago[SMPI/TESH] Breaks tests: Fix colors for functions
Christian Heinrich [Wed, 13 Jun 2018 11:45:10 +0000 (13:45 +0200)]
[SMPI/TESH] Breaks tests: Fix colors for functions

The map with the colors used in instr_smpi.cpp was not correctly
checked because substrings were allowed too:

If irecv was passed, the map found recv first, checked whether
recv is a substring of irecv (= yes) and returned the color associated
with recv even though irecv was in the map as well.

The bugfix will be in the next commit.

2 years agocircleci: no need to apt-get now that we use a docker
Martin Quinson [Tue, 12 Jun 2018 15:29:39 +0000 (17:29 +0200)]
circleci: no need to apt-get now that we use a docker

2 years agotry to produce a circle2 file
Martin Quinson [Tue, 12 Jun 2018 14:35:09 +0000 (16:35 +0200)]
try to produce a circle2 file

2 years agotry to produce a circle2 file
Martin Quinson [Tue, 12 Jun 2018 14:35:09 +0000 (16:35 +0200)]
try to produce a circle2 file

2 years agoplease circle, go hide in that little bush and ..
Martin Quinson [Tue, 12 Jun 2018 14:22:17 +0000 (16:22 +0200)]
please circle, go hide in that little bush and ..

2 years agoComplete list of fixed bugs.
Arnaud Giersch [Mon, 11 Jun 2018 20:55:25 +0000 (22:55 +0200)]
Complete list of fixed bugs.

2 years agoFix jedule build.
Arnaud Giersch [Mon, 11 Jun 2018 12:30:01 +0000 (14:30 +0200)]
Fix jedule build.

2 years agofix lua and jedule builds (with paranoid compil flags)
Martin Quinson [Sun, 10 Jun 2018 22:43:46 +0000 (00:43 +0200)]
fix lua and jedule builds (with paranoid compil flags)

2 years agonaming consistency (+snake_casing)
Martin Quinson [Sun, 10 Jun 2018 21:49:20 +0000 (23:49 +0200)]
naming consistency (+snake_casing)

Christian recently added get_filtered_actors(), which is a nice name.

2 years agofurther snake_case NetZone
Martin Quinson [Sun, 10 Jun 2018 15:17:53 +0000 (17:17 +0200)]
further snake_case NetZone

2 years agoDeclare fake_stack only with ASan.
Arnaud Giersch [Sun, 10 Jun 2018 19:37:29 +0000 (21:37 +0200)]
Declare fake_stack only with ASan.

2 years agoRename ASAN_EVAL to ASAN_ONLY, and kill ASAN_ASSERT.
Arnaud Giersch [Sun, 10 Jun 2018 19:36:19 +0000 (21:36 +0200)]
Rename ASAN_EVAL to ASAN_ONLY, and kill ASAN_ASSERT.

2 years agoSkip harmless ASan warnings.
Arnaud Giersch [Sun, 10 Jun 2018 15:51:58 +0000 (17:51 +0200)]
Skip harmless ASan warnings.

2 years agoRaw contexts: add Asan instrumentation.
Arnaud Giersch [Sat, 9 Jun 2018 20:48:01 +0000 (22:48 +0200)]
Raw contexts: add Asan instrumentation.

2 years agoSysv contexts: add Asan instrumentation.
Arnaud Giersch [Sat, 9 Jun 2018 20:37:09 +0000 (22:37 +0200)]
Sysv contexts: add Asan instrumentation.

2 years agoSysv contexts: remove useless indirection.
Arnaud Giersch [Sat, 9 Jun 2018 21:35:13 +0000 (23:35 +0200)]
Sysv contexts: remove useless indirection.

2 years agoBoost contexts: add an assert checking that we don't mix up originating context.
Arnaud Giersch [Sun, 10 Jun 2018 15:31:15 +0000 (17:31 +0200)]
Boost contexts: add an assert checking that we don't mix up originating context.

2 years agoContexts: move asan support in separate header.
Arnaud Giersch [Sat, 9 Jun 2018 20:10:48 +0000 (22:10 +0200)]
Contexts: move asan support in separate header.

2 years agoClang-6.0 wants initialization.
Arnaud Giersch [Fri, 8 Jun 2018 20:35:45 +0000 (22:35 +0200)]
Clang-6.0 wants initialization.

2 years agoField is unused without smpi.
Arnaud Giersch [Sat, 9 Jun 2018 12:53:55 +0000 (14:53 +0200)]
Field is unused without smpi.

2 years agoUpdate .mailmap.
Arnaud Giersch [Fri, 8 Jun 2018 14:49:35 +0000 (16:49 +0200)]
Update .mailmap.

2 years agouse unordered_maps to store properties
Martin Quinson [Sun, 10 Jun 2018 14:55:37 +0000 (16:55 +0200)]
use unordered_maps to store properties

2 years agostart snake_casing NetZone. Many cleanups to come
Martin Quinson [Sat, 9 Jun 2018 20:16:38 +0000 (22:16 +0200)]
start snake_casing NetZone. Many cleanups to come

2 years agoMerge branch 'master' of git+ssh://scm.gforge.inria.fr//gitroot/simgrid/simgrid
Frederic Suter [Sat, 9 Jun 2018 15:49:13 +0000 (17:49 +0200)]
Merge branch 'master' of git+ssh://scm.gforge.inria.fr//gitroot/simgrid/simgrid

2 years agocosmetic snake casing
Frederic Suter [Fri, 8 Jun 2018 22:19:42 +0000 (00:19 +0200)]
cosmetic snake casing

2 years agoASan supposely works with swapcontext and ASM manual contexts
Martin Quinson [Tue, 5 Jun 2018 22:04:43 +0000 (00:04 +0200)]
ASan supposely works with swapcontext and ASM manual contexts

2 years agoFix OSX rpath issues by using real paths.
Matthieu Volat [Fri, 8 Jun 2018 14:11:53 +0000 (16:11 +0200)]
Fix OSX rpath issues by using real paths.

For this to works across all tests, tuto-msg must be supplied
-Wl,-rpath argument to CFLAGS, not elegant, but works...

2 years agoCompleted request was already nulled in Request::waitany. Use the right index.
Arnaud Giersch [Fri, 8 Jun 2018 11:55:43 +0000 (13:55 +0200)]
Completed request was already nulled in Request::waitany.  Use the right index.

This reverts commit b034798c622c83cdd6fc4f068ca6a86771f82014.

2 years agoMPI_Wait*: fix tracing related memory leaks.
Arnaud Giersch [Fri, 8 Jun 2018 09:49:46 +0000 (11:49 +0200)]
MPI_Wait*: fix tracing related memory leaks.

2 years agoMPI_Waitany: set completed request to null.
Arnaud Giersch [Fri, 8 Jun 2018 09:42:06 +0000 (11:42 +0200)]
MPI_Waitany: set completed request to null.

2 years agocosmetics: this is a bool
Frederic Suter [Fri, 8 Jun 2018 09:01:23 +0000 (11:01 +0200)]
cosmetics: this is a bool

2 years agosnake_case VirtualMachineImpl
Frederic Suter [Fri, 8 Jun 2018 08:36:15 +0000 (10:36 +0200)]
snake_case VirtualMachineImpl

2 years agoextra cleanups in Storage
Frederic Suter [Fri, 8 Jun 2018 07:33:33 +0000 (09:33 +0200)]
extra cleanups in Storage

2 years agoa few less verbose descriptions in instr
Frederic Suter [Fri, 8 Jun 2018 07:07:23 +0000 (09:07 +0200)]
a few less verbose descriptions in instr

2 years agoFix build for lua bindings.
Arnaud Giersch [Wed, 6 Jun 2018 14:37:03 +0000 (16:37 +0200)]
Fix build for lua bindings.

2 years agoyes another attempt
Augustin Degomme [Wed, 6 Jun 2018 22:34:10 +0000 (00:34 +0200)]
yes another attempt

2 years agosnake case storage
Frederic Suter [Wed, 6 Jun 2018 18:20:32 +0000 (20:20 +0200)]
snake case storage

2 years agonow useless, bummer
Frederic Suter [Wed, 6 Jun 2018 12:17:33 +0000 (14:17 +0200)]
now useless, bummer

2 years agofix build (and please valgrind)
Frederic Suter [Wed, 6 Jun 2018 12:15:47 +0000 (14:15 +0200)]
fix build (and please valgrind)

2 years agoMerge branch 'master' of git+ssh://scm.gforge.inria.fr//gitroot/simgrid/simgrid
Frederic Suter [Wed, 6 Jun 2018 12:15:28 +0000 (14:15 +0200)]
Merge branch 'master' of git+ssh://scm.gforge.inria.fr//gitroot/simgrid/simgrid

2 years agoremove trace-resource from trace comparison, as results are unreliable and too large...
Augustin Degomme [Wed, 6 Jun 2018 12:06:38 +0000 (14:06 +0200)]
remove trace-resource from trace comparison, as results are unreliable and too large. Need to test it elsewhere.

2 years agouseless private
Frederic Suter [Wed, 6 Jun 2018 10:58:00 +0000 (12:58 +0200)]
useless private

2 years agoMerge branch 'master' of git+ssh://scm.gforge.inria.fr//gitroot/simgrid/simgrid
Frederic Suter [Wed, 6 Jun 2018 10:16:54 +0000 (12:16 +0200)]
Merge branch 'master' of git+ssh://scm.gforge.inria.fr//gitroot/simgrid/simgrid

2 years agomv link map to the engine
Frederic Suter [Wed, 6 Jun 2018 10:16:37 +0000 (12:16 +0200)]
mv link map to the engine

2 years agoActually test SMPI tracing - high probability of failure
Augustin Degomme [Wed, 6 Jun 2018 09:47:05 +0000 (11:47 +0200)]
Actually test SMPI tracing - high probability of failure

2 years agoreduce time taken by a test (maybe for nothing)
Augustin Degomme [Wed, 6 Jun 2018 09:27:04 +0000 (11:27 +0200)]
reduce time taken by a test (maybe for nothing)

2 years agoadd back tracing of communications in wait/waitany/waitall, should fix #269
Augustin Degomme [Wed, 6 Jun 2018 09:26:42 +0000 (11:26 +0200)]
add back tracing of communications in wait/waitany/waitall, should fix #269

2 years agofactor attachment of state traces to resources
Frederic Suter [Wed, 6 Jun 2018 08:20:15 +0000 (10:20 +0200)]
factor attachment of state traces to resources

It also opens the way to state traces for other resources, such as
storage

2 years agosnake case for better consistency
Frederic Suter [Wed, 6 Jun 2018 08:05:02 +0000 (10:05 +0200)]
snake case for better consistency

2 years agosnake_case LinkImpl (but the part that should to the engine)
Frederic Suter [Wed, 6 Jun 2018 07:55:03 +0000 (09:55 +0200)]
snake_case LinkImpl (but the part that should to the engine)

2 years agoAvoid hard coded -lboost_unit_test_framework.
Arnaud Giersch [Tue, 5 Jun 2018 08:33:20 +0000 (10:33 +0200)]
Avoid hard coded -lboost_unit_test_framework.

2 years agoUpdate .mailmap file.
Arnaud Giersch [Fri, 1 Jun 2018 21:26:57 +0000 (23:26 +0200)]
Update .mailmap file.

2 years agotry to fix how we deal with rpath on binaries
Martin Quinson [Mon, 4 Jun 2018 20:43:50 +0000 (22:43 +0200)]
try to fix how we deal with rpath on binaries

2 years agotry to avoid a false positive on sonar saying that on_exit() is deprecated
Martin Quinson [Mon, 4 Jun 2018 07:02:33 +0000 (09:02 +0200)]
try to avoid a false positive on sonar saying that on_exit() is deprecated

2 years agohost-filtering example: improve doc, and add to documentation TOC
Martin Quinson [Sun, 3 Jun 2018 21:08:59 +0000 (23:08 +0200)]
host-filtering example: improve doc, and add to documentation TOC

2 years agosonar: Mark constructors as explicit
Martin Quinson [Sun, 3 Jun 2018 20:46:46 +0000 (22:46 +0200)]
sonar: Mark constructors as explicit

2 years agocmake: cosmetics around the detection of sem_init
Martin Quinson [Sun, 3 Jun 2018 19:53:33 +0000 (21:53 +0200)]
cmake: cosmetics around the detection of sem_init

2 years agoTry to fix the link to Boost_UNIT_TEST_FRAMEWORK
Martin Quinson [Sun, 3 Jun 2018 19:16:18 +0000 (21:16 +0200)]
Try to fix the link to Boost_UNIT_TEST_FRAMEWORK

Thanks to Olivier for the patch. It (fix: #267).

2 years agos4u::NetZone: move deprecation wrappers to the end
Martin Quinson [Thu, 31 May 2018 15:41:20 +0000 (17:41 +0200)]
s4u::NetZone: move deprecation wrappers to the end

2 years agosnake_case the s4u::NetZone signals
Martin Quinson [Thu, 31 May 2018 15:38:05 +0000 (17:38 +0200)]
snake_case the s4u::NetZone signals

Deprecation wrapper are impossible

2 years agoSnake casing simgrid::xbt::Path.
Arnaud Giersch [Fri, 1 Jun 2018 20:12:06 +0000 (22:12 +0200)]
Snake casing simgrid::xbt::Path.

2 years agoBe more liberal when matching extension for library name.
Arnaud Giersch [Fri, 1 Jun 2018 19:56:08 +0000 (21:56 +0200)]
Be more liberal when matching extension for library name.

Letters are sometimes used in version number (e.g. libcrypto.so.1.1.0h).

2 years agofix build on 32 bit systems
Augustin Degomme [Fri, 1 Jun 2018 20:29:53 +0000 (22:29 +0200)]
fix build on 32 bit systems

2 years ago[S4U] Engine: Support retrieving actors via the engine
Christian Heinrich [Fri, 1 Jun 2018 17:59:09 +0000 (19:59 +0200)]
[S4U] Engine: Support retrieving actors via the engine

2 years ago[S4U] Engine: Add Engine::get_filtered_links
Christian Heinrich [Fri, 1 Jun 2018 17:58:07 +0000 (19:58 +0200)]
[S4U] Engine: Add Engine::get_filtered_links

2 years ago[S4U] Mark s4u::Engine constructor as explicit
Christian Heinrich [Fri, 1 Jun 2018 16:21:18 +0000 (18:21 +0200)]
[S4U] Mark s4u::Engine constructor as explicit

2 years ago[S4U] Delete Engine move & copy constructors
Christian Heinrich [Fri, 1 Jun 2018 16:19:09 +0000 (18:19 +0200)]
[S4U] Delete Engine move & copy constructors

2 years ago[S4U] Implement Engine::get_filtered_hosts
Christian Heinrich [Fri, 1 Jun 2018 08:20:35 +0000 (10:20 +0200)]
[S4U] Implement Engine::get_filtered_hosts

This method takes any callable object (lambda, function, functor = function object)
that returns a boolean value (true = use this host, false = don't use it)
and that takes a Host* as parameter.

This allows to filter within the Engine rather than returning
a list with all hosts

2 years ago[S4U] Add some tests for upcoming filtering feature
Christian Heinrich [Fri, 1 Jun 2018 08:15:10 +0000 (10:15 +0200)]
[S4U] Add some tests for upcoming filtering feature

These tests are currently neither active nor compilable,
because we haven't implemented this feature yet. See next commit.

2 years agoFix type mismatch for function pointer.
Arnaud Giersch [Fri, 1 Jun 2018 13:50:31 +0000 (15:50 +0200)]
Fix type mismatch for function pointer.

2 years agoUse memcpy instead of strncpy.
Arnaud Giersch [Fri, 1 Jun 2018 13:41:18 +0000 (15:41 +0200)]
Use memcpy instead of strncpy.

Fix build error with gcc 8.1:
error: 'strncpy' specified bound depends on the length of the source argument [-Werror=stringop-overflow=]

2 years agoEnsure that the terminating nul byte is also copied.
Arnaud Giersch [Fri, 1 Jun 2018 13:27:12 +0000 (15:27 +0200)]
Ensure that the terminating nul byte is also copied.

2 years agoMark deprecated functions.
Arnaud Giersch [Fri, 1 Jun 2018 13:03:22 +0000 (15:03 +0200)]
Mark deprecated functions.

2 years agoUse new style Actor::on_exit().
Arnaud Giersch [Fri, 1 Jun 2018 12:59:06 +0000 (14:59 +0200)]
Use new style Actor::on_exit().

2 years agoUse new style SIMIX_process_on_exit().
Arnaud Giersch [Fri, 1 Jun 2018 12:42:56 +0000 (14:42 +0200)]
Use new style SIMIX_process_on_exit().

2 years agoDefine Actor::on_exit() taking a std::function.
Arnaud Giersch [Fri, 1 Jun 2018 12:37:21 +0000 (14:37 +0200)]
Define Actor::on_exit() taking a std::function.

2 years agoDefine SIMIX_process_on_exit() taking a std::function.
Arnaud Giersch [Fri, 1 Jun 2018 12:29:40 +0000 (14:29 +0200)]
Define SIMIX_process_on_exit() taking a std::function.

2 years agoUse std::function for s_smx_process_exit_fun_t.
Arnaud Giersch [Fri, 1 Jun 2018 12:23:16 +0000 (14:23 +0200)]
Use std::function for s_smx_process_exit_fun_t.

2 years ago[SMPI] Cosmetics: ! -> not
Christian Heinrich [Wed, 16 May 2018 13:23:59 +0000 (15:23 +0200)]
[SMPI] Cosmetics: ! -> not

2 years ago[INSTR] StateEvent::popEvent() calls now StateEvent::popEvent(nullptr)
Christian Heinrich [Thu, 26 Apr 2018 09:03:51 +0000 (11:03 +0200)]
[INSTR] StateEvent::popEvent() calls now StateEvent::popEvent(nullptr)

2 years agouse try_run for sem_open instead of firing the compiler ourselves
Martin Quinson [Thu, 31 May 2018 09:50:32 +0000 (11:50 +0200)]
use try_run for sem_open instead of firing the compiler ourselves

Experience shows that we don't do it right on MacOSX, at least.

2 years agostop checking for HAVE_GNU_LD now that we don't use the result
Martin Quinson [Thu, 31 May 2018 09:17:08 +0000 (11:17 +0200)]
stop checking for HAVE_GNU_LD now that we don't use the result

The detection sometimes breaks (eg on MacOSX), and the result of this
check is not used since 2014.
See commit a79b8df1d7ee2bb82aa46cdd42cd8ae344d0f32e for why the result
is not used anymore.

2 years agoStart snake_casing s4u::NetZone
Martin Quinson [Wed, 30 May 2018 16:30:16 +0000 (18:30 +0200)]
Start snake_casing s4u::NetZone

2 years agoConstructor priorities are still not supported on Apple.
Arnaud Giersch [Thu, 31 May 2018 09:41:39 +0000 (11:41 +0200)]
Constructor priorities are still not supported on Apple.

Disable constructor priorities since gcc gives an error.

Partially reverts commit f12101aa49174017c26e19bc8076f5c7124f9dd0.

2 years agosimplification
Frederic Suter [Wed, 30 May 2018 08:48:18 +0000 (10:48 +0200)]
simplification
the previous state is NEVER used

2 years agocosmetics
Frederic Suter [Wed, 30 May 2018 07:27:48 +0000 (09:27 +0200)]
cosmetics

2 years agoConvert enum class SmpiPrivStrategies tu upper case.
Arnaud Giersch [Fri, 25 May 2018 20:19:09 +0000 (22:19 +0200)]
Convert enum class SmpiPrivStrategies tu upper case.

2 years agoConvert enum shared_malloc_type to enum class.
Arnaud Giersch [Fri, 25 May 2018 19:41:16 +0000 (21:41 +0200)]
Convert enum shared_malloc_type to enum class.

2 years agoConvert enum smpi_process_state to enum class.
Arnaud Giersch [Fri, 25 May 2018 19:37:05 +0000 (21:37 +0200)]
Convert enum smpi_process_state to enum class.

2 years agofix issue where some end of recv events were not generated whe MPI_STATUS_IGNORE...
Augustin Degomme [Sun, 27 May 2018 10:00:49 +0000 (12:00 +0200)]
fix issue where some end of recv events were not generated whe MPI_STATUS_IGNORE was sent.

2 years agomove all plugins to their new home directory
Martin Quinson [Sat, 26 May 2018 15:07:54 +0000 (17:07 +0200)]
move all plugins to their new home directory

2 years agorename the plugins from the command line, and document it
Martin Quinson [Sat, 26 May 2018 14:35:35 +0000 (16:35 +0200)]
rename the plugins from the command line, and document it

2 years agoallow to activate the link energy plugin from the command line
Martin Quinson [Fri, 25 May 2018 07:42:27 +0000 (09:42 +0200)]
allow to activate the link energy plugin from the command line

2 years agoenum class values should be UPPER_CASE
Martin Quinson [Thu, 24 May 2018 23:59:06 +0000 (01:59 +0200)]
enum class values should be UPPER_CASE

2 years agomake all_existing_models visible from k:r:Model.hpp, which is public
Martin Quinson [Thu, 24 May 2018 23:51:55 +0000 (01:51 +0200)]
make all_existing_models visible from k:r:Model.hpp, which is public

2 years agotrivial snake_casing of xbt::PropertyHolder
Martin Quinson [Thu, 24 May 2018 06:58:52 +0000 (08:58 +0200)]
trivial snake_casing of xbt::PropertyHolder

No backward compat necessary as all subclasses are in the kernel (and
not exposed publicly yet)

2 years agofix NS3 builds
Martin Quinson [Wed, 23 May 2018 18:50:37 +0000 (20:50 +0200)]
fix NS3 builds