Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
simgrid.git
6 years agouse the C++ API in that example
Martin Quinson [Fri, 9 Mar 2018 13:30:56 +0000 (14:30 +0100)]
use the C++ API in that example

6 years agoRevert "Use C11's atomic_flag."
Arnaud Giersch [Thu, 8 Mar 2018 21:33:14 +0000 (22:33 +0100)]
Revert "Use C11's atomic_flag."

stdatomic.h is missing in gcc 4.8

This reverts commit ff4d8d0fbe1feb59a8799632af047771a78f1718.

6 years agotesh: use start_new_session and see how it behaves on Windows...
Arnaud Giersch [Thu, 8 Mar 2018 21:22:22 +0000 (22:22 +0100)]
tesh: use start_new_session and see how it behaves on Windows...

6 years agoUse XBT_PUBLIC_CLASS (for mingw).
Arnaud Giersch [Thu, 8 Mar 2018 21:09:05 +0000 (22:09 +0100)]
Use XBT_PUBLIC_CLASS (for mingw).

6 years agoBreak nested condinationalsi (sonar).
Arnaud Giersch [Thu, 8 Mar 2018 15:42:24 +0000 (16:42 +0100)]
Break nested condinationalsi (sonar).

6 years agoRemove useless forward declaration (sonar).
Arnaud Giersch [Thu, 8 Mar 2018 13:33:52 +0000 (14:33 +0100)]
Remove useless forward declaration (sonar).

6 years agoUnused parameter: task.
Arnaud Giersch [Thu, 8 Mar 2018 10:58:58 +0000 (11:58 +0100)]
Unused parameter: task.

6 years agoSD_task_dependency_add(): remove unused parameters 'name' and 'data'.
Arnaud Giersch [Thu, 8 Mar 2018 10:19:02 +0000 (11:19 +0100)]
SD_task_dependency_add(): remove unused parameters 'name' and 'data'.

6 years agoUse C11's atomic_flag.
Arnaud Giersch [Wed, 7 Mar 2018 17:17:23 +0000 (18:17 +0100)]
Use C11's atomic_flag.

6 years agotuto-msg: we need std=gnu99 to compile this on travis
Martin Quinson [Thu, 8 Mar 2018 20:34:47 +0000 (21:34 +0100)]
tuto-msg: we need std=gnu99 to compile this on travis

6 years agoproperly test the MSG tutorial (sorry for previous commit, wasn't supposed to be...
Martin Quinson [Thu, 8 Mar 2018 17:03:29 +0000 (18:03 +0100)]
properly test the MSG tutorial (sorry for previous commit, wasn't supposed to be pushed yet)

6 years agograin of salt in the msg tutorial (MSG is deprecated ya know)
Martin Quinson [Thu, 8 Mar 2018 17:03:05 +0000 (18:03 +0100)]
grain of salt in the msg tutorial (MSG is deprecated ya know)

6 years agoDocument recent documentation improvements
Martin Quinson [Thu, 8 Mar 2018 16:02:58 +0000 (17:02 +0100)]
Document recent documentation improvements

6 years agocompletely revamp the MSG tutorial
Martin Quinson [Thu, 8 Mar 2018 16:01:32 +0000 (17:01 +0100)]
completely revamp the MSG tutorial

I should have converted this to S4U while I was at it, I know.

6 years agorename the graphical toc's file, and include it in dist
Martin Quinson [Wed, 7 Mar 2018 23:45:49 +0000 (00:45 +0100)]
rename the graphical toc's file, and include it in dist

6 years ago...
degomme [Wed, 7 Mar 2018 15:36:06 +0000 (16:36 +0100)]
...

6 years agomore SMPI troubleshooting
Martin Quinson [Wed, 7 Mar 2018 11:01:59 +0000 (12:01 +0100)]
more SMPI troubleshooting

6 years agoset status even when sendrecv is skipped (same process)
degomme [Wed, 7 Mar 2018 12:49:02 +0000 (13:49 +0100)]
set status even when sendrecv is skipped (same process)

6 years agoRevert "try harder to get useconds_t from unistd.h"
Martin Quinson [Wed, 7 Mar 2018 10:23:44 +0000 (11:23 +0100)]
Revert "try harder to get useconds_t from unistd.h"

This reverts commit 99a8c679fb71cf12be9f2f4ca26f0be47222330e.

Stupid me.

6 years agotry harder to get useconds_t from unistd.h
Martin Quinson [Wed, 7 Mar 2018 10:19:08 +0000 (11:19 +0100)]
try harder to get useconds_t from unistd.h

6 years agomore informative error message
Martin Quinson [Wed, 7 Mar 2018 09:55:23 +0000 (10:55 +0100)]
more informative error message

6 years agotesh: correctly escape special characters in regexps.
Arnaud Giersch [Wed, 7 Mar 2018 08:43:38 +0000 (09:43 +0100)]
tesh: correctly escape special characters in regexps.

6 years agoCosmetics: reduce string duplication (sonar).
Arnaud Giersch [Tue, 6 Mar 2018 11:17:21 +0000 (12:17 +0100)]
Cosmetics: reduce string duplication (sonar).

6 years agoRemove unused typedefs.
Arnaud Giersch [Mon, 5 Mar 2018 15:23:53 +0000 (16:23 +0100)]
Remove unused typedefs.

6 years agoMove forward declaration in simgrid/forward.h.
Arnaud Giersch [Mon, 5 Mar 2018 15:08:29 +0000 (16:08 +0100)]
Move forward declaration in simgrid/forward.h.

6 years agoAdd debug message.
Arnaud Giersch [Mon, 5 Mar 2018 14:35:43 +0000 (15:35 +0100)]
Add debug message.

6 years agoUse C++ new/delete.
Arnaud Giersch [Mon, 5 Mar 2018 14:18:55 +0000 (15:18 +0100)]
Use C++ new/delete.

6 years agoalso let the SMPI_PRETEND_CC trick work with dlopen interception
Martin Quinson [Wed, 7 Mar 2018 00:51:30 +0000 (01:51 +0100)]
also let the SMPI_PRETEND_CC trick work with dlopen interception

6 years agomore explicit error message
Martin Quinson [Wed, 7 Mar 2018 00:36:53 +0000 (01:36 +0100)]
more explicit error message

6 years agotesh: ignore messages of ctx factories being changed on exotic platforms
Martin Quinson [Wed, 7 Mar 2018 00:14:34 +0000 (01:14 +0100)]
tesh: ignore messages of ctx factories being changed on exotic platforms

6 years agorererereactivate privatization by default on smpi
Augustin Degomme [Tue, 6 Mar 2018 23:16:10 +0000 (00:16 +0100)]
rererereactivate privatization by default on smpi

6 years agotravis: the new way of installing python on travis
Martin Quinson [Tue, 6 Mar 2018 18:58:06 +0000 (19:58 +0100)]
travis: the new way of installing python on travis

6 years agosonar don't like comments ending with ';'
Martin Quinson [Tue, 6 Mar 2018 17:06:17 +0000 (18:06 +0100)]
sonar don't like comments ending with ';'

6 years agons3: inline a header file
Martin Quinson [Mon, 5 Mar 2018 22:01:16 +0000 (23:01 +0100)]
ns3: inline a header file

6 years agons3: kill dead prototypes
Martin Quinson [Mon, 5 Mar 2018 21:49:31 +0000 (22:49 +0100)]
ns3: kill dead prototypes

6 years agons3: cleanups in the headers
Martin Quinson [Mon, 5 Mar 2018 21:47:14 +0000 (22:47 +0100)]
ns3: cleanups in the headers

6 years agons3: inline a function
Martin Quinson [Mon, 5 Mar 2018 21:21:22 +0000 (22:21 +0100)]
ns3: inline a function

6 years agowoops, stupid ugly typo
Martin Quinson [Fri, 23 Feb 2018 20:51:09 +0000 (21:51 +0100)]
woops, stupid ugly typo

6 years agoreplace msg_io by a C sg_* interface to S4U
Frederic Suter [Fri, 2 Mar 2018 10:33:55 +0000 (11:33 +0100)]
replace msg_io by a C sg_* interface to S4U

6 years agomove VMs in the S4U realm for good
Frederic Suter [Fri, 2 Mar 2018 08:39:33 +0000 (09:39 +0100)]
move VMs in the S4U realm for good

the headers in msg.h should be moved to include/simgrid/vm.h soon

6 years ago[DVFS] Change pstate selection for conservative gov
Christian Heinrich [Wed, 28 Feb 2018 16:21:01 +0000 (17:21 +0100)]
[DVFS] Change pstate selection for conservative gov

6 years ago[DVFS] Use sg_host_get_avg_load() & reset the load
Christian Heinrich [Wed, 28 Feb 2018 15:09:08 +0000 (16:09 +0100)]
[DVFS] Use sg_host_get_avg_load() & reset the load

6 years ago[DVFS] Add class documentation
Christian Heinrich [Wed, 28 Feb 2018 14:53:22 +0000 (15:53 +0100)]
[DVFS] Add class documentation

6 years ago[EXAMPLES] Make the HostLoad example more difficult
Christian Heinrich [Mon, 26 Feb 2018 15:54:44 +0000 (16:54 +0100)]
[EXAMPLES] Make the HostLoad example more difficult

This test now contains more intricate scenarios:
- Change the speed of a host while a computation is running
- Verify that the average load is correctly computed

6 years ago[DVFS] Update HostDvfs class documentation
Christian Heinrich [Fri, 23 Feb 2018 13:41:32 +0000 (14:41 +0100)]
[DVFS] Update HostDvfs class documentation

6 years ago[SMPI] Use Actor->getHost() instead of Actor->getImpl()->host
Christian Heinrich [Tue, 20 Feb 2018 17:14:00 +0000 (18:14 +0100)]
[SMPI] Use Actor->getHost() instead of Actor->getImpl()->host

6 years ago[TOOLS] Call-Location Tracing: Add more macros for Fortran
Christian Heinrich [Tue, 20 Feb 2018 17:07:32 +0000 (18:07 +0100)]
[TOOLS] Call-Location Tracing: Add more macros for Fortran

While LU uses MPI calls in all upper case, EP uses
them in all lower case. This means that the current definitions
were not enough to trace both EP and LU. This patch changes that.
The ucfirst call is necessary since otherwise, a recursion might
break compilation.

6 years ago[DVFS] Fix getAverageLoad(): Use theor_max_flops
Christian Heinrich [Thu, 15 Feb 2018 14:15:48 +0000 (15:15 +0100)]
[DVFS] Fix getAverageLoad(): Use theor_max_flops

6 years ago[DVFS] Fix reset() and getCurrentLoad()
Christian Heinrich [Thu, 15 Feb 2018 14:14:51 +0000 (15:14 +0100)]
[DVFS] Fix reset() and getCurrentLoad()

6 years ago[DVFS] Fix the update() method.
Christian Heinrich [Thu, 15 Feb 2018 14:14:00 +0000 (15:14 +0100)]
[DVFS] Fix the update() method.

The update() will be called AFTER a pstate has already
been changed; this implies that we need to keep track
of what pstate was active before the change in order to
update the flops already computed correctly.

6 years ago[DVFS] Add function sg_host_get_avg_load(host)
Christian Heinrich [Thu, 15 Feb 2018 14:09:37 +0000 (15:09 +0100)]
[DVFS] Add function sg_host_get_avg_load(host)

6 years ago[DVFS] Add function sg_host_get_idle_time(host)
Christian Heinrich [Thu, 15 Feb 2018 14:08:19 +0000 (15:08 +0100)]
[DVFS] Add function sg_host_get_idle_time(host)

6 years ago[DVFS] Add several new member vars for new features
Christian Heinrich [Thu, 15 Feb 2018 14:10:38 +0000 (15:10 +0100)]
[DVFS] Add several new member vars for new features

6 years ago[DVFS] Move config names to a const variable
Christian Heinrich [Wed, 14 Feb 2018 13:46:42 +0000 (14:46 +0100)]
[DVFS] Move config names to a const variable

6 years agoMerge branch 'master' of git+ssh://scm.gforge.inria.fr//gitroot/simgrid/simgrid
Frederic Suter [Wed, 28 Feb 2018 17:17:19 +0000 (18:17 +0100)]
Merge branch 'master' of git+ssh://scm.gforge.inria.fr//gitroot/simgrid/simgrid

6 years agoextend the example with another type of Zone
Frederic Suter [Wed, 28 Feb 2018 17:16:17 +0000 (18:16 +0100)]
extend the example with another type of Zone
If the cluster is a dragonfly, display the coordinates for each host

6 years agoPlease scan-build.
Arnaud Giersch [Wed, 28 Feb 2018 16:36:28 +0000 (17:36 +0100)]
Please scan-build.

6 years agoFix memory leaks.
Arnaud Giersch [Tue, 27 Feb 2018 09:37:08 +0000 (10:37 +0100)]
Fix memory leaks.

6 years agomake the getNetzoneByType usable and tested
Frederic Suter [Wed, 28 Feb 2018 16:07:11 +0000 (17:07 +0100)]
make the getNetzoneByType usable and tested

6 years ago[code] allow s4u::Mailbox::setReceiver(nullptr)
Millian Poquet [Tue, 27 Feb 2018 12:56:24 +0000 (13:56 +0100)]
[code] allow s4u::Mailbox::setReceiver(nullptr)

6 years agosince update, flang is now identified as flang by cmake, and not pgi anymore
Augustin Degomme [Sat, 24 Feb 2018 10:15:01 +0000 (11:15 +0100)]
since update, flang is now identified as flang by cmake, and not pgi anymore

6 years agoattempt of a function searching all zones of a given type
Martin Quinson [Fri, 23 Feb 2018 20:45:29 +0000 (21:45 +0100)]
attempt of a function searching all zones of a given type

This is related to #253, but it's probably not sufficient. We'd need
an example of use, at least. I'm just pushing to make it public.

6 years agoMerge branch 'master' of git+ssh://scm.gforge.inria.fr//gitroot/simgrid/simgrid
Frederic Suter [Fri, 23 Feb 2018 20:44:23 +0000 (21:44 +0100)]
Merge branch 'master' of git+ssh://scm.gforge.inria.fr//gitroot/simgrid/simgrid

6 years agoCheck for negative size (and please scan-build).
Arnaud Giersch [Wed, 14 Feb 2018 16:42:08 +0000 (17:42 +0100)]
Check for negative size (and please scan-build).

6 years agoRename two more files in msg/app-bittorrent/.
Arnaud Giersch [Tue, 13 Feb 2018 16:28:02 +0000 (17:28 +0100)]
Rename two more files in msg/app-bittorrent/.

6 years ago[tesh] pgid func fail: catch * -> catch OSError
Millian Poquet [Thu, 22 Feb 2018 15:44:24 +0000 (16:44 +0100)]
[tesh] pgid func fail: catch * -> catch OSError

6 years ago[tesh] DO_NOT_CLEAN_SUBPROCESSES constant -> None
Millian Poquet [Thu, 22 Feb 2018 15:43:00 +0000 (16:43 +0100)]
[tesh] DO_NOT_CLEAN_SUBPROCESSES constant -> None

6 years ago[tesh] psychorigid try/except to avoid vexing bsd
Millian Poquet [Thu, 22 Feb 2018 15:10:20 +0000 (16:10 +0100)]
[tesh] psychorigid try/except to avoid vexing bsd

6 years agoMore on the graphical documentation TOC and use it
Martin Quinson [Wed, 21 Feb 2018 22:19:30 +0000 (23:19 +0100)]
More on the graphical documentation TOC and use it

Thanks Fred for the feedback

6 years agoMerge branch 'master' of scm.gforge.inria.fr:/gitroot/simgrid/simgrid
Martin Quinson [Wed, 21 Feb 2018 22:04:42 +0000 (23:04 +0100)]
Merge branch 'master' of scm.gforge.inria.fr:/gitroot/simgrid/simgrid

6 years agobetter separation between APIs and application domains
Martin Quinson [Wed, 21 Feb 2018 22:04:36 +0000 (23:04 +0100)]
better separation between APIs and application domains

6 years agoMerge branch 'master' of git+ssh://scm.gforge.inria.fr//gitroot/simgrid/simgrid
Frederic Suter [Wed, 21 Feb 2018 17:42:19 +0000 (18:42 +0100)]
Merge branch 'master' of git+ssh://scm.gforge.inria.fr//gitroot/simgrid/simgrid

6 years ago[examples] add s4u-actor-kill-pid example
Millian Poquet [Wed, 21 Feb 2018 17:00:22 +0000 (18:00 +0100)]
[examples] add s4u-actor-kill-pid example

This example is very similar to s4u-actor-kill, but tests
the static s4u::Actor::kill(aid_t) method instead of
s4u::Actor::kill(void).

6 years ago[tesh] cleanup on SIGINT and SIGTERM
Millian Poquet [Wed, 21 Feb 2018 16:12:39 +0000 (17:12 +0100)]
[tesh] cleanup on SIGINT and SIGTERM

6 years ago[tesh] cleanup: SIGKILL -> SIGTERM
Millian Poquet [Mon, 19 Feb 2018 12:39:43 +0000 (13:39 +0100)]
[tesh] cleanup: SIGKILL -> SIGTERM

6 years agoextra check on actions
Frederic Suter [Tue, 20 Feb 2018 21:20:33 +0000 (22:20 +0100)]
extra check on actions

if another model than ptaskL07 is used, it appears that some actions
are seen that are not attached to tasks. skipped them, simdag does
nothing with it.

6 years agocosmetics
Frederic Suter [Tue, 20 Feb 2018 20:59:09 +0000 (21:59 +0100)]
cosmetics

6 years agoNew attempt of a project's big picture
Martin Quinson [Tue, 20 Feb 2018 20:14:22 +0000 (21:14 +0100)]
New attempt of a project's big picture

6 years agofix Javadoc
Frederic Suter [Tue, 20 Feb 2018 19:57:05 +0000 (20:57 +0100)]
fix Javadoc
prevented lib_in_jar build

6 years ago[tesh] kill process -> kill whole process group
Millian Poquet [Mon, 19 Feb 2018 10:52:25 +0000 (11:52 +0100)]
[tesh] kill process -> kill whole process group

If the command launched by tesh executes some subprocesses
(which are not cleaned by the root process on SIGKILL)
the previous code let such subprocesses in a running state.

Now the root process is launched into a new session (man setsid)
and the whole session is killed by tesh. All subprocess should be killed
as long as the session is not changed in the process tree.

Traversing the process tree could also be done, but it may require
additional dependencies (i.e., psutil).

6 years agosonar don't like fields nor parameters ending with a _, so don't do it
Martin Quinson [Sun, 18 Feb 2018 16:45:33 +0000 (17:45 +0100)]
sonar don't like fields nor parameters ending with a _, so don't do it

Plus, inform sonar that SimGrid 3.18 was released since a while

6 years agoActivate NS3 builds when it's installed through debian
Martin Quinson [Sun, 18 Feb 2018 15:43:02 +0000 (16:43 +0100)]
Activate NS3 builds when it's installed through debian

But don't do it on MC builds

6 years agodo not mix the enums (good catch, sonar)
Martin Quinson [Sun, 18 Feb 2018 15:10:21 +0000 (16:10 +0100)]
do not mix the enums (good catch, sonar)

6 years agosonar prefers dupplicated code to missing breaks
Martin Quinson [Sun, 18 Feb 2018 14:53:04 +0000 (15:53 +0100)]
sonar prefers dupplicated code to missing breaks

And clangs agrees on this one.

6 years agofinish the s/FULLDUPLEX/SPLITDUPLEX/
Martin Quinson [Sun, 18 Feb 2018 12:07:34 +0000 (13:07 +0100)]
finish the s/FULLDUPLEX/SPLITDUPLEX/

6 years agos/FULLDUPLEX/SPLITDUPLEX/ in the documentation
Martin Quinson [Sun, 18 Feb 2018 10:51:40 +0000 (11:51 +0100)]
s/FULLDUPLEX/SPLITDUPLEX/ in the documentation

6 years agohte doc should not speak of AS anymore
Martin Quinson [Fri, 16 Feb 2018 23:27:06 +0000 (00:27 +0100)]
hte doc should not speak of AS anymore

6 years agos/fullduplex/splitduplex/ in platform parsing (backward compatible, with a warning)
Martin Quinson [Fri, 16 Feb 2018 22:52:47 +0000 (23:52 +0100)]
s/fullduplex/splitduplex/ in platform parsing (backward compatible, with a warning)

6 years agouse SPLITDUPLEX internally instead of FULLDUPLEX
Martin Quinson [Fri, 16 Feb 2018 20:50:47 +0000 (21:50 +0100)]
use SPLITDUPLEX internally instead of FULLDUPLEX

We will s/FULLDUPLEX/SPLITDUPLEX/ everywhere in SimGrid. Rational:

That sharing mode is modeled by spliting every link between two links:
one uplink used when traversing the link in a direction, and the
downlink when we traverse the same link in the other direction.

With SHARED links, the bandwidth is shared between all flows without
taking the flow direction into account.

So, SPLITDUPLEX is the way we model fullduplex links, but at the end,
each of the SimGrid link in a SPLITDUPLEX (either the up or down link)
can be used in one direction only. That's the right model, but using
FULLDUPLEX for the situation where you have 2 links was rather
disturbing.

And yes, users will soon notice, when they will try to use network
energy models.

6 years agoRevert "switch default smpi privatization to mmap, as tsan is now allergic to RTLD_DE...
Augustin Degomme [Fri, 16 Feb 2018 23:12:49 +0000 (00:12 +0100)]
Revert "switch default smpi privatization to mmap, as tsan is now allergic to RTLD_DEEPBIND"

This reverts commit c42ed4092ce78e88b5de1a4623c19d3d9d912d3d.

6 years agosonar: don't mask fields with parameters in Java
Martin Quinson [Fri, 16 Feb 2018 12:56:29 +0000 (13:56 +0100)]
sonar: don't mask fields with parameters in Java

6 years agosonar: dont escape LF in string literals
Martin Quinson [Fri, 16 Feb 2018 12:36:51 +0000 (13:36 +0100)]
sonar: dont escape LF in string literals

6 years agosonar: don't use auto for pointers, but auto*
Martin Quinson [Fri, 16 Feb 2018 12:33:44 +0000 (13:33 +0100)]
sonar: don't use auto for pointers, but auto*

6 years agodon't use deepbind in cases it's not needed (I think)
degomme [Fri, 16 Feb 2018 10:00:00 +0000 (11:00 +0100)]
don't use deepbind in cases it's not needed (I think)

6 years agoswitch default smpi privatization to mmap, as tsan is now allergic to RTLD_DEEPBIND
degomme [Fri, 16 Feb 2018 09:01:47 +0000 (10:01 +0100)]
switch default smpi privatization to mmap, as tsan is now allergic to RTLD_DEEPBIND
This should not work for the -dlopen tests, but it should be better

6 years agowoops, bash typo
Martin Quinson [Fri, 16 Feb 2018 06:57:23 +0000 (07:57 +0100)]
woops, bash typo

And cleanup before installation

6 years agoplease MC builds, don't install your stuff
Martin Quinson [Wed, 14 Feb 2018 22:48:07 +0000 (23:48 +0100)]
please MC builds, don't install your stuff

6 years agotry to reduce the amount of warnings in StarPU compilation
Martin Quinson [Wed, 14 Feb 2018 19:23:01 +0000 (20:23 +0100)]
try to reduce the amount of warnings in StarPU compilation

6 years ago[DVFS] Clean up the mess I made before; move to unique_ptr
Christian Heinrich [Wed, 14 Feb 2018 10:35:08 +0000 (11:35 +0100)]
[DVFS] Clean up the mess I made before; move to unique_ptr

6 years ago[DVFS] Move plugin::HostDvfs to plugin::dvfs::HostDvfs
Christian Heinrich [Tue, 13 Feb 2018 16:30:59 +0000 (17:30 +0100)]
[DVFS] Move plugin::HostDvfs to plugin::dvfs::HostDvfs