Augustin Degomme [Mon, 24 Feb 2020 14:05:18 +0000 (15:05 +0100)]
Use more cmakey way to detect and use lto (should work on clang and others)
This was introduced in cmake 3.9, but we still support 3.5, so some bits will be removed later
Frederic Suter [Mon, 24 Feb 2020 11:57:16 +0000 (12:57 +0100)]
convert and simplify async-wait
Frederic Suter [Mon, 24 Feb 2020 11:35:25 +0000 (12:35 +0100)]
add sg_comm_wait()
+ unref comm is test return true
Frederic Suter [Sun, 23 Feb 2020 19:29:18 +0000 (20:29 +0100)]
cosmetics
Frederic Suter [Sun, 23 Feb 2020 16:03:40 +0000 (17:03 +0100)]
add sg_comm_test
Frederic Suter [Sun, 23 Feb 2020 14:56:29 +0000 (15:56 +0100)]
update
Frederic Suter [Sun, 23 Feb 2020 14:36:53 +0000 (15:36 +0100)]
convert host-on-off-recv
Martin Quinson [Sun, 23 Feb 2020 17:03:32 +0000 (18:03 +0100)]
FindSimGrid: adapt to the move of SIMGRID_VERSION_* macros to simgrid/version.h
Martin Quinson [Sun, 23 Feb 2020 10:25:09 +0000 (11:25 +0100)]
docker: remove java from stable image
Martin Quinson [Thu, 13 Feb 2020 23:18:49 +0000 (00:18 +0100)]
document some recent (and ongoing) changes
Arnaud Giersch [Sun, 23 Feb 2020 13:33:48 +0000 (14:33 +0100)]
Split sonar.issue.ignore.multicriteria.c10.resourceKey.
A list of comma separated values does not seem to be supported.
Arnaud Giersch [Sat, 22 Feb 2020 10:06:37 +0000 (11:06 +0100)]
Update ignore list after file move.
Arnaud Giersch [Sat, 22 Feb 2020 09:54:32 +0000 (10:54 +0100)]
Use the right free function.
Arnaud Giersch [Fri, 21 Feb 2020 21:39:44 +0000 (22:39 +0100)]
Kill unused variable.
Arnaud Giersch [Fri, 21 Feb 2020 17:10:43 +0000 (18:10 +0100)]
[sonar] Const again.
Arnaud Giersch [Fri, 21 Feb 2020 17:08:57 +0000 (18:08 +0100)]
XBT_ATTRIB_UNUSED for unused parameters.
Arnaud Giersch [Fri, 21 Feb 2020 16:31:49 +0000 (17:31 +0100)]
Prefer xbt::random.
Frederic Suter [Fri, 21 Feb 2020 21:13:46 +0000 (22:13 +0100)]
BUMMER
Frederic Suter [Fri, 21 Feb 2020 15:53:04 +0000 (16:53 +0100)]
try to fix paths
Frederic Suter [Fri, 21 Feb 2020 14:24:42 +0000 (15:24 +0100)]
this was no simdag
Arnaud Giersch [Fri, 21 Feb 2020 14:37:00 +0000 (15:37 +0100)]
Close simgrid/simgrid#48.
Arnaud Giersch [Fri, 21 Feb 2020 14:08:28 +0000 (15:08 +0100)]
Clear simcall.timeout_cb_ after use (contribute to simgrid/simgrid#48).
Arnaud Giersch [Fri, 21 Feb 2020 14:01:08 +0000 (15:01 +0100)]
Ensure that only valid simcalls are answered.
Arnaud Giersch [Wed, 19 Feb 2020 14:02:13 +0000 (15:02 +0100)]
Cosmetics.
Frederic Suter [Fri, 21 Feb 2020 12:29:46 +0000 (13:29 +0100)]
convert host-on-off test to s4u
Frederic Suter [Fri, 21 Feb 2020 11:38:48 +0000 (12:38 +0100)]
convert energy-vm
Frederic Suter [Thu, 20 Feb 2020 15:18:14 +0000 (16:18 +0100)]
convert cloud-migration
Frederic Suter [Thu, 20 Feb 2020 14:05:14 +0000 (15:05 +0100)]
more documented examples
Frederic Suter [Thu, 20 Feb 2020 12:32:43 +0000 (13:32 +0100)]
kill this file
Frederic Suter [Thu, 20 Feb 2020 12:31:21 +0000 (13:31 +0100)]
convert io-file-remote
Frederic Suter [Thu, 20 Feb 2020 12:31:04 +0000 (13:31 +0100)]
add sg_disk_get_host()
Frederic Suter [Thu, 20 Feb 2020 11:37:54 +0000 (12:37 +0100)]
energy-pstate -> exec-dvfs
Frederic Suter [Thu, 20 Feb 2020 11:08:36 +0000 (12:08 +0100)]
convert and simplify app-chainsend in C
Frederic Suter [Thu, 20 Feb 2020 09:13:23 +0000 (10:13 +0100)]
add sg_mailbox_get_async
Frederic Suter [Thu, 20 Feb 2020 07:31:22 +0000 (08:31 +0100)]
fix attribute
Frederic Suter [Wed, 19 Feb 2020 14:36:17 +0000 (15:36 +0100)]
convert cloud capping
Frederic Suter [Wed, 19 Feb 2020 14:35:41 +0000 (15:35 +0100)]
extend C API for asynchronous executions
Frederic Suter [Wed, 19 Feb 2020 12:53:56 +0000 (13:53 +0100)]
convert plugin-hostload
Frederic Suter [Wed, 19 Feb 2020 12:19:49 +0000 (13:19 +0100)]
a couple more C examples
Arnaud Giersch [Wed, 19 Feb 2020 10:42:54 +0000 (11:42 +0100)]
[sonar] Ignore rule S1133 for C code too.
Arnaud Giersch [Wed, 19 Feb 2020 08:55:42 +0000 (09:55 +0100)]
Fix attributes for variables.
Arnaud Giersch [Wed, 19 Feb 2020 08:49:54 +0000 (09:49 +0100)]
Another const.
Frederic Suter [Wed, 19 Feb 2020 08:20:31 +0000 (09:20 +0100)]
document C examples related to actors
Arnaud Giersch [Tue, 18 Feb 2020 21:03:47 +0000 (22:03 +0100)]
Workaround for errors given by Asan (certainly false positives).
Arnaud Giersch [Tue, 18 Feb 2020 17:00:31 +0000 (18:00 +0100)]
Fix build.
Arnaud Giersch [Tue, 18 Feb 2020 16:00:15 +0000 (17:00 +0100)]
Merge activity-test-wait into activity-lifecycle.
Arnaud Giersch [Tue, 18 Feb 2020 15:50:08 +0000 (16:50 +0100)]
Split sources for activity-lifecycle.
Arnaud Giersch [Tue, 18 Feb 2020 15:07:14 +0000 (16:07 +0100)]
Define a special test_case for failing tests.
Arnaud Giersch [Tue, 18 Feb 2020 14:16:03 +0000 (15:16 +0100)]
Convert activity-test-wait to catch2.
Arnaud Giersch [Tue, 18 Feb 2020 10:21:07 +0000 (11:21 +0100)]
Convert activity-lifecycle to catch2.
Arnaud Giersch [Tue, 18 Feb 2020 12:46:40 +0000 (13:46 +0100)]
Upgrade embedded catch2 (v2.5.0 -> v2.11.1).
Arnaud Giersch [Mon, 17 Feb 2020 09:08:53 +0000 (10:08 +0100)]
Factorize common code.
Arnaud Giersch [Fri, 14 Feb 2020 14:45:02 +0000 (15:45 +0100)]
Closed bug.
Frederic Suter [Fri, 14 Feb 2020 00:19:24 +0000 (01:19 +0100)]
missing override
Frederic Suter [Fri, 14 Feb 2020 00:03:30 +0000 (01:03 +0100)]
merge ExecSeq and ExecPar into Exec (simdag-style)
Frederic Suter [Thu, 13 Feb 2020 06:23:40 +0000 (07:23 +0100)]
convert cloud simple
Augustin Degomme [Thu, 13 Feb 2020 17:37:46 +0000 (18:37 +0100)]
#139 :
- have group::rank check for parent process in case it is called by a subprocess.
- add SMPI_thread_create, which is rather empty, as there is apparently no need for suer_data anymore (?).
Martin Quinson [Wed, 12 Feb 2020 10:49:12 +0000 (11:49 +0100)]
document the actor-{daemon,join,kill} C examples
Martin Quinson [Wed, 12 Feb 2020 10:29:20 +0000 (11:29 +0100)]
Make sure that the doc of the sg_actor functions land in the doc
At some point in the past, I came to the conclusion that I did not
want doxygen to introspect the implementation of the code but only the
header files. I think it was because I did not want doxygen to grab
and publish the internal symbols used for the implementation, but only
to document the public interface. I'm not entirely sure because it was
a long time ago :-/ Maybe I'm missing another issue that will resurface.
But this policy requires that the docstrings are in the header, while
good practices advise to keep docstrings close to the implem, to
increase the chance of getting them updated when the implem changes.
Now that we use autodoxy, we manually pick which symbols get
displayed, so it does not matter anymore to hide stuff from Doxygen as
when we had automatic content listing.
I don't feel (yet) like moving the docstrings from the headers back to
the implem a few years after moving them in the other direction, but
since the docstrings of the C implem is close to the implem (as it
should), let's show that implem to doxygen so that the C symbols get
documented in the refguide.
And yes. This documents a one line commit with 20+ lines of logs. This
will allow agier to point me to that commit when I change my mind in
the future ;) eg when the issue that I forgot will resurface.
Martin Quinson [Wed, 12 Feb 2020 10:28:10 +0000 (11:28 +0100)]
add sg_actor_is_daemon()
Martin Quinson [Wed, 12 Feb 2020 10:12:09 +0000 (11:12 +0100)]
we don't use doxygen's groups anymore
Arnaud Giersch [Thu, 13 Feb 2020 08:35:02 +0000 (09:35 +0100)]
Update tests.
Code factorization, more debug messages, prepare for other kinds of activities.
Frederic Suter [Wed, 12 Feb 2020 23:36:58 +0000 (00:36 +0100)]
ignore binaries for new C examples
Frederic Suter [Wed, 12 Feb 2020 23:32:53 +0000 (00:32 +0100)]
convert msg/energy-consumption to c/energy-exec
Frederic Suter [Wed, 12 Feb 2020 22:14:43 +0000 (23:14 +0100)]
please intel compiler
Arnaud Giersch [Wed, 12 Feb 2020 22:57:59 +0000 (23:57 +0100)]
Update MANIFEST.in, .gitignore.
Arnaud Giersch [Tue, 11 Feb 2020 20:47:04 +0000 (21:47 +0100)]
Add activity-test-wait testing test() and wait_for() for activities.
Currently, only Exec are tested.
Some failing tests are left commented.
Arnaud Giersch [Wed, 12 Feb 2020 22:16:37 +0000 (23:16 +0100)]
Allow to call test() on canceled activities.
Arnaud Giersch [Tue, 11 Feb 2020 08:05:10 +0000 (09:05 +0100)]
[sonar] Add const.
Frederic Suter [Wed, 12 Feb 2020 05:01:32 +0000 (06:01 +0100)]
this test has been converted
Frederic Suter [Tue, 11 Feb 2020 22:23:50 +0000 (23:23 +0100)]
C version of async-waitall
Frederic Suter [Tue, 11 Feb 2020 05:22:23 +0000 (06:22 +0100)]
add actor-exiting in C
This is a shorter counterpart to the C++ example as signals cannot be
used. The only way to be informed of the termination of an actor is
thus to rely on the sg_actor_on_exit function.
Martin Quinson [Tue, 11 Feb 2020 21:28:17 +0000 (22:28 +0100)]
don't use deprecated functions
Martin Quinson [Tue, 11 Feb 2020 21:08:05 +0000 (22:08 +0100)]
rename Host::send_to to sendto; add sendto_async
Martin Quinson [Mon, 10 Feb 2020 19:59:18 +0000 (20:59 +0100)]
Doc++
Frederic Suter [Mon, 10 Feb 2020 16:21:47 +0000 (17:21 +0100)]
two more conversions
Frederic Suter [Mon, 10 Feb 2020 15:58:26 +0000 (16:58 +0100)]
add sg_actor_sleep_until
Arnaud Giersch [Mon, 10 Feb 2020 15:20:10 +0000 (16:20 +0100)]
Missing include.
Arnaud Giersch [Mon, 10 Feb 2020 15:08:38 +0000 (16:08 +0100)]
Deprecate e_smx_state_t.
Arnaud Giersch [Mon, 10 Feb 2020 15:08:38 +0000 (16:08 +0100)]
Take simcalls {execution,io}_wait toward modernity.
Arnaud Giersch [Mon, 10 Feb 2020 15:02:14 +0000 (16:02 +0100)]
Move ::wait_for() from ExecImpl and IoImpl to ActivityImpl.
Arnaud Giersch [Mon, 10 Feb 2020 14:59:33 +0000 (15:59 +0100)]
Define ActivityImpl::set_timeout().
Arnaud Giersch [Mon, 10 Feb 2020 14:55:25 +0000 (15:55 +0100)]
Define {Exec,Io}Impl::wait_for().
Arnaud Giersch [Sun, 9 Feb 2020 20:51:44 +0000 (21:51 +0100)]
Todo-- (done since v3.25)
Arnaud Giersch [Sun, 9 Feb 2020 20:48:25 +0000 (21:48 +0100)]
Activity::State::ERRORED is never used.
Arnaud Giersch [Sun, 9 Feb 2020 10:43:44 +0000 (11:43 +0100)]
Add one more state to assert.
Without that, the comparison 5 lines after was useless.
Arnaud Giersch [Fri, 7 Feb 2020 16:20:50 +0000 (17:20 +0100)]
Improve coverage :p
Frederic Suter [Sun, 9 Feb 2020 14:43:59 +0000 (15:43 +0100)]
fix refcount issue
If you create an actor and know that you may try to do something on it
after its completion, you'd better take an extra reference on it. Once
you're done with this actor, do not forget to release the reference or
you will face some memory leaks.
Frederic Suter [Sun, 9 Feb 2020 14:31:20 +0000 (15:31 +0100)]
do not enforce a specific order
Frederic Suter [Sun, 9 Feb 2020 14:07:52 +0000 (15:07 +0100)]
simgrid_get_all_hosts was redundant with existing sg_host_list
Frederic Suter [Sat, 8 Feb 2020 16:47:28 +0000 (17:47 +0100)]
bummer. fix clang
Frederic Suter [Sat, 8 Feb 2020 15:56:22 +0000 (16:56 +0100)]
add sg_actor_exit and sg_actor_on_exit
+ convert the corresponding MSG example to s4u-c
+ MSG_process_on_exit becomes legacy
Frederic Suter [Fri, 7 Feb 2020 13:03:10 +0000 (14:03 +0100)]
convert more exemples from MSG to S4U-C
- app-token-ring
- process-daemon -> actor-daemon
- process-join -> actor-join
Arnaud Giersch [Fri, 7 Feb 2020 14:14:09 +0000 (15:14 +0100)]
Define method test() in Activity (common to Exec and Io).
s4u::Comm still uses old-style simcalls (thanks MC) and cannot use it now.
Arnaud Giersch [Fri, 7 Feb 2020 14:03:56 +0000 (15:03 +0100)]
Modernize simcall_io_test().
Arnaud Giersch [Fri, 7 Feb 2020 13:28:24 +0000 (14:28 +0100)]
Modernize simcall_execution_test().
Frederic Suter [Fri, 7 Feb 2020 10:18:42 +0000 (11:18 +0100)]
Deprecate host_get_mounted_storage_list
Frederic Suter [Fri, 7 Feb 2020 10:08:14 +0000 (11:08 +0100)]
Start to get rid of storage examples in MSG
Convert this test to a s4u-c example based on disks. It matches the
c++ version.
xbt_dynar have been replaced by fonctions that allocate and build
arrays of objects that the user will have to free.
Problem: there is no convenient xbt-free way to handle dictionnaries
yet, hence a xbt_dict remains to access properties.
Frederic Suter [Fri, 7 Feb 2020 10:04:44 +0000 (11:04 +0100)]
introduce simgrid_get_all_hosts
This is a replacement to sg_hosts_as_dynar.
It allocates and builds the list of all the hosts seen by the Engine,
sorted by host names. Deallocating the memory is up to the user.
Frederic Suter [Fri, 7 Feb 2020 09:49:59 +0000 (10:49 +0100)]
introduce sg_host_disks