Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
simgrid.git
8 months agopython: add exec-dvfs example
Martin Quinson [Mon, 18 Mar 2019 00:38:41 +0000 (01:38 +0100)]
python: add exec-dvfs example

Plus cosmetics on my way, including in the CPP example.

8 months agoUse a reference as parameter for signal callbacks.
Arnaud Giersch [Mon, 18 Mar 2019 13:16:12 +0000 (14:16 +0100)]
Use a reference as parameter for signal callbacks.

Two benefits:
* no more overhead for maintaining reference counting;
* assurance that the given parameter is not null.

Also use a const reference whenever possible.

8 months agoAdd some const qualifier, needed for later changes.
Arnaud Giersch [Mon, 18 Mar 2019 13:13:07 +0000 (14:13 +0100)]
Add some const qualifier, needed for later changes.

8 months agoUnhide non-deprecated declaration.
Arnaud Giersch [Mon, 18 Mar 2019 12:58:54 +0000 (13:58 +0100)]
Unhide non-deprecated declaration.

8 months agoAvoid deprecated type alias.
Arnaud Giersch [Mon, 18 Mar 2019 12:57:23 +0000 (13:57 +0100)]
Avoid deprecated type alias.

8 months agoMake create_context return the real type.
Arnaud Giersch [Mon, 18 Mar 2019 12:53:00 +0000 (13:53 +0100)]
Make create_context return the real type.

8 months agochangelog update
degomme [Mon, 18 Mar 2019 09:09:43 +0000 (10:09 +0100)]
changelog update

8 months agopython doc: add Comm and Exec to the refguide
Martin Quinson [Sun, 17 Mar 2019 20:16:26 +0000 (21:16 +0100)]
python doc: add Comm and Exec to the refguide

8 months agosonar: don't catch exception that we don't handle
Martin Quinson [Sun, 17 Mar 2019 20:09:41 +0000 (21:09 +0100)]
sonar: don't catch exception that we don't handle

8 months agotry to fix windows builds
Martin Quinson [Sun, 17 Mar 2019 19:31:33 +0000 (20:31 +0100)]
try to fix windows builds

8 months agofix make distcheck + reindent
Martin Quinson [Sun, 17 Mar 2019 18:36:41 +0000 (19:36 +0100)]
fix make distcheck + reindent

8 months agopython: exec-async and exec-remote examples
Martin Quinson [Sun, 17 Mar 2019 18:34:36 +0000 (19:34 +0100)]
python: exec-async and exec-remote examples

8 months agoSimplify the exec-ptask example
Martin Quinson [Sun, 17 Mar 2019 16:49:58 +0000 (17:49 +0100)]
Simplify the exec-ptask example

- Remove the energy thing out of the picture
- Don't use the trick of using ptask to do remote exec now that we
  have a much cleaner way of doing remote exec
- Don't test the homogeneous compute-only case.
  The heterogeneous compute-only is sufficient.

Everybody wants the examples to be short and instructive.

8 months agomerge exec-async and exec-monitor examples
Martin Quinson [Sun, 17 Mar 2019 16:30:55 +0000 (17:30 +0100)]
merge exec-async and exec-monitor examples

Everybody wants the doc to be short and instructive, including the
authors.

8 months agoautopep8 --max-line-length 120 -i --aggressive `find -name '*.py'`
Martin Quinson [Sun, 17 Mar 2019 15:48:18 +0000 (16:48 +0100)]
autopep8 --max-line-length 120 -i --aggressive `find -name '*.py'`

8 months agodocument the recent python examples
Martin Quinson [Sun, 17 Mar 2019 15:33:05 +0000 (16:33 +0100)]
document the recent python examples

8 months agoPython: Add Comm.wait_any
Martin Quinson [Sun, 17 Mar 2019 15:14:10 +0000 (16:14 +0100)]
Python: Add Comm.wait_any

+ the example of same name
+ cosmetics in the related examples, in C++ comments

8 months agopython: add Comm.waitall
Martin Quinson [Sun, 17 Mar 2019 10:03:43 +0000 (11:03 +0100)]
python: add Comm.waitall

8 months agoRemove declarations for never used signal slots.
Arnaud Giersch [Fri, 15 Mar 2019 19:58:53 +0000 (20:58 +0100)]
Remove declarations for never used signal slots.

Either not defined, or simply not used.

8 months agoCosmetics.
Arnaud Giersch [Fri, 15 Mar 2019 22:59:58 +0000 (23:59 +0100)]
Cosmetics.

8 months agoSpurious ;
Arnaud Giersch [Thu, 14 Mar 2019 15:42:45 +0000 (16:42 +0100)]
Spurious ;

8 months agoParanoid builds fail with unused variable.
Arnaud Giersch [Sat, 16 Mar 2019 14:58:42 +0000 (15:58 +0100)]
Paranoid builds fail with unused variable.

8 months agoMerge remote-tracking branch 'github/master'
Arnaud Giersch [Sat, 16 Mar 2019 14:18:57 +0000 (15:18 +0100)]
Merge remote-tracking branch 'github/master'

8 months agoAdded a test for Issue #325 (call to test is commented out for now)
henricasanova [Sat, 16 Mar 2019 10:06:00 +0000 (00:06 -1000)]
Added a test for Issue #325 (call to test is commented out for now)

8 months agoFix clang+MC+python builds
Martin Quinson [Sat, 16 Mar 2019 07:38:45 +0000 (08:38 +0100)]
Fix clang+MC+python builds

8 months agodoc: typo
Martin Quinson [Fri, 15 Mar 2019 23:39:12 +0000 (00:39 +0100)]
doc: typo

8 months agoImprove the ChangeLog & NEWS in preparation for the release
Martin Quinson [Fri, 15 Mar 2019 23:27:51 +0000 (00:27 +0100)]
Improve the ChangeLog & NEWS in preparation for the release

Please people, document your changes.

The item of NEWS about XBT could be replaced by something more
interesting and visible to the users, if any.

8 months agopython: Add Comm.wait() and Comm.test()
Martin Quinson [Fri, 15 Mar 2019 23:07:57 +0000 (00:07 +0100)]
python: Add Comm.wait() and Comm.test()

also add an example

8 months agotiny doc improvement
Martin Quinson [Fri, 15 Mar 2019 21:03:01 +0000 (22:03 +0100)]
tiny doc improvement

8 months agoactors on failing hosts should die silently and with no delay
Martin Quinson [Fri, 15 Mar 2019 10:48:11 +0000 (11:48 +0100)]
actors on failing hosts should die silently and with no delay

8 months agoRestarting or killing maestro does not seem to be a cleaver idea
Martin Quinson [Thu, 14 Mar 2019 22:33:39 +0000 (23:33 +0100)]
Restarting or killing maestro does not seem to be a cleaver idea

8 months agofurther let the actor clean for itself
Martin Quinson [Thu, 14 Mar 2019 22:16:56 +0000 (23:16 +0100)]
further let the actor clean for itself

8 months agocleaning the actor twice seems somewhat overplayed
Martin Quinson [Thu, 14 Mar 2019 21:59:10 +0000 (22:59 +0100)]
cleaning the actor twice seems somewhat overplayed

8 months agolet the actor clean for itself
Martin Quinson [Thu, 14 Mar 2019 21:03:15 +0000 (22:03 +0100)]
let the actor clean for itself

8 months agokill parts of the old doc that were converted
Martin Quinson [Thu, 14 Mar 2019 21:02:47 +0000 (22:02 +0100)]
kill parts of the old doc that were converted

+ cosmetics

8 months agoMerge branch 'master' of https://framagit.org/simgrid/simgrid
Frederic Suter [Thu, 14 Mar 2019 15:57:45 +0000 (16:57 +0100)]
Merge branch 'master' of https://framagit.org/simgrid/simgrid

8 months agorework SleepImpl (and save a cast)
Frederic Suter [Thu, 14 Mar 2019 15:29:28 +0000 (16:29 +0100)]
rework SleepImpl (and save a cast)

8 months agoInline methods of simgrid::kernel::Resource.
Arnaud Giersch [Thu, 14 Mar 2019 14:35:47 +0000 (15:35 +0100)]
Inline methods of simgrid::kernel::Resource.

8 months agoRemove useless function pointer.
Arnaud Giersch [Thu, 14 Mar 2019 13:53:33 +0000 (14:53 +0100)]
Remove useless function pointer.

8 months agoTidying simix::Timer.
Arnaud Giersch [Thu, 14 Mar 2019 13:10:58 +0000 (14:10 +0100)]
Tidying simix::Timer.

8 months agoDefine move-assignment and delete copy-assignment operators for xbt::Task.
Arnaud Giersch [Thu, 14 Mar 2019 12:54:27 +0000 (13:54 +0100)]
Define move-assignment and delete copy-assignment operators for xbt::Task.

8 months ago[sonar] Name parameters differently than request_depend_asymmetric.
Arnaud Giersch [Thu, 14 Mar 2019 10:24:50 +0000 (11:24 +0100)]
[sonar] Name parameters differently than request_depend_asymmetric.

8 months agoTry to make tests succeed with coverage on Jenkins.
Arnaud Giersch [Thu, 14 Mar 2019 09:27:51 +0000 (10:27 +0100)]
Try to make tests succeed with coverage on Jenkins.

Increase timeout, and disallow parallel run.

8 months agoMove test declaration in proper CMakeLists.txt.
Arnaud Giersch [Thu, 14 Mar 2019 09:06:49 +0000 (10:06 +0100)]
Move test declaration in proper CMakeLists.txt.

8 months agolet base class dtor deal with surf action
Frederic Suter [Thu, 14 Mar 2019 13:07:37 +0000 (14:07 +0100)]
let base class dtor deal with surf action

For CommImpl, it seems that unref() is called too late so keep the
current dtor

8 months agoWhat ActivityImpl child should look like IMHO
Frederic Suter [Thu, 14 Mar 2019 11:49:02 +0000 (12:49 +0100)]
What ActivityImpl child should look like IMHO
* ctor does nothing more than create a class instance
* all fields can be set by chainable setters
* start() has no parameter

On the S4U side, we should have the same (with CRTP soon)
* ctor calls the Impl ctor and sets thing at user level
* start() does a simcall in which we call all the Impl setters to
  transfer all field values to the kernel and then call Impl::start()

Maybe we should also replace "new *Impl()" in S4U by a call to a
Impl::create() static method to be written.

8 months agocosmetic cleanups in S4U
Frederic Suter [Thu, 14 Mar 2019 09:57:51 +0000 (10:57 +0100)]
cosmetic cleanups in S4U

8 months agoActivate assert when debug log is active.
Arnaud Giersch [Wed, 13 Mar 2019 14:16:00 +0000 (15:16 +0100)]
Activate assert when debug log is active.

8 months agoUse std::unordered_map + save an indirection.
Arnaud Giersch [Wed, 13 Mar 2019 13:12:10 +0000 (14:12 +0100)]
Use std::unordered_map + save an indirection.

8 months agoDirectly fill vectors at construction.
Arnaud Giersch [Wed, 13 Mar 2019 10:22:29 +0000 (11:22 +0100)]
Directly fill vectors at construction.

8 months agoSimplification.
Arnaud Giersch [Wed, 13 Mar 2019 08:54:18 +0000 (09:54 +0100)]
Simplification.

8 months agoRemove unused type definitions.
Arnaud Giersch [Tue, 12 Mar 2019 21:49:31 +0000 (22:49 +0100)]
Remove unused type definitions.

8 months agodon't kill the fools sourcing this script
Martin Quinson [Wed, 13 Mar 2019 14:28:23 +0000 (15:28 +0100)]
don't kill the fools sourcing this script

8 months agocomestics in src/kernel
Frederic Suter [Wed, 13 Mar 2019 12:15:12 +0000 (13:15 +0100)]
comestics in src/kernel

8 months agocleanups in smpi, mostly cosmetic stuff and indent
Frederic Suter [Wed, 13 Mar 2019 10:56:01 +0000 (11:56 +0100)]
cleanups in smpi, mostly cosmetic stuff and indent

8 months agoComplete Asan suppressions.
Arnaud Giersch [Tue, 12 Mar 2019 21:22:37 +0000 (22:22 +0100)]
Complete Asan suppressions.

8 months agoEnsure field is initialized.
Arnaud Giersch [Tue, 12 Mar 2019 17:39:10 +0000 (18:39 +0100)]
Ensure field is initialized.

8 months agoClang is picky.
Arnaud Giersch [Tue, 12 Mar 2019 16:43:38 +0000 (17:43 +0100)]
Clang is picky.

error: local variable value will be copied despite being returned by name [-Werror,-Wreturn-std-move]

8 months agoSave valgrind_stack_id in a private field.
Arnaud Giersch [Tue, 12 Mar 2019 13:31:16 +0000 (14:31 +0100)]
Save valgrind_stack_id in a private field.

Only register stacks when running on Valgrind to avoid false alarms from Asan.

8 months agoMailboxPtr looks like a smart pointer, but it's not. Kill it.
Arnaud Giersch [Tue, 12 Mar 2019 09:53:17 +0000 (10:53 +0100)]
MailboxPtr looks like a smart pointer, but it's not. Kill it.

8 months agoRemove unnecessary calls to c_str().
Arnaud Giersch [Tue, 12 Mar 2019 09:42:03 +0000 (10:42 +0100)]
Remove unnecessary calls to c_str().

8 months agoIIUC return std::move(...) is discouraged.
Arnaud Giersch [Tue, 12 Mar 2019 15:01:39 +0000 (16:01 +0100)]
IIUC return std::move(...) is discouraged.

8 months agoReferences++.
Arnaud Giersch [Tue, 12 Mar 2019 09:20:14 +0000 (10:20 +0100)]
References++.

8 months agomv ActorImpl where it belongs
Frederic Suter [Tue, 12 Mar 2019 13:53:57 +0000 (14:53 +0100)]
mv ActorImpl where it belongs

8 months agouse consistent namespaces
Frederic Suter [Tue, 12 Mar 2019 13:12:52 +0000 (14:12 +0100)]
use consistent namespaces
Storage is a resource, it goes in simgrid::kernel::resource

8 months agodon't use old fashioned simcall when you don't have to
Frederic Suter [Tue, 12 Mar 2019 12:12:10 +0000 (13:12 +0100)]
don't use old fashioned simcall when you don't have to

8 months agoproperly split task/comm in msg files
Frederic Suter [Tue, 12 Mar 2019 10:43:05 +0000 (11:43 +0100)]
properly split task/comm in msg files

8 months agoobjectify a few msg::Comm functions
Frederic Suter [Tue, 12 Mar 2019 10:36:23 +0000 (11:36 +0100)]
objectify a few msg::Comm functions

8 months agomark old MSG functions as deprecated
Frederic Suter [Tue, 12 Mar 2019 08:19:49 +0000 (09:19 +0100)]
mark old MSG functions as deprecated

8 months agoMerge branch 'master' of https://framagit.org/simgrid/simgrid
Frederic Suter [Mon, 11 Mar 2019 16:22:45 +0000 (17:22 +0100)]
Merge branch 'master' of https://framagit.org/simgrid/simgrid

8 months agoSimplifications
Frederic Suter [Mon, 11 Mar 2019 15:31:17 +0000 (16:31 +0100)]
Simplifications

Do not use an ugly global map when each smpi process can store its own
tracing category.

8 months agoReplace void* when using std::thread.
Arnaud Giersch [Mon, 11 Mar 2019 13:53:11 +0000 (14:53 +0100)]
Replace void* when using std::thread.

8 months agoDeprecated functions are still used by StarPU. Postpone their removal.
Arnaud Giersch [Mon, 11 Mar 2019 12:26:40 +0000 (13:26 +0100)]
Deprecated functions are still used by StarPU. Postpone their removal.

8 months agoPass std::string parameters by reference too.
Arnaud Giersch [Sun, 10 Mar 2019 22:20:43 +0000 (23:20 +0100)]
Pass std::string parameters by reference too.

8 months agoDon't use pass-by-value for large parameters.
Arnaud Giersch [Sun, 10 Mar 2019 17:50:42 +0000 (18:50 +0100)]
Don't use pass-by-value for large parameters.

8 months agoMore references for parameters of type std::function.
Arnaud Giersch [Sun, 10 Mar 2019 17:37:13 +0000 (18:37 +0100)]
More references for parameters of type std::function.

8 months agoConstify.
Arnaud Giersch [Sun, 10 Mar 2019 14:46:37 +0000 (15:46 +0100)]
Constify.

8 months agoBad cast.
Arnaud Giersch [Sun, 10 Mar 2019 14:34:36 +0000 (15:34 +0100)]
Bad cast.

8 months agoMake ActorImpl::context_ a std::unique_ptr.
Arnaud Giersch [Fri, 8 Mar 2019 22:06:26 +0000 (23:06 +0100)]
Make ActorImpl::context_ a std::unique_ptr.

8 months agoMake SwappedContext::parmap_ a std::unique_ptr.
Arnaud Giersch [Fri, 8 Mar 2019 14:47:58 +0000 (15:47 +0100)]
Make SwappedContext::parmap_ a std::unique_ptr.

8 months agoCosmetics around std::unique_ptr.
Arnaud Giersch [Fri, 8 Mar 2019 14:34:00 +0000 (15:34 +0100)]
Cosmetics around std::unique_ptr.

8 months agoFix xbt_assert with side effects.
Arnaud Giersch [Sat, 9 Mar 2019 15:04:32 +0000 (16:04 +0100)]
Fix xbt_assert with side effects.

8 months agoEquality/assignment mismatch.
Arnaud Giersch [Sat, 9 Mar 2019 14:59:11 +0000 (15:59 +0100)]
Equality/assignment mismatch.

8 months agoRelease memory after last use only.
Arnaud Giersch [Fri, 8 Mar 2019 13:19:50 +0000 (14:19 +0100)]
Release memory after last use only.

8 months agoPut XBT_ATTRIB_DEPRECATED at proper place.
Arnaud Giersch [Fri, 8 Mar 2019 13:09:34 +0000 (14:09 +0100)]
Put XBT_ATTRIB_DEPRECATED at proper place.

8 months ago2 fixes in host-energy plugin
Martin Quinson [Fri, 8 Mar 2019 16:52:01 +0000 (17:52 +0100)]
2 fixes in host-energy plugin

- When computing the current watts, consistently use the pstate that
  was set at the beginning of the previous period.
  (the pstate at the end of the period was used to determinate whether
  or not we are in boot/shutdown state, ie, whether speed==0)
- Do not mark as used hosts that are just turned on and off. This is
  to be consistent with the tesh files while fixing the other bug.

8 months agoSpecify bindir while launching tesh
Martin Quinson [Wed, 6 Mar 2019 23:56:19 +0000 (00:56 +0100)]
Specify bindir while launching tesh

8 months agoUse references for callback parameters of on_exit().
Arnaud Giersch [Thu, 7 Mar 2019 16:32:41 +0000 (17:32 +0100)]
Use references for callback parameters of on_exit().

8 months agoUse references for parameters of type std::function.
Arnaud Giersch [Thu, 7 Mar 2019 15:50:38 +0000 (16:50 +0100)]
Use references for parameters of type std::function.

8 months agoUse references for parameters of type std::vector.
Arnaud Giersch [Thu, 7 Mar 2019 15:00:57 +0000 (16:00 +0100)]
Use references for parameters of type std::vector.

8 months agoFix mismatched alloc/free.
Arnaud Giersch [Wed, 6 Mar 2019 22:18:11 +0000 (23:18 +0100)]
Fix mismatched alloc/free.

8 months agoRemove duplicated but unused forward declarations.
Arnaud Giersch [Wed, 6 Mar 2019 22:10:10 +0000 (23:10 +0100)]
Remove duplicated but unused forward declarations.

8 months agoDon't hide class member.
Arnaud Giersch [Fri, 8 Mar 2019 09:12:57 +0000 (10:12 +0100)]
Don't hide class member.

8 months agoFix null pointer dereference.
Arnaud Giersch [Thu, 7 Mar 2019 17:21:39 +0000 (18:21 +0100)]
Fix null pointer dereference.

8 months agoSwitch s4u tuto to pajengr as well.
degomme [Fri, 8 Mar 2019 11:05:11 +0000 (12:05 +0100)]
Switch s4u tuto to pajengr as well.

8 months agohopefully fix most issues. thx agier for spotting the main one
Frederic Suter [Fri, 8 Mar 2019 10:11:13 +0000 (11:11 +0100)]
hopefully fix most issues. thx agier for spotting the main one

8 months agopoor damage control for tonight only
Frederic Suter [Thu, 7 Mar 2019 23:13:08 +0000 (00:13 +0100)]
poor damage control for tonight only

8 months agorevalidate another tesh
Frederic Suter [Thu, 7 Mar 2019 16:46:37 +0000 (17:46 +0100)]
revalidate another tesh

8 months agoMerge branch 'master' of https://framagit.org/simgrid/simgrid
Frederic Suter [Thu, 7 Mar 2019 16:40:12 +0000 (17:40 +0100)]
Merge branch 'master' of https://framagit.org/simgrid/simgrid

8 months agorevalidate tesh
Frederic Suter [Thu, 7 Mar 2019 16:38:51 +0000 (17:38 +0100)]
revalidate tesh