Frederic Suter [Thu, 28 Mar 2019 23:57:07 +0000 (00:57 +0100)]
rework ExecImpl to have a single start() method
Frederic Suter [Thu, 28 Mar 2019 18:59:20 +0000 (19:59 +0100)]
Merge branch 'master' of https://framagit.org/simgrid/simgrid
Frederic Suter [Thu, 28 Mar 2019 18:58:11 +0000 (19:58 +0100)]
try to clean and uniformize Activity Impls
degomme [Thu, 28 Mar 2019 17:35:42 +0000 (18:35 +0100)]
As collectives are now implemented in the PMPI_I* functions, tracing has to be tricked a bit. Stop using __func__.
degomme [Thu, 28 Mar 2019 17:13:35 +0000 (18:13 +0100)]
Add "some" other nonblocking collectives
degomme [Thu, 28 Mar 2019 13:11:30 +0000 (14:11 +0100)]
Add -gdb and -lldb shortcuts to smpirun
degomme [Thu, 28 Mar 2019 11:12:01 +0000 (12:12 +0100)]
Test of an MPI_Ibarrier implementation.
Instead of a helper process, or of a scheduler as used by MPI implementations, let's play dumb for now and just use a bunch of Isend/Irecv, and just test them all when needed.
pros:
- just .. works ?
- we have the default naive algorithms already implemented for most of the collectives, so in the end we just have to spilt the startall and waitall parts.
cons:
- simple basic algos only.
More advanced ones would need a scheduler with progress management, let's do this later if needed (and MPI implementations have the odd idea that it's fine to advance the scheduler's round only when MPI_Test is called, so we might actually be faster in the end).
degomme [Thu, 28 Mar 2019 11:04:52 +0000 (12:04 +0100)]
Fix debug + trace
- print might be called several times when debug is on, leading to double frees.
- actually emove the calls to buffer_debug, printing the whole buffer twice at each tracing event is a tiny bit too much (and it ruins the output trace).
The helper function is still there, I don't know whether to remove it or not.
degomme [Wed, 27 Mar 2019 15:04:31 +0000 (16:04 +0100)]
Add MPI_Request_get_status, MPI_Status_set_cancelled, MPI_Status_set_elements
degomme [Tue, 26 Mar 2019 17:20:53 +0000 (18:20 +0100)]
Simple implementation of generalized requests in MPI.
Also fix testsome behavior.
Martin Quinson [Thu, 28 Mar 2019 14:53:26 +0000 (15:53 +0100)]
fix broken link
Frederic Suter [Wed, 27 Mar 2019 19:12:29 +0000 (20:12 +0100)]
cosmetics
Frederic Suter [Wed, 27 Mar 2019 19:11:52 +0000 (20:11 +0100)]
use setters
Arnaud Giersch [Wed, 27 Mar 2019 08:10:54 +0000 (09:10 +0100)]
[sonar] Use :: to access static member.
Frederic Suter [Wed, 27 Mar 2019 00:06:48 +0000 (01:06 +0100)]
pass on howtos
Frederic Suter [Tue, 26 Mar 2019 23:47:55 +0000 (00:47 +0100)]
pass on examples
Frederic Suter [Tue, 26 Mar 2019 23:35:57 +0000 (00:35 +0100)]
end of revision for this file
Frederic Suter [Tue, 26 Mar 2019 16:13:21 +0000 (17:13 +0100)]
Merge branch 'master' of https://framagit.org/simgrid/simgrid
Frederic Suter [Tue, 26 Mar 2019 14:54:07 +0000 (15:54 +0100)]
Merge branch 'master' of https://framagit.org/simgrid/simgrid
Arnaud Giersch [Tue, 26 Mar 2019 14:06:34 +0000 (15:06 +0100)]
Tidy SIMIX_process on_exit callbacks.
This is a follow-up to commit
08e94eb0482589e4b287cbea301b84daf52635bd
"Sanitize the prototype of Actor::on_exit() callbacks".
Arnaud Giersch [Mon, 25 Mar 2019 14:31:14 +0000 (15:31 +0100)]
Make config flag static (global), and rename s_MSG_Global_t.
Frederic Suter [Tue, 26 Mar 2019 00:27:55 +0000 (01:27 +0100)]
start to revise doc on platforms
Arnaud Giersch [Mon, 25 Mar 2019 21:21:56 +0000 (22:21 +0100)]
A bit more coverage.
Arnaud Giersch [Mon, 25 Mar 2019 14:26:02 +0000 (15:26 +0100)]
There's a nice sg_version(), use it.
Arnaud Giersch [Mon, 25 Mar 2019 10:13:25 +0000 (11:13 +0100)]
Use string::compare with C++ strings.
Arnaud Giersch [Mon, 25 Mar 2019 10:00:56 +0000 (11:00 +0100)]
Simplifications.
Arnaud Giersch [Mon, 25 Mar 2019 09:56:13 +0000 (10:56 +0100)]
Cosmetics.
"!strcmp" is hard to read, and "not strcmp" is misleading.
Arnaud Giersch [Mon, 25 Mar 2019 09:44:25 +0000 (10:44 +0100)]
Fix condition.
Arnaud Giersch [Fri, 22 Mar 2019 08:55:50 +0000 (09:55 +0100)]
Compute GIT_VERSION in a simpler way.
Arnaud Giersch [Fri, 22 Mar 2019 08:35:58 +0000 (09:35 +0100)]
Remove now unused xbt_str_join_array().
Arnaud Giersch [Fri, 22 Mar 2019 08:30:25 +0000 (09:30 +0100)]
Replace macros with real functions.
Arnaud Giersch [Thu, 21 Mar 2019 21:03:53 +0000 (22:03 +0100)]
Use C++ algorithms.
Arnaud Giersch [Thu, 21 Mar 2019 20:58:38 +0000 (21:58 +0100)]
Use xbt_malloc() and friends.
Arnaud Giersch [Thu, 21 Mar 2019 15:56:47 +0000 (16:56 +0100)]
Use more vector and strings for xbt_log.
Arnaud Giersch [Thu, 21 Mar 2019 15:20:20 +0000 (16:20 +0100)]
One more dynar less.
Arnaud Giersch [Thu, 21 Mar 2019 14:53:38 +0000 (15:53 +0100)]
Kill dead code.
Arnaud Giersch [Thu, 21 Mar 2019 08:29:14 +0000 (09:29 +0100)]
Uncomment constant definition, even though currently unused.
Arnaud Giersch [Thu, 21 Mar 2019 08:23:06 +0000 (09:23 +0100)]
Lame attempt to hide problems on Jenkins.
Arnaud Giersch [Thu, 21 Mar 2019 08:18:39 +0000 (09:18 +0100)]
Capitalize class name.
Arnaud Giersch [Wed, 20 Mar 2019 11:27:04 +0000 (12:27 +0100)]
Update list of fixed bugs.
Arnaud Giersch [Wed, 20 Mar 2019 08:49:15 +0000 (09:49 +0100)]
Reduce nesting depth of lambdas.
Arnaud Giersch [Wed, 20 Mar 2019 11:13:42 +0000 (12:13 +0100)]
Make pyForcefulKillEx static.
Arnaud Giersch [Wed, 20 Mar 2019 11:13:14 +0000 (12:13 +0100)]
Useless intermediate cast.
Arnaud Giersch [Wed, 20 Mar 2019 11:12:42 +0000 (12:12 +0100)]
Trailing whitespaces.
Arnaud Giersch [Tue, 19 Mar 2019 09:27:36 +0000 (10:27 +0100)]
Unused parameter.
Arnaud Giersch [Tue, 19 Mar 2019 07:46:40 +0000 (08:46 +0100)]
Disallow direct destruction of Mailbox (make dtor private).
Arnaud Giersch [Tue, 19 Mar 2019 07:45:38 +0000 (08:45 +0100)]
Use a Mailbox* with Python bindings.
Arnaud Giersch [Mon, 18 Mar 2019 14:39:40 +0000 (15:39 +0100)]
Cosmetic rename.
Martin Quinson [Tue, 19 Mar 2019 08:36:19 +0000 (09:36 +0100)]
improve release documentation
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.
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.
Arnaud Giersch [Mon, 18 Mar 2019 13:13:07 +0000 (14:13 +0100)]
Add some const qualifier, needed for later changes.
Arnaud Giersch [Mon, 18 Mar 2019 12:58:54 +0000 (13:58 +0100)]
Unhide non-deprecated declaration.
Arnaud Giersch [Mon, 18 Mar 2019 12:57:23 +0000 (13:57 +0100)]
Avoid deprecated type alias.
Arnaud Giersch [Mon, 18 Mar 2019 12:53:00 +0000 (13:53 +0100)]
Make create_context return the real type.
degomme [Mon, 18 Mar 2019 09:09:43 +0000 (10:09 +0100)]
changelog update
Martin Quinson [Sun, 17 Mar 2019 20:16:26 +0000 (21:16 +0100)]
python doc: add Comm and Exec to the refguide
Martin Quinson [Sun, 17 Mar 2019 20:09:41 +0000 (21:09 +0100)]
sonar: don't catch exception that we don't handle
Martin Quinson [Sun, 17 Mar 2019 19:31:33 +0000 (20:31 +0100)]
try to fix windows builds
Martin Quinson [Sun, 17 Mar 2019 18:36:41 +0000 (19:36 +0100)]
fix make distcheck + reindent
Martin Quinson [Sun, 17 Mar 2019 18:34:36 +0000 (19:34 +0100)]
python: exec-async and exec-remote examples
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.
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.
Martin Quinson [Sun, 17 Mar 2019 15:48:18 +0000 (16:48 +0100)]
autopep8 --max-line-length 120 -i --aggressive `find -name '*.py'`
Martin Quinson [Sun, 17 Mar 2019 15:33:05 +0000 (16:33 +0100)]
document the recent python examples
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
Martin Quinson [Sun, 17 Mar 2019 10:03:43 +0000 (11:03 +0100)]
python: add Comm.waitall
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.
Arnaud Giersch [Fri, 15 Mar 2019 22:59:58 +0000 (23:59 +0100)]
Cosmetics.
Arnaud Giersch [Thu, 14 Mar 2019 15:42:45 +0000 (16:42 +0100)]
Spurious ;
Arnaud Giersch [Sat, 16 Mar 2019 14:58:42 +0000 (15:58 +0100)]
Paranoid builds fail with unused variable.
Arnaud Giersch [Sat, 16 Mar 2019 14:18:57 +0000 (15:18 +0100)]
Merge remote-tracking branch 'github/master'
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)
Martin Quinson [Sat, 16 Mar 2019 07:38:45 +0000 (08:38 +0100)]
Fix clang+MC+python builds
Martin Quinson [Fri, 15 Mar 2019 23:39:12 +0000 (00:39 +0100)]
doc: typo
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.
Martin Quinson [Fri, 15 Mar 2019 23:07:57 +0000 (00:07 +0100)]
python: Add Comm.wait() and Comm.test()
also add an example
Martin Quinson [Fri, 15 Mar 2019 21:03:01 +0000 (22:03 +0100)]
tiny doc improvement
Martin Quinson [Fri, 15 Mar 2019 10:48:11 +0000 (11:48 +0100)]
actors on failing hosts should die silently and with no delay
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
Martin Quinson [Thu, 14 Mar 2019 22:16:56 +0000 (23:16 +0100)]
further let the actor clean for itself
Martin Quinson [Thu, 14 Mar 2019 21:59:10 +0000 (22:59 +0100)]
cleaning the actor twice seems somewhat overplayed
Martin Quinson [Thu, 14 Mar 2019 21:03:15 +0000 (22:03 +0100)]
let the actor clean for itself
Martin Quinson [Thu, 14 Mar 2019 21:02:47 +0000 (22:02 +0100)]
kill parts of the old doc that were converted
+ cosmetics
Frederic Suter [Thu, 14 Mar 2019 15:57:45 +0000 (16:57 +0100)]
Merge branch 'master' of https://framagit.org/simgrid/simgrid
Frederic Suter [Thu, 14 Mar 2019 15:29:28 +0000 (16:29 +0100)]
rework SleepImpl (and save a cast)
Arnaud Giersch [Thu, 14 Mar 2019 14:35:47 +0000 (15:35 +0100)]
Inline methods of simgrid::kernel::Resource.
Arnaud Giersch [Thu, 14 Mar 2019 13:53:33 +0000 (14:53 +0100)]
Remove useless function pointer.
Arnaud Giersch [Thu, 14 Mar 2019 13:10:58 +0000 (14:10 +0100)]
Tidying simix::Timer.
Arnaud Giersch [Thu, 14 Mar 2019 12:54:27 +0000 (13:54 +0100)]
Define move-assignment and delete copy-assignment operators for xbt::Task.
Arnaud Giersch [Thu, 14 Mar 2019 10:24:50 +0000 (11:24 +0100)]
[sonar] Name parameters differently than request_depend_asymmetric.
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.
Arnaud Giersch [Thu, 14 Mar 2019 09:06:49 +0000 (10:06 +0100)]
Move test declaration in proper CMakeLists.txt.
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
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.
Frederic Suter [Thu, 14 Mar 2019 09:57:51 +0000 (10:57 +0100)]
cosmetic cleanups in S4U
Arnaud Giersch [Wed, 13 Mar 2019 14:16:00 +0000 (15:16 +0100)]
Activate assert when debug log is active.
Arnaud Giersch [Wed, 13 Mar 2019 13:12:10 +0000 (14:12 +0100)]
Use std::unordered_map + save an indirection.
Arnaud Giersch [Wed, 13 Mar 2019 10:22:29 +0000 (11:22 +0100)]
Directly fill vectors at construction.
Arnaud Giersch [Wed, 13 Mar 2019 08:54:18 +0000 (09:54 +0100)]
Simplification.