Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
simgrid.git
4 years agoUse more cmakey way to detect and use lto (should work on clang and others)
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

4 years agoconvert and simplify async-wait
Frederic Suter [Mon, 24 Feb 2020 11:57:16 +0000 (12:57 +0100)]
convert and simplify async-wait

4 years agoadd sg_comm_wait()
Frederic Suter [Mon, 24 Feb 2020 11:35:25 +0000 (12:35 +0100)]
add sg_comm_wait()
+ unref comm is test return true

4 years agocosmetics
Frederic Suter [Sun, 23 Feb 2020 19:29:18 +0000 (20:29 +0100)]
cosmetics

4 years agoadd sg_comm_test
Frederic Suter [Sun, 23 Feb 2020 16:03:40 +0000 (17:03 +0100)]
add sg_comm_test

4 years agoupdate
Frederic Suter [Sun, 23 Feb 2020 14:56:29 +0000 (15:56 +0100)]
update

4 years agoconvert host-on-off-recv
Frederic Suter [Sun, 23 Feb 2020 14:36:53 +0000 (15:36 +0100)]
convert host-on-off-recv

4 years agoFindSimGrid: adapt to the move of SIMGRID_VERSION_* macros to simgrid/version.h
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

4 years agodocker: remove java from stable image
Martin Quinson [Sun, 23 Feb 2020 10:25:09 +0000 (11:25 +0100)]
docker: remove java from stable image

4 years agodocument some recent (and ongoing) changes
Martin Quinson [Thu, 13 Feb 2020 23:18:49 +0000 (00:18 +0100)]
document some recent (and ongoing) changes

4 years agoSplit sonar.issue.ignore.multicriteria.c10.resourceKey.
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.

4 years agoUpdate ignore list after file move.
Arnaud Giersch [Sat, 22 Feb 2020 10:06:37 +0000 (11:06 +0100)]
Update ignore list after file move.

4 years agoUse the right free function.
Arnaud Giersch [Sat, 22 Feb 2020 09:54:32 +0000 (10:54 +0100)]
Use the right free function.

4 years agoKill unused variable.
Arnaud Giersch [Fri, 21 Feb 2020 21:39:44 +0000 (22:39 +0100)]
Kill unused variable.

4 years ago[sonar] Const again.
Arnaud Giersch [Fri, 21 Feb 2020 17:10:43 +0000 (18:10 +0100)]
[sonar] Const again.

4 years agoXBT_ATTRIB_UNUSED for unused parameters.
Arnaud Giersch [Fri, 21 Feb 2020 17:08:57 +0000 (18:08 +0100)]
XBT_ATTRIB_UNUSED for unused parameters.

4 years agoPrefer xbt::random.
Arnaud Giersch [Fri, 21 Feb 2020 16:31:49 +0000 (17:31 +0100)]
Prefer xbt::random.

4 years agoBUMMER
Frederic Suter [Fri, 21 Feb 2020 21:13:46 +0000 (22:13 +0100)]
BUMMER

4 years agotry to fix paths
Frederic Suter [Fri, 21 Feb 2020 15:53:04 +0000 (16:53 +0100)]
try to fix paths

4 years agothis was no simdag
Frederic Suter [Fri, 21 Feb 2020 14:24:42 +0000 (15:24 +0100)]
this was no simdag

4 years agoClose simgrid/simgrid#48.
Arnaud Giersch [Fri, 21 Feb 2020 14:37:00 +0000 (15:37 +0100)]
Close simgrid/simgrid#48.

4 years agoClear simcall.timeout_cb_ after use (contribute to 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).

4 years agoEnsure that only valid simcalls are answered.
Arnaud Giersch [Fri, 21 Feb 2020 14:01:08 +0000 (15:01 +0100)]
Ensure that only valid simcalls are answered.

4 years agoCosmetics.
Arnaud Giersch [Wed, 19 Feb 2020 14:02:13 +0000 (15:02 +0100)]
Cosmetics.

4 years agoconvert host-on-off test to s4u
Frederic Suter [Fri, 21 Feb 2020 12:29:46 +0000 (13:29 +0100)]
convert host-on-off test to s4u

4 years agoconvert energy-vm
Frederic Suter [Fri, 21 Feb 2020 11:38:48 +0000 (12:38 +0100)]
convert energy-vm

4 years agoconvert cloud-migration
Frederic Suter [Thu, 20 Feb 2020 15:18:14 +0000 (16:18 +0100)]
convert cloud-migration

4 years agomore documented examples
Frederic Suter [Thu, 20 Feb 2020 14:05:14 +0000 (15:05 +0100)]
more documented examples

4 years agokill this file
Frederic Suter [Thu, 20 Feb 2020 12:32:43 +0000 (13:32 +0100)]
kill this file

4 years agoconvert io-file-remote
Frederic Suter [Thu, 20 Feb 2020 12:31:21 +0000 (13:31 +0100)]
convert io-file-remote

4 years agoadd sg_disk_get_host()
Frederic Suter [Thu, 20 Feb 2020 12:31:04 +0000 (13:31 +0100)]
add sg_disk_get_host()

4 years agoenergy-pstate -> exec-dvfs
Frederic Suter [Thu, 20 Feb 2020 11:37:54 +0000 (12:37 +0100)]
energy-pstate -> exec-dvfs

4 years agoconvert and simplify app-chainsend in C
Frederic Suter [Thu, 20 Feb 2020 11:08:36 +0000 (12:08 +0100)]
convert and simplify app-chainsend in C

4 years agoadd sg_mailbox_get_async
Frederic Suter [Thu, 20 Feb 2020 09:13:23 +0000 (10:13 +0100)]
add sg_mailbox_get_async

4 years agofix attribute
Frederic Suter [Thu, 20 Feb 2020 07:31:22 +0000 (08:31 +0100)]
fix attribute

4 years agoconvert cloud capping
Frederic Suter [Wed, 19 Feb 2020 14:36:17 +0000 (15:36 +0100)]
convert cloud capping

4 years agoextend C API for asynchronous executions
Frederic Suter [Wed, 19 Feb 2020 14:35:41 +0000 (15:35 +0100)]
extend C API for asynchronous executions

4 years agoconvert plugin-hostload
Frederic Suter [Wed, 19 Feb 2020 12:53:56 +0000 (13:53 +0100)]
convert plugin-hostload

4 years agoa couple more C examples
Frederic Suter [Wed, 19 Feb 2020 12:19:49 +0000 (13:19 +0100)]
a couple more C examples

4 years ago[sonar] Ignore rule S1133 for C code too.
Arnaud Giersch [Wed, 19 Feb 2020 10:42:54 +0000 (11:42 +0100)]
[sonar] Ignore rule S1133 for C code too.

4 years agoFix attributes for variables.
Arnaud Giersch [Wed, 19 Feb 2020 08:55:42 +0000 (09:55 +0100)]
Fix attributes for variables.

4 years agoAnother const.
Arnaud Giersch [Wed, 19 Feb 2020 08:49:54 +0000 (09:49 +0100)]
Another const.

4 years agodocument C examples related to actors
Frederic Suter [Wed, 19 Feb 2020 08:20:31 +0000 (09:20 +0100)]
document C examples related to actors

4 years agoWorkaround for errors given by Asan (certainly false positives).
Arnaud Giersch [Tue, 18 Feb 2020 21:03:47 +0000 (22:03 +0100)]
Workaround for errors given by Asan (certainly false positives).

4 years agoFix build.
Arnaud Giersch [Tue, 18 Feb 2020 17:00:31 +0000 (18:00 +0100)]
Fix build.

4 years agoMerge activity-test-wait into activity-lifecycle.
Arnaud Giersch [Tue, 18 Feb 2020 16:00:15 +0000 (17:00 +0100)]
Merge activity-test-wait into activity-lifecycle.

4 years agoSplit sources for activity-lifecycle.
Arnaud Giersch [Tue, 18 Feb 2020 15:50:08 +0000 (16:50 +0100)]
Split sources for activity-lifecycle.

4 years agoDefine a special test_case for failing tests.
Arnaud Giersch [Tue, 18 Feb 2020 15:07:14 +0000 (16:07 +0100)]
Define a special test_case for failing tests.

4 years agoConvert activity-test-wait to catch2.
Arnaud Giersch [Tue, 18 Feb 2020 14:16:03 +0000 (15:16 +0100)]
Convert activity-test-wait to catch2.

4 years agoConvert activity-lifecycle to catch2.
Arnaud Giersch [Tue, 18 Feb 2020 10:21:07 +0000 (11:21 +0100)]
Convert activity-lifecycle to catch2.

4 years agoUpgrade embedded catch2 (v2.5.0 -> v2.11.1).
Arnaud Giersch [Tue, 18 Feb 2020 12:46:40 +0000 (13:46 +0100)]
Upgrade embedded catch2 (v2.5.0 -> v2.11.1).

4 years agoFactorize common code.
Arnaud Giersch [Mon, 17 Feb 2020 09:08:53 +0000 (10:08 +0100)]
Factorize common code.

4 years agoClosed bug.
Arnaud Giersch [Fri, 14 Feb 2020 14:45:02 +0000 (15:45 +0100)]
Closed bug.

4 years agomissing override
Frederic Suter [Fri, 14 Feb 2020 00:19:24 +0000 (01:19 +0100)]
missing override

4 years agomerge ExecSeq and ExecPar into Exec (simdag-style)
Frederic Suter [Fri, 14 Feb 2020 00:03:30 +0000 (01:03 +0100)]
merge ExecSeq and ExecPar into Exec (simdag-style)

4 years agoconvert cloud simple
Frederic Suter [Thu, 13 Feb 2020 06:23:40 +0000 (07:23 +0100)]
convert cloud simple

4 years ago#139 :
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 (?).

4 years agodocument the actor-{daemon,join,kill} C examples
Martin Quinson [Wed, 12 Feb 2020 10:49:12 +0000 (11:49 +0100)]
document the actor-{daemon,join,kill} C examples

4 years agoMake sure that the doc of the sg_actor functions land in the doc
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.

4 years agoadd sg_actor_is_daemon()
Martin Quinson [Wed, 12 Feb 2020 10:28:10 +0000 (11:28 +0100)]
add sg_actor_is_daemon()

4 years agowe don't use doxygen's groups anymore
Martin Quinson [Wed, 12 Feb 2020 10:12:09 +0000 (11:12 +0100)]
we don't use doxygen's groups anymore

4 years agoUpdate tests.
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.

4 years agoignore binaries for new C examples
Frederic Suter [Wed, 12 Feb 2020 23:36:58 +0000 (00:36 +0100)]
ignore binaries for new C examples

4 years agoconvert msg/energy-consumption to c/energy-exec
Frederic Suter [Wed, 12 Feb 2020 23:32:53 +0000 (00:32 +0100)]
convert msg/energy-consumption to c/energy-exec

4 years agoplease intel compiler
Frederic Suter [Wed, 12 Feb 2020 22:14:43 +0000 (23:14 +0100)]
please intel compiler

4 years agoUpdate MANIFEST.in, .gitignore.
Arnaud Giersch [Wed, 12 Feb 2020 22:57:59 +0000 (23:57 +0100)]
Update MANIFEST.in, .gitignore.

4 years agoAdd activity-test-wait testing test() and wait_for() for activities.
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.

4 years agoAllow to call test() on canceled activities.
Arnaud Giersch [Wed, 12 Feb 2020 22:16:37 +0000 (23:16 +0100)]
Allow to call test() on canceled activities.

4 years ago[sonar] Add const.
Arnaud Giersch [Tue, 11 Feb 2020 08:05:10 +0000 (09:05 +0100)]
[sonar] Add const.

4 years agothis test has been converted
Frederic Suter [Wed, 12 Feb 2020 05:01:32 +0000 (06:01 +0100)]
this test has been converted

4 years agoC version of async-waitall
Frederic Suter [Tue, 11 Feb 2020 22:23:50 +0000 (23:23 +0100)]
C version of async-waitall

4 years agoadd actor-exiting in C
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.

4 years agodon't use deprecated functions
Martin Quinson [Tue, 11 Feb 2020 21:28:17 +0000 (22:28 +0100)]
don't use deprecated functions

4 years agorename Host::send_to to sendto; add sendto_async
Martin Quinson [Tue, 11 Feb 2020 21:08:05 +0000 (22:08 +0100)]
rename Host::send_to to sendto; add sendto_async

4 years agoDoc++
Martin Quinson [Mon, 10 Feb 2020 19:59:18 +0000 (20:59 +0100)]
Doc++

4 years agotwo more conversions
Frederic Suter [Mon, 10 Feb 2020 16:21:47 +0000 (17:21 +0100)]
two more conversions

4 years agoadd sg_actor_sleep_until
Frederic Suter [Mon, 10 Feb 2020 15:58:26 +0000 (16:58 +0100)]
add sg_actor_sleep_until

4 years agoMissing include.
Arnaud Giersch [Mon, 10 Feb 2020 15:20:10 +0000 (16:20 +0100)]
Missing include.

4 years agoDeprecate e_smx_state_t.
Arnaud Giersch [Mon, 10 Feb 2020 15:08:38 +0000 (16:08 +0100)]
Deprecate e_smx_state_t.

4 years agoTake simcalls {execution,io}_wait toward modernity.
Arnaud Giersch [Mon, 10 Feb 2020 15:08:38 +0000 (16:08 +0100)]
Take simcalls {execution,io}_wait toward modernity.

4 years agoMove ::wait_for() from ExecImpl and IoImpl to ActivityImpl.
Arnaud Giersch [Mon, 10 Feb 2020 15:02:14 +0000 (16:02 +0100)]
Move ::wait_for() from ExecImpl and IoImpl to ActivityImpl.

4 years agoDefine ActivityImpl::set_timeout().
Arnaud Giersch [Mon, 10 Feb 2020 14:59:33 +0000 (15:59 +0100)]
Define ActivityImpl::set_timeout().

4 years agoDefine {Exec,Io}Impl::wait_for().
Arnaud Giersch [Mon, 10 Feb 2020 14:55:25 +0000 (15:55 +0100)]
Define {Exec,Io}Impl::wait_for().

4 years agoTodo-- (done since v3.25)
Arnaud Giersch [Sun, 9 Feb 2020 20:51:44 +0000 (21:51 +0100)]
Todo-- (done since v3.25)

4 years agoActivity::State::ERRORED is never used.
Arnaud Giersch [Sun, 9 Feb 2020 20:48:25 +0000 (21:48 +0100)]
Activity::State::ERRORED is never used.

4 years agoAdd one more state to assert.
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.

4 years agoImprove coverage :p
Arnaud Giersch [Fri, 7 Feb 2020 16:20:50 +0000 (17:20 +0100)]
Improve coverage :p

4 years agofix refcount issue
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.

4 years agodo not enforce a specific order
Frederic Suter [Sun, 9 Feb 2020 14:31:20 +0000 (15:31 +0100)]
do not enforce a specific order

4 years agosimgrid_get_all_hosts was redundant with existing sg_host_list
Frederic Suter [Sun, 9 Feb 2020 14:07:52 +0000 (15:07 +0100)]
simgrid_get_all_hosts was redundant with existing sg_host_list

4 years agobummer. fix clang
Frederic Suter [Sat, 8 Feb 2020 16:47:28 +0000 (17:47 +0100)]
bummer. fix clang

4 years agoadd sg_actor_exit and sg_actor_on_exit
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

4 years agoconvert more exemples from MSG to S4U-C
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

4 years agoDefine method test() in Activity (common to Exec and Io).
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.

4 years agoModernize simcall_io_test().
Arnaud Giersch [Fri, 7 Feb 2020 14:03:56 +0000 (15:03 +0100)]
Modernize simcall_io_test().

4 years agoModernize simcall_execution_test().
Arnaud Giersch [Fri, 7 Feb 2020 13:28:24 +0000 (14:28 +0100)]
Modernize simcall_execution_test().

4 years agoDeprecate host_get_mounted_storage_list
Frederic Suter [Fri, 7 Feb 2020 10:18:42 +0000 (11:18 +0100)]
Deprecate host_get_mounted_storage_list

4 years agoStart to get rid of storage examples in MSG
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.

4 years agointroduce simgrid_get_all_hosts
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.

4 years agointroduce sg_host_disks
Frederic Suter [Fri, 7 Feb 2020 09:49:59 +0000 (10:49 +0100)]
introduce sg_host_disks