Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
simgrid.git
4 years agoMerge branch 'master' into depencencies
Frederic Suter [Wed, 29 Jan 2020 20:21:15 +0000 (21:21 +0100)]
Merge branch 'master' into depencencies

4 years agoadd some fortran bindings, useful for bigdft
Augustin Degomme [Wed, 29 Jan 2020 13:54:43 +0000 (14:54 +0100)]
add some fortran bindings, useful for bigdft

4 years agoEmit a warning when a link's latency is smaller than surf/precision.
Arnaud Giersch [Tue, 28 Jan 2020 13:33:40 +0000 (14:33 +0100)]
Emit a warning when a link's latency is smaller than surf/precision.

Contributes to FG issue simgrid/simgrid#46.

4 years agoKill obsolete TODO.
Arnaud Giersch [Tue, 28 Jan 2020 10:07:26 +0000 (11:07 +0100)]
Kill obsolete TODO.

4 years agoMerge branch 'master' into depencencies
Frederic Suter [Tue, 28 Jan 2020 11:21:47 +0000 (12:21 +0100)]
Merge branch 'master' into depencencies

4 years agokeep quiet for valgrind tests on ci to avoid false positives with tesh
Augustin Degomme [Tue, 28 Jan 2020 10:14:25 +0000 (11:14 +0100)]
keep quiet for valgrind tests on ci to avoid false positives with tesh

4 years agoDisable python tests with valgrind.
Arnaud Giersch [Mon, 27 Jan 2020 15:08:36 +0000 (16:08 +0100)]
Disable python tests with valgrind.

That's too much inexplicable noise.

4 years agoMerge branch 'master' into depencencies
Frederic Suter [Mon, 27 Jan 2020 10:16:41 +0000 (11:16 +0100)]
Merge branch 'master' into depencencies

4 years agoPut only the declaration between SG_{BEGIN,END}_DECL.
Arnaud Giersch [Mon, 27 Jan 2020 10:11:03 +0000 (11:11 +0100)]
Put only the declaration between SG_{BEGIN,END}_DECL.

4 years agodeal with dependencies for Io too
Frederic Suter [Mon, 27 Jan 2020 08:50:15 +0000 (09:50 +0100)]
deal with dependencies for Io too
add an example that chains Exec and Io

4 years agorelease dependencies when test completes an activity too
Frederic Suter [Mon, 27 Jan 2020 08:49:14 +0000 (09:49 +0100)]
release dependencies when test completes an activity too

4 years agoenable dependencies between activities of different kind
Frederic Suter [Mon, 27 Jan 2020 08:48:19 +0000 (09:48 +0100)]
enable dependencies between activities of different kind

4 years agoMerge branch 'master' into depencencies
Frederic Suter [Sun, 26 Jan 2020 14:25:56 +0000 (15:25 +0100)]
Merge branch 'master' into depencencies

4 years agoRevert "Lame attempt to hide problems on Jenkins."
Arnaud Giersch [Sat, 25 Jan 2020 23:22:29 +0000 (00:22 +0100)]
Revert "Lame attempt to hide problems on Jenkins."

This reverts commit 9c4576b88a62b128692436b70a3e7b2e48b1a396.

4 years agoPlease Sonar (duplicated string literals...).
Arnaud Giersch [Sat, 25 Jan 2020 10:29:25 +0000 (11:29 +0100)]
Please Sonar (duplicated string literals...).

4 years agoSonar is picky about function names.
Arnaud Giersch [Sat, 25 Jan 2020 10:24:12 +0000 (11:24 +0100)]
Sonar is picky about function names.

4 years agoUpdate ChangeLog.
Arnaud Giersch [Fri, 24 Jan 2020 21:34:53 +0000 (22:34 +0100)]
Update ChangeLog.

Fixed simgrid/simgrid#9 on Framagit.

4 years agoIncrease required version for pybind11.
Arnaud Giersch [Fri, 24 Jan 2020 22:54:52 +0000 (23:54 +0100)]
Increase required version for pybind11.

4 years agoCmake: print pybind11 version.
Arnaud Giersch [Fri, 24 Jan 2020 22:23:55 +0000 (23:23 +0100)]
Cmake: print pybind11 version.

4 years agoTravis/windows doesn't like python.
Arnaud Giersch [Fri, 24 Jan 2020 22:18:30 +0000 (23:18 +0100)]
Travis/windows doesn't like python.

ImportError: DLL load failed while importing simgrid: The specified module could not be found.

4 years agoEnable Python for Travis/windows too.
Arnaud Giersch [Fri, 24 Jan 2020 21:48:15 +0000 (22:48 +0100)]
Enable Python for Travis/windows too.

4 years agoPlease Python linters.
Arnaud Giersch [Fri, 24 Jan 2020 21:22:31 +0000 (22:22 +0100)]
Please Python linters.

4 years agoRe-enable python on appveyor.
Arnaud Giersch [Fri, 24 Jan 2020 11:33:11 +0000 (12:33 +0100)]
Re-enable python on appveyor.

4 years agoDon't decrease reference count here. WHY?
Arnaud Giersch [Wed, 22 Jan 2020 22:17:43 +0000 (23:17 +0100)]
Don't decrease reference count here.  WHY?

Fixed: python-actor-create.

4 years agoIncreasing reference count seems to help. WHY?
Arnaud Giersch [Wed, 22 Jan 2020 21:53:37 +0000 (22:53 +0100)]
Increasing reference count seems to help.  WHY?

Fixed: python-actor-migrate, python-exec-async, python-exec-dvfs, python-exec-remote.

4 years agoUse GilScopedRelease when a simmcall can occur.
Arnaud Giersch [Wed, 22 Jan 2020 21:07:19 +0000 (22:07 +0100)]
Use GilScopedRelease when a simmcall can occur.

Tests still failing:
        python-actor-create
        python-actor-migrate
        python-exec-async
        python-exec-dvfs
        python-exec-remote

Fixed: python-exec-basic.

4 years agoUse GilScopedAcquire to create a new Python thread state when an actor is started.
Arnaud Giersch [Wed, 22 Jan 2020 20:54:30 +0000 (21:54 +0100)]
Use GilScopedAcquire to create a new Python thread state when an actor is started.

The call to py_context.reset() is here to avoid deadlocks seen later with
SwappedContexts.

py::error_already_set::~error_already_set() uses py::gil_scoped_acquire which
does not play well with our GilScopedAcquire.

4 years agoRelease the GIL when calling Engine::run.
Arnaud Giersch [Wed, 22 Jan 2020 20:49:03 +0000 (21:49 +0100)]
Release the GIL when calling Engine::run.

All tests are broken from now on...

4 years agoDefine GilScopedAcquire and GilScopedRelease.
Arnaud Giersch [Wed, 22 Jan 2020 20:40:58 +0000 (21:40 +0100)]
Define GilScopedAcquire and GilScopedRelease.

They have the same purpose as py::gil_scoped_acquire and py::gil_scoped_release.

The main difference is that we avoid to use thread-local storage (TLS).

4 years agoMerge branch 'depencencies' of https://framagit.org/simgrid/simgrid into depencencies
Frederic Suter [Fri, 24 Jan 2020 17:42:07 +0000 (18:42 +0100)]
Merge branch 'depencencies' of https://framagit.org/simgrid/simgrid into depencencies

4 years agoImprove handling of dependencies, debug and example
Frederic Suter [Fri, 24 Jan 2020 16:26:34 +0000 (17:26 +0100)]
Improve handling of dependencies, debug and example

4 years agoAdd tests for FG bug simgrid/simgrid#9.
Arnaud Giersch [Tue, 21 Jan 2020 20:33:06 +0000 (21:33 +0100)]
Add tests for FG bug simgrid/simgrid#9.

4 years agoRe-enable test: python-actor-lifetime.
Arnaud Giersch [Tue, 21 Jan 2020 20:03:24 +0000 (21:03 +0100)]
Re-enable test: python-actor-lifetime.

4 years agoTest python with multiple context factories.
Arnaud Giersch [Tue, 21 Jan 2020 20:11:10 +0000 (21:11 +0100)]
Test python with multiple context factories.

4 years agocleanups
Frederic Suter [Wed, 11 Dec 2019 14:32:45 +0000 (15:32 +0100)]
cleanups

4 years agoworking version
Frederic Suter [Wed, 11 Dec 2019 14:08:11 +0000 (15:08 +0100)]
working version

4 years agostart working on adding dependencies between activities
Frederic Suter [Tue, 10 Dec 2019 18:37:47 +0000 (19:37 +0100)]
start working on adding dependencies between activities

4 years agoattempt to please clang11
Augustin Degomme [Fri, 24 Jan 2020 00:06:18 +0000 (01:06 +0100)]
attempt to please clang11

4 years agoFix on_exit callback for python/actor-lifetime.
Arnaud Giersch [Thu, 23 Jan 2020 10:02:08 +0000 (11:02 +0100)]
Fix on_exit callback for python/actor-lifetime.

The test is still failing.

4 years agoKill unused variable.
Arnaud Giersch [Thu, 23 Jan 2020 09:50:05 +0000 (10:50 +0100)]
Kill unused variable.

4 years agoChain declarations for the 'this_actor' submodule, just like for classes.
Arnaud Giersch [Wed, 22 Jan 2020 20:32:21 +0000 (21:32 +0100)]
Chain declarations for the 'this_actor' submodule, just like for classes.

4 years agoGet rid of superfluous lambdas.
Arnaud Giersch [Wed, 22 Jan 2020 20:24:16 +0000 (21:24 +0100)]
Get rid of superfluous lambdas.

4 years agoRewrite some type casts.
Arnaud Giersch [Wed, 22 Jan 2020 17:22:24 +0000 (18:22 +0100)]
Rewrite some type casts.

4 years agoRemove useless return type for lambdas.
Arnaud Giersch [Wed, 22 Jan 2020 17:13:49 +0000 (18:13 +0100)]
Remove useless return type for lambdas.

4 years agoMinor cosmetic changes.
Arnaud Giersch [Wed, 22 Jan 2020 17:10:32 +0000 (18:10 +0100)]
Minor cosmetic changes.

4 years agoFull reindent for simgrid_python.cpp (no other change).
Arnaud Giersch [Wed, 22 Jan 2020 16:58:15 +0000 (17:58 +0100)]
Full reindent for simgrid_python.cpp (no other change).

4 years agoFix distcheck.
Arnaud Giersch [Tue, 21 Jan 2020 20:41:43 +0000 (21:41 +0100)]
Fix distcheck.

4 years agoCosmetics: make #endif's comment match #ifndef.
Arnaud Giersch [Sun, 19 Jan 2020 20:49:47 +0000 (21:49 +0100)]
Cosmetics: make #endif's comment match #ifndef.

4 years agoAdd fiber annotations for TSan.
Arnaud Giersch [Thu, 9 Jan 2020 21:52:54 +0000 (22:52 +0100)]
Add fiber annotations for TSan.

Close simgrid/simgrid#42.

4 years agoAdd detection for TSan fiber support.
Arnaud Giersch [Thu, 16 Jan 2020 20:35:55 +0000 (21:35 +0100)]
Add detection for TSan fiber support.

4 years agoMove ASan related instructions around context swapping into SwappedContext.
Arnaud Giersch [Thu, 16 Jan 2020 15:31:32 +0000 (16:31 +0100)]
Move ASan related instructions around context swapping into SwappedContext.

* make ASan related fields private
* kill now unused src/kernel/contexts/context_private.h

4 years agoUse smx_ctx_wrapper for boost and raw contexts.
Arnaud Giersch [Thu, 16 Jan 2020 13:22:56 +0000 (14:22 +0100)]
Use smx_ctx_wrapper for boost and raw contexts.

4 years agoMove smx_ctx_wrapper from ContextUnix to ContextSwapped.
Arnaud Giersch [Thu, 16 Jan 2020 13:20:47 +0000 (14:20 +0100)]
Move smx_ctx_wrapper from ContextUnix to ContextSwapped.

The goal is to use it later with the other kinds of SwappedContext (raw and boost).

4 years agoDefine and use SwappedContext::verify_previous_context().
Arnaud Giersch [Thu, 16 Jan 2020 20:07:45 +0000 (21:07 +0100)]
Define and use SwappedContext::verify_previous_context().

It's used by BoostContext to verify that, after a context switch, the
originating context as it is expected.

4 years agoDefine and use ContextSwapped::get_stack_bottom() to get the address for the bottom...
Arnaud Giersch [Thu, 16 Jan 2020 10:25:25 +0000 (11:25 +0100)]
Define and use ContextSwapped::get_stack_bottom() to get the address for the bottom of the stack.

4 years agoIgnore more ASan warnings in mpich3-test/runtests.
Arnaud Giersch [Thu, 16 Jan 2020 15:14:25 +0000 (16:14 +0100)]
Ignore more ASan warnings in mpich3-test/runtests.

4 years agoUpdate list of fixed bugs and merge requests in ChangeLog.
Arnaud Giersch [Thu, 16 Jan 2020 21:30:02 +0000 (22:30 +0100)]
Update list of fixed bugs and merge requests in ChangeLog.

4 years agoExpunge Triva from the documentation too.
Arnaud Giersch [Thu, 16 Jan 2020 14:07:28 +0000 (15:07 +0100)]
Expunge Triva from the documentation too.

4 years agodrop last bits of Viva/Triva (long gone anyway) support
Frederic Suter [Thu, 16 Jan 2020 13:30:38 +0000 (14:30 +0100)]
drop last bits of Viva/Triva (long gone anyway) support

4 years agonamespace cleanups
Frederic Suter [Thu, 16 Jan 2020 13:30:21 +0000 (14:30 +0100)]
namespace cleanups

4 years agoboring meeting commit: cognitive complexity reduction
Frederic Suter [Thu, 16 Jan 2020 09:11:20 +0000 (10:11 +0100)]
boring meeting commit: cognitive complexity reduction

4 years agoMake field 'Context::iwannadie' private.
Arnaud Giersch [Wed, 15 Jan 2020 20:47:05 +0000 (21:47 +0100)]
Make field 'Context::iwannadie' private.

I'm not fond of the names for the new methods, but don't have a better idea.

4 years agoMake field 'SwappedContext::worker_context_' private.
Arnaud Giersch [Wed, 15 Jan 2020 20:23:10 +0000 (21:23 +0100)]
Make field 'SwappedContext::worker_context_' private.

4 years agoField 'SwappedContext::factory_' becomes a reference.
Arnaud Giersch [Wed, 15 Jan 2020 20:22:22 +0000 (21:22 +0100)]
Field 'SwappedContext::factory_' becomes a reference.

4 years agoUsing extern "C" does not prevent name mangling for static functions.
Arnaud Giersch [Thu, 16 Jan 2020 08:35:40 +0000 (09:35 +0100)]
Using extern "C" does not prevent name mangling for static functions.

See
https://en.cppreference.com/w/cpp/language/language_linkage

4 years ago[sonar] Add const qualifier.
Arnaud Giersch [Wed, 15 Jan 2020 10:31:38 +0000 (11:31 +0100)]
[sonar] Add const qualifier.

4 years agoSeems to works now
Frederic Suter [Wed, 15 Jan 2020 12:15:54 +0000 (13:15 +0100)]
Seems to works now

4 years agosimplification commit
Frederic Suter [Wed, 15 Jan 2020 11:40:08 +0000 (12:40 +0100)]
simplification commit
* Class methods do not need tu use accessor to own class field
* Prefer model->is_update_lazy() to
         model->get_update_algorithm == Model::UpdateAlgo::LAZY

4 years agocleanups
Frederic Suter [Wed, 15 Jan 2020 10:01:16 +0000 (11:01 +0100)]
cleanups

4 years agofixedme
Frederic Suter [Wed, 15 Jan 2020 10:00:57 +0000 (11:00 +0100)]
fixedme

4 years agoplug leak
Frederic Suter [Tue, 14 Jan 2020 10:16:34 +0000 (11:16 +0100)]
plug leak
pimpl_->storage was directly accessed before without simcall and
adding one generate copies and leaks. Storage must die anyway ...

4 years agonamespace cosmetics
Frederic Suter [Mon, 13 Jan 2020 13:44:04 +0000 (14:44 +0100)]
namespace cosmetics

4 years ago[sonar] Don't mix public/private data members
Frederic Suter [Mon, 13 Jan 2020 09:49:57 +0000 (10:49 +0100)]
[sonar] Don't mix public/private data members

4 years agooops
Augustin Degomme [Fri, 10 Jan 2020 10:31:52 +0000 (11:31 +0100)]
oops

4 years agodocument a recent change
Martin Quinson [Fri, 10 Jan 2020 10:28:32 +0000 (11:28 +0100)]
document a recent change

4 years agodocument Mailboxes in the new way
Martin Quinson [Fri, 10 Jan 2020 10:26:44 +0000 (11:26 +0100)]
document Mailboxes in the new way

4 years agodocument the this_actor namespace in the new way
Martin Quinson [Thu, 9 Jan 2020 14:36:36 +0000 (15:36 +0100)]
document the this_actor namespace in the new way

4 years agoKill a meaningless function: this_actor::resume()
Martin Quinson [Wed, 8 Jan 2020 23:20:37 +0000 (00:20 +0100)]
Kill a meaningless function: this_actor::resume()

How could the current actor resume itself if it's suspended in the
first place??

4 years agoTeach autodoxy about namespaces
Martin Quinson [Wed, 8 Jan 2020 22:46:54 +0000 (23:46 +0100)]
Teach autodoxy about namespaces

4 years agoImprove docs/find-missing
Martin Quinson [Tue, 7 Jan 2020 21:40:15 +0000 (22:40 +0100)]
Improve docs/find-missing

- automatically extend PYTHONPATH on need. The python lib is searched
  in the ../lib directory. If it's not there, add a symlink
- ignore some autodoxy symbols. Just add them in find-missing.ignore

4 years agobriefly document some more C types
Martin Quinson [Mon, 6 Jan 2020 21:41:17 +0000 (22:41 +0100)]
briefly document some more C types

4 years agoupdate OS detection, fix openindiana, improve wsl detection to cover more than just...
Augustin Degomme [Fri, 10 Jan 2020 10:17:12 +0000 (11:17 +0100)]
update OS detection, fix openindiana, improve wsl detection to cover more than just ubuntu.

4 years agoadd missing links in dragonfly fig gh #335
Augustin Degomme [Fri, 10 Jan 2020 09:35:34 +0000 (10:35 +0100)]
add missing links in dragonfly fig gh #335

4 years agoA simcall on Actor destruction doesn't make much sense.
Arnaud Giersch [Thu, 9 Jan 2020 14:33:21 +0000 (15:33 +0100)]
A simcall on Actor destruction doesn't make much sense.

This fixes Asan errors on s4u-actor-kill.

4 years agoNoreturn annotations in contexts.
Arnaud Giersch [Thu, 9 Jan 2020 10:41:07 +0000 (11:41 +0100)]
Noreturn annotations in contexts.

4 years agoPass large parameter by address.
Arnaud Giersch [Thu, 9 Jan 2020 07:38:13 +0000 (08:38 +0100)]
Pass large parameter by address.

4 years agoOne import less.
Arnaud Giersch [Thu, 9 Jan 2020 07:32:19 +0000 (08:32 +0100)]
One import less.

4 years agoUse implicit string conversion.
Arnaud Giersch [Thu, 9 Jan 2020 07:31:00 +0000 (08:31 +0100)]
Use implicit string conversion.

It's strange to have different type on both sides of :

4 years agoPut the loop right (easier to read and more efficient when building string).
Arnaud Giersch [Wed, 8 Jan 2020 20:21:16 +0000 (21:21 +0100)]
Put the loop right (easier to read and more efficient when building string).

4 years ago[sonar] Don't mix public and private data members for ptasks
Frederic Suter [Wed, 8 Jan 2020 12:17:26 +0000 (13:17 +0100)]
[sonar] Don't mix public and private data members for ptasks

4 years ago[sonar] Don't mix public and private data members (easy ones)
Frederic Suter [Wed, 8 Jan 2020 10:32:09 +0000 (11:32 +0100)]
[sonar] Don't mix public and private data members (easy ones)

4 years agoUse initialization list.
Arnaud Giersch [Wed, 8 Jan 2020 17:29:28 +0000 (18:29 +0100)]
Use initialization list.

4 years ago[sonar] asks for std::forward.
Arnaud Giersch [Wed, 8 Jan 2020 16:32:37 +0000 (17:32 +0100)]
[sonar] asks for std::forward.

4 years ago[sonar] Use std::move with rvalue references.
Arnaud Giersch [Wed, 8 Jan 2020 16:13:40 +0000 (17:13 +0100)]
[sonar] Use std::move with rvalue references.

4 years agoMerge branch 'doc' into 'master'
Martin Quinson [Wed, 8 Jan 2020 16:39:46 +0000 (17:39 +0100)]
Merge branch 'doc' into 'master'

Fix links in SMPI interface doc

See merge request simgrid/simgrid!26

4 years agoFix broken links in SMPI interface doc
Julien EMMANUEL [Wed, 8 Jan 2020 15:46:33 +0000 (16:46 +0100)]
Fix broken links in SMPI interface doc

Change HTML-style links to RST-style ones

4 years ago[sonar] Prefer lambda over anonymous class.
Arnaud Giersch [Wed, 8 Jan 2020 13:35:30 +0000 (14:35 +0100)]
[sonar] Prefer lambda over anonymous class.

4 years agoUseless "import".
Arnaud Giersch [Wed, 8 Jan 2020 13:27:31 +0000 (14:27 +0100)]
Useless "import".

4 years agoRemove "--" from XML comments.
Arnaud Giersch [Wed, 8 Jan 2020 13:27:07 +0000 (14:27 +0100)]
Remove "--" from XML comments.

4 years agoAnother superfluous 'throws'.
Arnaud Giersch [Wed, 8 Jan 2020 12:30:00 +0000 (13:30 +0100)]
Another superfluous 'throws'.