Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
simgrid.git
7 years agodon't sort the output of the flatifier, it makes debugging much harder
Martin Quinson [Fri, 4 Nov 2016 11:34:52 +0000 (12:34 +0100)]
don't sort the output of the flatifier, it makes debugging much harder

7 years agoclang complains about these seemingly unecessary std::move.
degomme [Fri, 4 Nov 2016 13:55:59 +0000 (14:55 +0100)]
clang complains about these seemingly unecessary std::move.

7 years agoMake simgrid::mc::HeapLocation instanciation C++11 compliant
Matthieu Volat [Fri, 4 Nov 2016 10:18:55 +0000 (11:18 +0100)]
Make simgrid::mc::HeapLocation instanciation C++11 compliant

simgrid::mc::HeapLocation is a typedef of std:array which require use
of double brace to declare subobjects.

7 years agoMerge branch 'master' of git+ssh://scm.gforge.inria.fr/gitroot/simgrid/simgrid
degomme [Fri, 4 Nov 2016 11:28:56 +0000 (12:28 +0100)]
Merge branch 'master' of git+ssh://scm.gforge.inria.fr/gitroot/simgrid/simgrid

7 years agofix NS3
Martin Quinson [Fri, 4 Nov 2016 09:39:06 +0000 (10:39 +0100)]
fix NS3

7 years agounPERLifies a bit the routing: use the object, not its name
Martin Quinson [Thu, 3 Nov 2016 21:49:17 +0000 (22:49 +0100)]
unPERLifies a bit the routing: use the object, not its name

7 years agoless char*, more std::string
Martin Quinson [Thu, 3 Nov 2016 21:34:56 +0000 (22:34 +0100)]
less char*, more std::string

7 years agoreplace multiples allocs by one.
degomme [Thu, 3 Nov 2016 14:09:33 +0000 (15:09 +0100)]
replace multiples allocs by one.

7 years agoSMPI tracing : match links with sender/receiver + tag, as in MPI, as messages could...
degomme [Thu, 3 Nov 2016 11:01:15 +0000 (12:01 +0100)]
SMPI tracing : match links with sender/receiver + tag, as in MPI, as messages could be mixed up

7 years agooops
degomme [Wed, 2 Nov 2016 15:07:56 +0000 (16:07 +0100)]
oops

7 years agoThe sed version used on macos doesn't like the I flag..
degomme [Wed, 2 Nov 2016 14:38:53 +0000 (15:38 +0100)]
The sed version used on macos doesn't like the I flag..
So let's turn normal ugly regexpes into plainly awful ones.

7 years agoUse the libunwind from apple directly
degomme [Wed, 2 Nov 2016 14:31:09 +0000 (15:31 +0100)]
Use the libunwind from apple directly

7 years agoRevert "Fix MC builds after my fix for Mac OSX around libunwind :-("
degomme [Wed, 2 Nov 2016 13:40:00 +0000 (14:40 +0100)]
Revert "Fix MC builds after my fix for Mac OSX around libunwind :-("

This reverts commit 182a4405d85c87f52db5fcd8eaf8b04d3b27a3c8.

7 years agoRevert "cmake: better log message to get more useful information"
degomme [Wed, 2 Nov 2016 13:39:37 +0000 (14:39 +0100)]
Revert "cmake: better log message to get more useful information"

This reverts commit 438bc4767b28f0113c8f64d9d46ed4417988b6f7.

7 years agoRevert "fix MC on 32bits about libunwind"
degomme [Wed, 2 Nov 2016 13:39:34 +0000 (14:39 +0100)]
Revert "fix MC on 32bits about libunwind"

This reverts commit b1369e636e06e5ea1547c38b554fcb17ad7ca81a.

7 years agoRevert "libunwind 32bits: don't search the lib in itself but in its directory"
degomme [Wed, 2 Nov 2016 13:39:31 +0000 (14:39 +0100)]
Revert "libunwind 32bits: don't search the lib in itself but in its directory"

This reverts commit 103a2ff1188a796989e4ce99fec49f5744194b23.

7 years agolibunwind 32bits: don't search the lib in itself but in its directory
Martin Quinson [Tue, 1 Nov 2016 21:10:45 +0000 (22:10 +0100)]
libunwind 32bits: don't search the lib in itself but in its directory

7 years agofix MC on 32bits about libunwind
Martin Quinson [Tue, 1 Nov 2016 20:55:56 +0000 (21:55 +0100)]
fix MC on 32bits about libunwind

7 years agocmake: better log message to get more useful information
Martin Quinson [Tue, 1 Nov 2016 20:19:11 +0000 (21:19 +0100)]
cmake: better log message to get more useful information

7 years agoFix MC builds after my fix for Mac OSX around libunwind :-(
Martin Quinson [Tue, 1 Nov 2016 20:09:44 +0000 (21:09 +0100)]
Fix MC builds after my fix for Mac OSX around libunwind :-(

7 years agouse std:: instead of fixed size vectors. C is over.
Martin Quinson [Tue, 1 Nov 2016 19:48:26 +0000 (20:48 +0100)]
use std:: instead of fixed size vectors. C is over.

7 years agoanother try to fix mac OSX (libunwind is not the one we think there)
Martin Quinson [Tue, 1 Nov 2016 19:38:55 +0000 (20:38 +0100)]
another try to fix mac OSX (libunwind is not the one we think there)

7 years agoMerge branch 'master' of scm.gforge.inria.fr:/gitroot/simgrid/simgrid
Martin Quinson [Tue, 1 Nov 2016 18:27:12 +0000 (19:27 +0100)]
Merge branch 'master' of scm.gforge.inria.fr:/gitroot/simgrid/simgrid

7 years agorouting: cosmetics and doc improvement
Martin Quinson [Tue, 1 Nov 2016 18:13:36 +0000 (19:13 +0100)]
routing: cosmetics and doc improvement

7 years agoimprove the doc of the routing API
Martin Quinson [Tue, 1 Nov 2016 14:49:40 +0000 (15:49 +0100)]
improve the doc of the routing API

7 years agocosmetics in bypass routing
Martin Quinson [Tue, 1 Nov 2016 14:28:08 +0000 (15:28 +0100)]
cosmetics in bypass routing

7 years agocosmetics
Martin Quinson [Tue, 1 Nov 2016 14:05:59 +0000 (15:05 +0100)]
cosmetics

7 years agoUse BYTE_ORDER macro, not private __BYTE_ORDER
Matthieu Volat [Tue, 1 Nov 2016 07:43:22 +0000 (08:43 +0100)]
Use BYTE_ORDER macro, not private __BYTE_ORDER

7 years agoMADV_MERGEABLE is available on linux, guard it.
Matthieu Volat [Tue, 1 Nov 2016 07:24:14 +0000 (08:24 +0100)]
MADV_MERGEABLE is available on linux, guard it.

7 years agoUse MAP_PREFAULT_READ on FreeBSD as en equivalent to MAP_POPULATE.
Matthieu Volat [Mon, 31 Oct 2016 18:03:55 +0000 (19:03 +0100)]
Use MAP_PREFAULT_READ on FreeBSD as en equivalent to MAP_POPULATE.

7 years agoAdd -Wno-extern-c-compat when building with clang
Matthieu Volat [Mon, 31 Oct 2016 16:49:45 +0000 (17:49 +0100)]
Add -Wno-extern-c-compat when building with clang

Else it triggers an warning due to libunwind.h using empty C structures that
are turned into an error by -Werror.

7 years agoadd suppressions from libunwind.
degomme [Tue, 1 Nov 2016 13:32:22 +0000 (14:32 +0100)]
add suppressions from libunwind.
https://github.com/JuliaLang/julia/issues/4533 reports the same errors we have on ci as libunwind's.
I have some more locally which are more annoying, though.

7 years agoapparently, this should be in this order
degomme [Tue, 1 Nov 2016 08:28:35 +0000 (09:28 +0100)]
apparently, this should be in this order

7 years agofix graphviz tests after the host order change in sg_host_list
Martin Quinson [Tue, 1 Nov 2016 00:01:39 +0000 (01:01 +0100)]
fix graphviz tests after the host order change in sg_host_list

7 years agocmake: better error message
Martin Quinson [Mon, 31 Oct 2016 23:53:11 +0000 (00:53 +0100)]
cmake: better error message

7 years agocosmetics
Martin Quinson [Mon, 31 Oct 2016 23:50:01 +0000 (00:50 +0100)]
cosmetics

7 years agoanother try to fix Mac: don't guess the unwind component names so widely
Martin Quinson [Mon, 31 Oct 2016 23:45:22 +0000 (00:45 +0100)]
another try to fix Mac: don't guess the unwind component names so widely

7 years agotry to fix the windows build (+clang-format)
Martin Quinson [Mon, 31 Oct 2016 23:30:25 +0000 (00:30 +0100)]
try to fix the windows build (+clang-format)

7 years agofix mac build (another try)
Martin Quinson [Mon, 31 Oct 2016 23:20:03 +0000 (00:20 +0100)]
fix mac build (another try)

7 years agowoops, this code was not unused
Martin Quinson [Mon, 31 Oct 2016 23:11:26 +0000 (00:11 +0100)]
woops, this code was not unused

I must have mis-grepped :(

7 years agocosmetics
Martin Quinson [Mon, 31 Oct 2016 23:02:01 +0000 (00:02 +0100)]
cosmetics

7 years agokill an unused chunk of CMakeLists.txt
Martin Quinson [Mon, 31 Oct 2016 22:47:15 +0000 (23:47 +0100)]
kill an unused chunk of CMakeLists.txt

7 years agofix Mac OSX build
Martin Quinson [Mon, 31 Oct 2016 22:43:29 +0000 (23:43 +0100)]
fix Mac OSX build

7 years agothis is definitely a backtrace function
Martin Quinson [Mon, 31 Oct 2016 22:31:32 +0000 (23:31 +0100)]
this is definitely a backtrace function

7 years agokill empty functions
Martin Quinson [Mon, 31 Oct 2016 22:18:44 +0000 (23:18 +0100)]
kill empty functions

7 years agoMerge branch 'master' of scm.gforge.inria.fr:/gitroot/simgrid/simgrid
Martin Quinson [Mon, 31 Oct 2016 22:08:42 +0000 (23:08 +0100)]
Merge branch 'master' of scm.gforge.inria.fr:/gitroot/simgrid/simgrid

7 years agotest for libunwind even if not building MC
Martin Quinson [Mon, 31 Oct 2016 22:05:51 +0000 (23:05 +0100)]
test for libunwind even if not building MC

7 years agoplug a memleak
Martin Quinson [Mon, 31 Oct 2016 21:21:55 +0000 (22:21 +0100)]
plug a memleak

7 years agoAdd a FreeBSD backend for get_memory_map(), allow to enable smpi privatization.
degomme [Mon, 31 Oct 2016 13:39:09 +0000 (14:39 +0100)]
Add a FreeBSD backend for get_memory_map(), allow to enable smpi privatization.
Thanks to M. Volat !

7 years agoRework how model checking and mmap get enabled/disabled
degomme [Mon, 31 Oct 2016 13:35:33 +0000 (14:35 +0100)]
Rework how model checking and mmap get enabled/disabled

Simplify test: model checking relies on linux-only syscalls such as signalfd,
mremap, so it won't work on anything else.

But do not set HAVE_MMAP to 0 if MC cannot be built, other parts could use it
Courtesy of M. Volat

7 years agoTest for mremap function and store result in internal_config.h.
degomme [Mon, 31 Oct 2016 13:34:00 +0000 (14:34 +0100)]
Test for mremap function and store result in internal_config.h.
From M. Volat

7 years agoSetup and use a LD_LIBRARY variable in build.
degomme [Mon, 31 Oct 2016 13:33:02 +0000 (14:33 +0100)]
Setup and use a LD_LIBRARY variable in build.
libdl is linux-only, so set this variable as the result of a find_library
command here and let it empty on other systems. From M. Volat.

7 years agoFrom M. Volat : more portable way of opening shm buffers for privatization
degomme [Mon, 31 Oct 2016 09:18:20 +0000 (10:18 +0100)]
From M. Volat : more portable way of opening shm buffers for privatization

7 years agohandle MPI_IN_PLACE for this collective
degomme [Mon, 31 Oct 2016 08:31:20 +0000 (09:31 +0100)]
handle MPI_IN_PLACE for this collective

7 years agoa platform to test the AS bypass feature
Martin Quinson [Sun, 30 Oct 2016 15:55:47 +0000 (16:55 +0100)]
a platform to test the AS bypass feature

7 years agoSpell checking ;)
Martin Quinson [Sat, 29 Oct 2016 15:41:18 +0000 (17:41 +0200)]
Spell checking ;)

7 years agofix MC builds
Martin Quinson [Fri, 28 Oct 2016 18:24:23 +0000 (20:24 +0200)]
fix MC builds

It seems that MC does not love when exceptions are raised.

7 years agoMerge branch 'master' of scm.gforge.inria.fr:/gitroot/simgrid/simgrid
Martin Quinson [Fri, 28 Oct 2016 17:07:13 +0000 (19:07 +0200)]
Merge branch 'master' of scm.gforge.inria.fr:/gitroot/simgrid/simgrid

7 years agofix the last test after the recent change in MSG_hosts_as_dynar order
Martin Quinson [Fri, 28 Oct 2016 17:05:46 +0000 (19:05 +0200)]
fix the last test after the recent change in MSG_hosts_as_dynar order

7 years agostill 2 tests to go before it works again
Martin Quinson [Fri, 28 Oct 2016 17:02:54 +0000 (19:02 +0200)]
still 2 tests to go before it works again

7 years agofix another example
Martin Quinson [Fri, 28 Oct 2016 16:58:23 +0000 (18:58 +0200)]
fix another example

7 years agofix another example after the recent change in msg_hosts_as_dynar
Martin Quinson [Fri, 28 Oct 2016 16:53:47 +0000 (18:53 +0200)]
fix another example after the recent change in msg_hosts_as_dynar

7 years agofix the tesh of many tests after the order change in hosts_as_dynar
Martin Quinson [Fri, 28 Oct 2016 16:47:27 +0000 (18:47 +0200)]
fix the tesh of many tests after the order change in hosts_as_dynar

7 years agofix an example after the recent change to hosts_as_dynar modifying its order
Martin Quinson [Fri, 28 Oct 2016 16:46:44 +0000 (18:46 +0200)]
fix an example after the recent change to hosts_as_dynar modifying its order

7 years agoDestroy all hosts by the end of the simulation.
Martin Quinson [Thu, 27 Oct 2016 08:09:28 +0000 (10:09 +0200)]
Destroy all hosts by the end of the simulation.

This plugs huge memleaks, and make sure that the dtor of the energy
plugin actually makes the expected output.

7 years agotesh: add an option to keep on disk the obtained output
Martin Quinson [Wed, 26 Oct 2016 17:02:12 +0000 (19:02 +0200)]
tesh: add an option to keep on disk the obtained output

This helps regenerating the tesh files.

7 years agotesh: show the full path to tesh file
Martin Quinson [Tue, 25 Oct 2016 18:40:46 +0000 (20:40 +0200)]
tesh: show the full path to tesh file

7 years agohost_list is now a std::map instead of xbt_dict
Martin Quinson [Tue, 25 Oct 2016 17:26:43 +0000 (19:26 +0200)]
host_list is now a std::map instead of xbt_dict

7 years agomove some content out of parsing to the classes
Martin Quinson [Mon, 24 Oct 2016 20:40:01 +0000 (22:40 +0200)]
move some content out of parsing to the classes

7 years agovacation commit
Frederic Suter [Mon, 24 Oct 2016 08:54:13 +0000 (10:54 +0200)]
vacation commit
chase some sonar minor smells

7 years agosmall cosmetics in the storage
Martin Quinson [Sun, 23 Oct 2016 19:49:57 +0000 (21:49 +0200)]
small cosmetics in the storage

7 years agoinline a function called only once
Martin Quinson [Sat, 22 Oct 2016 00:25:15 +0000 (02:25 +0200)]
inline a function called only once

7 years agocosmetics: use C++ type names
Martin Quinson [Sat, 22 Oct 2016 00:19:42 +0000 (02:19 +0200)]
cosmetics: use C++ type names

7 years agorename MSG_host_(get/set)_params into MSG_vm_(get/set)_params
Martin Quinson [Sat, 22 Oct 2016 00:14:15 +0000 (02:14 +0200)]
rename MSG_host_(get/set)_params into MSG_vm_(get/set)_params

7 years agoDo not throw an exception on assert, but display backtrace+abort
Martin Quinson [Fri, 21 Oct 2016 21:08:19 +0000 (23:08 +0200)]
Do not throw an exception on assert, but display backtrace+abort

7 years agoMerge branches 'master' and 'master' of scm.gforge.inria.fr:/gitroot/simgrid/simgrid
Martin Quinson [Fri, 21 Oct 2016 20:09:51 +0000 (22:09 +0200)]
Merge branches 'master' and 'master' of scm.gforge.inria.fr:/gitroot/simgrid/simgrid

7 years agoCreate a s4u::VirtualMachine to clean things out.
Martin Quinson [Fri, 21 Oct 2016 16:55:50 +0000 (18:55 +0200)]
Create a s4u::VirtualMachine to clean things out.

This is still to be populated, with the content of the msg_vm module.

7 years agorename surf::VirtualMachine to surf::VirtualMachineImpl
Martin Quinson [Fri, 21 Oct 2016 16:44:10 +0000 (18:44 +0200)]
rename surf::VirtualMachine to surf::VirtualMachineImpl

This makes room for a s4u::VirtualMachine class that should arrive soon.

7 years agotiny simplification
Martin Quinson [Thu, 20 Oct 2016 22:11:25 +0000 (00:11 +0200)]
tiny simplification

7 years agocontinue removing content from HostImpl
Martin Quinson [Thu, 20 Oct 2016 15:59:15 +0000 (17:59 +0200)]
continue removing content from HostImpl

7 years agoReally fix the issue.
degomme [Thu, 20 Oct 2016 13:43:13 +0000 (15:43 +0200)]
Really fix the issue.

7 years agoFix bug in SMPI tracing, where messages were sometimes badly matched.
degomme [Thu, 20 Oct 2016 13:09:23 +0000 (15:09 +0200)]
Fix bug in SMPI tracing, where messages were sometimes badly matched.
This eparates sent and received messages when trying to match a new one to avoid matching a send with another send.

7 years agosmpi replayed waitall was not working, as request vector is destroyed inside the...
degomme [Thu, 20 Oct 2016 12:33:05 +0000 (14:33 +0200)]
smpi replayed waitall was not working, as request vector is destroyed inside the waitall called.
Store information before the call to trace them properly at the end of the wait

7 years agoadd some debug messages for smpi tracing
degomme [Thu, 20 Oct 2016 12:32:02 +0000 (14:32 +0200)]
add some debug messages for smpi tracing

7 years agoremove now useless file
degomme [Wed, 19 Oct 2016 13:24:29 +0000 (15:24 +0200)]
remove now useless file

7 years agocosmetics
Martin Quinson [Wed, 19 Oct 2016 20:39:53 +0000 (22:39 +0200)]
cosmetics

7 years agoremove a redundent forward declaration
Martin Quinson [Tue, 18 Oct 2016 17:36:49 +0000 (19:36 +0200)]
remove a redundent forward declaration

7 years agofix case when no fortran compiler is found
degomme [Wed, 19 Oct 2016 10:14:16 +0000 (12:14 +0200)]
fix case when no fortran compiler is found

7 years agocleanup handling of Fortran compiler in cmake (Patch from M. Volat)
degomme [Wed, 19 Oct 2016 09:50:48 +0000 (11:50 +0200)]
cleanup handling of Fortran compiler in cmake (Patch from M. Volat)

7 years agoadd a few fortran (unimplemented) declarations
degomme [Wed, 19 Oct 2016 08:58:37 +0000 (10:58 +0200)]
add a few fortran (unimplemented) declarations
Yes I know at some point I should add all of them.

7 years agoadd some defines in fortran
degomme [Tue, 18 Oct 2016 15:19:33 +0000 (17:19 +0200)]
add some defines in fortran

7 years agoAdd a check so that process_init exits cleanly when improperly called.
degomme [Tue, 18 Oct 2016 15:19:21 +0000 (17:19 +0200)]
Add a check so that process_init exits cleanly when improperly called.

7 years agokill a useless constructor
Martin Quinson [Tue, 18 Oct 2016 06:17:43 +0000 (08:17 +0200)]
kill a useless constructor

7 years agoHOSTIMPL IS NO LONGER A RESOURCE! At least! \o/
Martin Quinson [Mon, 17 Oct 2016 20:10:41 +0000 (22:10 +0200)]
HOSTIMPL IS NO LONGER A RESOURCE! At least! \o/

7 years agokill dead code
Martin Quinson [Mon, 17 Oct 2016 19:57:00 +0000 (21:57 +0200)]
kill dead code

7 years agoKill HostImpl::cpu_. Use the one of the s4u::Host
Martin Quinson [Mon, 17 Oct 2016 19:53:36 +0000 (21:53 +0200)]
Kill HostImpl::cpu_. Use the one of the s4u::Host

7 years agoreindent after previous changes
Martin Quinson [Mon, 17 Oct 2016 18:55:17 +0000 (20:55 +0200)]
reindent after previous changes

7 years agoput the HostImpl as s4u::Host->pimpl instead of as an extension
Martin Quinson [Mon, 17 Oct 2016 18:54:54 +0000 (20:54 +0200)]
put the HostImpl as s4u::Host->pimpl instead of as an extension

7 years agohello clang, that's another ForEach macro of ours
Martin Quinson [Mon, 17 Oct 2016 15:36:38 +0000 (17:36 +0200)]
hello clang, that's another ForEach macro of ours

7 years agokill a bunch of empty ctor/dtor
Martin Quinson [Mon, 17 Oct 2016 07:33:54 +0000 (09:33 +0200)]
kill a bunch of empty ctor/dtor