Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
simgrid.git
6 years agoRemove feature: reset PID on killall()
Martin Quinson [Mon, 12 Mar 2018 23:13:08 +0000 (00:13 +0100)]
Remove feature: reset PID on killall()

reseting PID was a very bad idea since we don't check on creation
whether a PID is already given. This was resulting in several
actors having the same PID.

This, with the previous commit, (fix #254), that was actually a team of
2 different bugs working together.

6 years agoallow one actor to kill another actor by PID
Martin Quinson [Mon, 12 Mar 2018 23:10:44 +0000 (00:10 +0100)]
allow one actor to kill another actor by PID

6 years agoReduce the scope of a variable to please codacy
Martin Quinson [Mon, 12 Mar 2018 21:58:40 +0000 (22:58 +0100)]
Reduce the scope of a variable to please codacy

even if it's totally pointless in this case.

6 years agokill an unused internal function
Martin Quinson [Mon, 12 Mar 2018 21:56:39 +0000 (22:56 +0100)]
kill an unused internal function

6 years agotravis: clang does not fail on travis anymore (but do we need it?)
Martin Quinson [Mon, 12 Mar 2018 20:07:05 +0000 (21:07 +0100)]
travis: clang does not fail on travis anymore (but do we need it?)

6 years agomake sure that devel version is not mixed up with next stable version
Martin Quinson [Mon, 12 Mar 2018 13:07:51 +0000 (14:07 +0100)]
make sure that devel version is not mixed up with next stable version

6 years agotuto-msg: fix parallel execution.
Arnaud Giersch [Mon, 12 Mar 2018 11:09:44 +0000 (12:09 +0100)]
tuto-msg: fix parallel execution.

6 years agotuto-msg: build examples in build dir.
Arnaud Giersch [Mon, 12 Mar 2018 09:04:33 +0000 (10:04 +0100)]
tuto-msg: build examples in build dir.

6 years agoMake field private.
Arnaud Giersch [Mon, 12 Mar 2018 08:37:30 +0000 (09:37 +0100)]
Make field private.

6 years agoUpdate .gitignore.
Arnaud Giersch [Mon, 12 Mar 2018 07:29:27 +0000 (08:29 +0100)]
Update .gitignore.

6 years agoRevert "disable dlopen when under sanitizers"
Martin Quinson [Mon, 12 Mar 2018 07:36:36 +0000 (08:36 +0100)]
Revert "disable dlopen when under sanitizers"

This reverts commit 4e2035d7b4730d535ebd7619c4e85878f71f8cb2.

6 years agodisable dlopen when under sanitizers
Martin Quinson [Mon, 12 Mar 2018 01:46:26 +0000 (02:46 +0100)]
disable dlopen when under sanitizers

6 years agosmpi/privatization is not the concern of smx_context
Martin Quinson [Mon, 12 Mar 2018 01:27:15 +0000 (02:27 +0100)]
smpi/privatization is not the concern of smx_context

6 years agotuto-msg: don't test under memcheck or sanitizer
Martin Quinson [Mon, 12 Mar 2018 01:18:38 +0000 (02:18 +0100)]
tuto-msg: don't test under memcheck or sanitizer

6 years agos/\$^/$</
Arnaud Giersch [Sun, 11 Mar 2018 22:45:19 +0000 (23:45 +0100)]
s/\$^/$</

6 years agotuto-msg: use old-fashioned suffix rules in Makefile.
Arnaud Giersch [Sun, 11 Mar 2018 21:24:28 +0000 (22:24 +0100)]
tuto-msg: use old-fashioned suffix rules in Makefile.

Try to be compatible with freebsd's make.

6 years agoFix spurious const_cast.
Arnaud Giersch [Sun, 11 Mar 2018 20:58:53 +0000 (21:58 +0100)]
Fix spurious const_cast.

6 years agotuto-msg: fix compile options, and let sol4.c compile
Martin Quinson [Sun, 11 Mar 2018 21:31:04 +0000 (22:31 +0100)]
tuto-msg: fix compile options, and let sol4.c compile

6 years agotuto-msg: make clean before test
Martin Quinson [Sun, 11 Mar 2018 21:30:38 +0000 (22:30 +0100)]
tuto-msg: make clean before test

6 years agoalso change the namespace of kernel/resource/{Action,Model}
Martin Quinson [Sun, 11 Mar 2018 20:30:33 +0000 (21:30 +0100)]
also change the namespace of kernel/resource/{Action,Model}

6 years agofurther split the kernel/resource module in separate files
Martin Quinson [Sun, 11 Mar 2018 18:43:24 +0000 (19:43 +0100)]
further split the kernel/resource module in separate files

6 years agomove files in k/resources/ accordingly to their namespace
Martin Quinson [Sun, 11 Mar 2018 17:47:27 +0000 (18:47 +0100)]
move files in k/resources/ accordingly to their namespace

6 years agorename simgrid::kernel::model into simgrid::kernel::resource
Martin Quinson [Sun, 11 Mar 2018 12:09:06 +0000 (13:09 +0100)]
rename simgrid::kernel::model into simgrid::kernel::resource

6 years agotuto makefile: typo
Martin Quinson [Sun, 11 Mar 2018 10:41:10 +0000 (11:41 +0100)]
tuto makefile: typo

6 years agoconsistency between Action::ActionLmmList and Action::ActionList
Martin Quinson [Sat, 10 Mar 2018 17:30:12 +0000 (18:30 +0100)]
consistency between Action::ActionLmmList and Action::ActionList

6 years agocosmetics: rename some fields and methods in surf::Action
Martin Quinson [Sat, 10 Mar 2018 17:11:03 +0000 (18:11 +0100)]
cosmetics: rename some fields and methods in surf::Action

6 years agomove the definition of resource's Metric as an inner class
Martin Quinson [Sat, 10 Mar 2018 16:57:37 +0000 (17:57 +0100)]
move the definition of resource's Metric as an inner class

6 years agofix make distcheck with documentation
Martin Quinson [Sat, 10 Mar 2018 16:39:03 +0000 (17:39 +0100)]
fix make distcheck with documentation

6 years agoCut k/m/Resource.[ch] to its own files
Martin Quinson [Sat, 10 Mar 2018 16:36:49 +0000 (17:36 +0100)]
Cut k/m/Resource.[ch] to its own files

6 years agospeed the tests a bit: no need to test MSG with all factories
Martin Quinson [Sat, 10 Mar 2018 13:46:03 +0000 (14:46 +0100)]
speed the tests a bit: no need to test MSG with all factories

6 years agochange simgrid::surf::Resource into simgrid::kernel::model::Resource
Martin Quinson [Sat, 10 Mar 2018 13:44:34 +0000 (14:44 +0100)]
change simgrid::surf::Resource into simgrid::kernel::model::Resource

6 years agoguess what? tuto-msg broke on linux when I fixed freebsd
Martin Quinson [Sat, 10 Mar 2018 12:33:36 +0000 (13:33 +0100)]
guess what? tuto-msg broke on linux when I fixed freebsd

6 years agotesting tuto: fix for freebsd make version
Martin Quinson [Sat, 10 Mar 2018 10:06:18 +0000 (11:06 +0100)]
testing tuto: fix for freebsd make version

6 years agokill some internal C type aliases
Martin Quinson [Sat, 10 Mar 2018 10:03:48 +0000 (11:03 +0100)]
kill some internal C type aliases

6 years agoforbid an incomplete and unused constructor
Martin Quinson [Sat, 10 Mar 2018 02:45:56 +0000 (03:45 +0100)]
forbid an incomplete and unused constructor

6 years agokill the useless simgrid::surf::surfExitCallbacks callback
Martin Quinson [Sat, 10 Mar 2018 02:37:49 +0000 (03:37 +0100)]
kill the useless simgrid::surf::surfExitCallbacks callback

6 years agouse an enum class for surf::Action type
Martin Quinson [Sat, 10 Mar 2018 02:23:09 +0000 (03:23 +0100)]
use an enum class for surf::Action type

6 years agoallow external models (eg, FMI) to also provide events
Martin Quinson [Sat, 10 Mar 2018 02:12:22 +0000 (03:12 +0100)]
allow external models (eg, FMI) to also provide events

6 years agotypo, bummer
Martin Quinson [Sat, 10 Mar 2018 01:51:59 +0000 (02:51 +0100)]
typo, bummer

6 years agotuto-test: fix out-of-tree linking
Martin Quinson [Sat, 10 Mar 2018 01:13:57 +0000 (02:13 +0100)]
tuto-test: fix out-of-tree linking

6 years agotuto-msg tests: fix out of tree builds
Martin Quinson [Fri, 9 Mar 2018 22:13:14 +0000 (23:13 +0100)]
tuto-msg tests: fix out of tree builds

6 years agostill trying to test the tuto
Martin Quinson [Fri, 9 Mar 2018 21:21:52 +0000 (22:21 +0100)]
still trying to test the tuto

This time, instead of trying to use the installed version of Jenkins,
I try to fix the provided Makefile so that it works without installing.

6 years agoyet another attempt at testing the tuto on jenkins
Martin Quinson [Fri, 9 Mar 2018 19:36:06 +0000 (20:36 +0100)]
yet another attempt at testing the tuto on jenkins

6 years agocosmetics: rename a function, deprecate old name
Martin Quinson [Fri, 9 Mar 2018 16:23:51 +0000 (17:23 +0100)]
cosmetics: rename a function, deprecate old name

6 years agotuto tests: fix out of tree, don't try to do when the compiler is not gcc
Martin Quinson [Fri, 9 Mar 2018 16:03:06 +0000 (17:03 +0100)]
tuto tests: fix out of tree, don't try to do when the compiler is not gcc

6 years agoAlso simplify the API of Engine::getLinkList
Martin Quinson [Fri, 9 Mar 2018 15:39:20 +0000 (16:39 +0100)]
Also simplify the API of Engine::getLinkList

6 years agoprovide a simpler API of Engine::getHostList (returning the structure) and use it
Martin Quinson [Fri, 9 Mar 2018 15:28:56 +0000 (16:28 +0100)]
provide a simpler API of Engine::getHostList (returning the structure) and use it

6 years agostop using sg_host_list() from C++, and improve its implementation
Martin Quinson [Fri, 9 Mar 2018 14:37:11 +0000 (15:37 +0100)]
stop using sg_host_list() from C++, and improve its implementation

6 years agofix the tests of tuto-msg
Martin Quinson [Fri, 9 Mar 2018 14:15:32 +0000 (15:15 +0100)]
fix the tests of tuto-msg

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)