Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
simgrid.git
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

4 years agoPursue deprecation of xbt/synchro.h.
Arnaud Giersch [Fri, 7 Feb 2020 08:13:55 +0000 (09:13 +0100)]
Pursue deprecation of xbt/synchro.h.

4 years agoDeprecate unused simcall_comm_iprobe() + comments.
Arnaud Giersch [Thu, 6 Feb 2020 22:16:17 +0000 (23:16 +0100)]
Deprecate unused simcall_comm_iprobe() + comments.

4 years agoFix dist.
Arnaud Giersch [Thu, 6 Feb 2020 16:10:45 +0000 (17:10 +0100)]
Fix dist.

4 years agoAdd "explicit".
Arnaud Giersch [Thu, 6 Feb 2020 15:59:41 +0000 (16:59 +0100)]
Add "explicit".

4 years agoadd C interface to disks
Frederic Suter [Thu, 6 Feb 2020 15:59:07 +0000 (16:59 +0100)]
add C interface to disks

4 years agoMerge branch 'doc' into 'master'
Martin Quinson [Thu, 6 Feb 2020 15:47:04 +0000 (16:47 +0100)]
Merge branch 'doc' into 'master'

Make docs generation compatible with Sphinx 2.x

See merge request simgrid/simgrid!30

4 years agoMake docs generation compatible with Sphinx 2.x
Julien EMMANUEL [Thu, 6 Feb 2020 15:11:01 +0000 (16:11 +0100)]
Make docs generation compatible with Sphinx 2.x

Modify a few things in autodoxy.py to make it compatible with both sphinx 1.8 and 2.x

4 years agoConvert surf/maxmin_bench to xbt/random too.
Arnaud Giersch [Thu, 6 Feb 2020 15:19:18 +0000 (16:19 +0100)]
Convert surf/maxmin_bench to xbt/random too.

4 years agoReplace usage of <random> with <xbt/random.hpp>.
Arnaud Giersch [Wed, 5 Feb 2020 22:45:20 +0000 (23:45 +0100)]
Replace usage of <random> with <xbt/random.hpp>.

4 years ago[examples/s4u-app-bittorrent] Use a different RNG for each node.
Arnaud Giersch [Wed, 5 Feb 2020 20:49:40 +0000 (21:49 +0100)]
[examples/s4u-app-bittorrent] Use a different RNG for each node.

4 years ago[examples/s4u-dht-chord] Use a different RNG for each node (regenerate expected outpu...
Arnaud Giersch [Wed, 5 Feb 2020 20:34:10 +0000 (21:34 +0100)]
[examples/s4u-dht-chord] Use a different RNG for each node (regenerate expected output in tesh).

4 years agoDefines C++ classes for xbt RNG.
Arnaud Giersch [Wed, 5 Feb 2020 15:00:07 +0000 (16:00 +0100)]
Defines C++ classes for xbt RNG.

Add the possibility to have several random number generators.
A global generator is kept.

4 years agoPlug memory leak, and othre polishing.
Arnaud Giersch [Thu, 6 Feb 2020 14:44:50 +0000 (15:44 +0100)]
Plug memory leak, and othre polishing.

4 years agoUpdate Copyright line.
Arnaud Giersch [Thu, 6 Feb 2020 14:37:52 +0000 (15:37 +0100)]
Update Copyright line.

4 years agoCatch any kind of Exception here (revert previous change).
Arnaud Giersch [Thu, 6 Feb 2020 14:29:21 +0000 (15:29 +0100)]
Catch any kind of Exception here (revert previous change).

4 years agoEnsure that I don't 'fix' it by accident in the future
Martin Quinson [Thu, 6 Feb 2020 13:33:00 +0000 (14:33 +0100)]
Ensure that I don't 'fix' it by accident in the future

4 years agoPrefer a do-while in these cases.
Arnaud Giersch [Thu, 6 Feb 2020 12:40:12 +0000 (13:40 +0100)]
Prefer a do-while in these cases.

4 years agoFix division by zero on 32bit systems.
Arnaud Giersch [Thu, 6 Feb 2020 12:39:34 +0000 (13:39 +0100)]
Fix division by zero on 32bit systems.

4 years agodo not use sg_hosts_as_dynar in C++
Frederic Suter [Thu, 6 Feb 2020 10:42:21 +0000 (11:42 +0100)]
do not use sg_hosts_as_dynar in C++

4 years agoMerge branch 'doc' into 'master'
Arnaud Giersch [Thu, 6 Feb 2020 10:54:38 +0000 (11:54 +0100)]
Merge branch 'doc' into 'master'

Fix overflow of large parameters in doc

See merge request simgrid/simgrid!29

4 years agoClose simgrid/simgrid#43 on framagit, and update ChangeLog.
Arnaud Giersch [Thu, 6 Feb 2020 10:46:19 +0000 (11:46 +0100)]
Close simgrid/simgrid#43 on framagit, and update ChangeLog.

Concerns have been addressed by commits:
a5a63cee9b Redraw if the random number is too close to max, to avoid modulo bias
fbf0f42532 Documenting xbt/random a little bit
037217ec21 Exclude max from range for xbt::random::uniform_real.

4 years agoSet seed only after having chosen the implementation.
Arnaud Giersch [Thu, 6 Feb 2020 10:45:36 +0000 (11:45 +0100)]
Set seed only after having chosen the implementation.

4 years agoExclude max from range for xbt::random::uniform_real.
Arnaud Giersch [Thu, 6 Feb 2020 10:18:05 +0000 (11:18 +0100)]
Exclude max from range for xbt::random::uniform_real.

Mimic std::uniform_real_distribution.

4 years agoCosmetics in xbt/random.
Arnaud Giersch [Thu, 6 Feb 2020 10:07:52 +0000 (11:07 +0100)]
Cosmetics in xbt/random.

4 years agoFix overflow of large parameters in doc
Julien EMMANUEL [Thu, 6 Feb 2020 10:10:40 +0000 (11:10 +0100)]
Fix overflow of large parameters in doc

4 years agoMerge branch 'pikachuyann/simgrid-xbt_random'
Arnaud Giersch [Thu, 6 Feb 2020 09:57:37 +0000 (10:57 +0100)]
Merge branch 'pikachuyann/simgrid-xbt_random'