Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
simgrid.git
22 months agofix FreeBSD builds
Martin Quinson [Wed, 16 Jan 2019 07:14:49 +0000 (08:14 +0100)]
fix FreeBSD builds

22 months agowoops, plug a memleak
Martin Quinson [Wed, 16 Jan 2019 06:41:47 +0000 (07:41 +0100)]
woops, plug a memleak

22 months agoDrop xbt_os_thread_t
Martin Quinson [Tue, 15 Jan 2019 23:56:48 +0000 (00:56 +0100)]
Drop xbt_os_thread_t

22 months agoreimplement the xbt::parmap using std::thread
Martin Quinson [Tue, 15 Jan 2019 23:32:35 +0000 (00:32 +0100)]
reimplement the xbt::parmap using std::thread

22 months agoImplement thread factory with std::thread, and cleanups
Martin Quinson [Tue, 15 Jan 2019 22:34:32 +0000 (23:34 +0100)]
Implement thread factory with std::thread, and cleanups

22 months agoDocument last change
Martin Quinson [Tue, 15 Jan 2019 21:51:09 +0000 (22:51 +0100)]
Document last change

22 months agocleanups around the actor terminaison
Martin Quinson [Tue, 15 Jan 2019 20:19:44 +0000 (21:19 +0100)]
cleanups around the actor terminaison

22 months agofix Java and MC examples
Martin Quinson [Tue, 15 Jan 2019 19:15:58 +0000 (20:15 +0100)]
fix Java and MC examples

22 months agoMove MSG and SimDag examples out of the sight of users
Martin Quinson [Tue, 15 Jan 2019 11:58:06 +0000 (12:58 +0100)]
Move MSG and SimDag examples out of the sight of users

22 months agouseless cosmetics hinted by qtcreator
Martin Quinson [Mon, 14 Jan 2019 21:34:34 +0000 (22:34 +0100)]
useless cosmetics hinted by qtcreator

22 months agofix the sonar fix
Martin Quinson [Mon, 14 Jan 2019 20:22:54 +0000 (21:22 +0100)]
fix the sonar fix

22 months agomake sure that debugging msg don't cause any segfault
Martin Quinson [Mon, 14 Jan 2019 20:04:58 +0000 (21:04 +0100)]
make sure that debugging msg don't cause any segfault

22 months agoDoc improvement in this example
Martin Quinson [Mon, 14 Jan 2019 10:57:11 +0000 (11:57 +0100)]
Doc improvement in this example

22 months agoplease sonar
Martin Quinson [Sun, 13 Jan 2019 10:01:06 +0000 (11:01 +0100)]
please sonar

22 months agolet's try again without these
Augustin Degomme [Mon, 14 Jan 2019 15:40:39 +0000 (16:40 +0100)]
let's try again without these

22 months agofix dist
Augustin Degomme [Mon, 14 Jan 2019 13:45:30 +0000 (14:45 +0100)]
fix dist

22 months agorename GCCFlags.cmake file in Flags.cmake
Augustin Degomme [Mon, 14 Jan 2019 13:30:41 +0000 (14:30 +0100)]
rename GCCFlags.cmake file in Flags.cmake

22 months agoset some flag for cmake coverage
Augustin Degomme [Mon, 14 Jan 2019 13:28:02 +0000 (14:28 +0100)]
set some flag for cmake coverage

22 months agorename test to avoid name conflict (for sonarcloud coverage)
Augustin Degomme [Mon, 14 Jan 2019 13:23:32 +0000 (14:23 +0100)]
rename test to avoid name conflict (for sonarcloud coverage)

22 months agoRemove redundant command from distcheck.
Arnaud Giersch [Sun, 13 Jan 2019 14:35:17 +0000 (15:35 +0100)]
Remove redundant command from distcheck.

It was made useless by commit aaecc7554d5ed8435195f72e892cf0329c7b6df5
(remove simgrid_documentation target from distcheck).

22 months agoFix distcheck.
Arnaud Giersch [Sun, 13 Jan 2019 14:26:41 +0000 (15:26 +0100)]
Fix distcheck.

22 months agoRemove useless symlink on distcheck.
Arnaud Giersch [Sun, 13 Jan 2019 14:25:52 +0000 (15:25 +0100)]
Remove useless symlink on distcheck.

22 months agographicator is needed by make install.
Arnaud Giersch [Sun, 13 Jan 2019 13:59:48 +0000 (14:59 +0100)]
graphicator is needed by make install.

22 months agoAlso add the mpich3 binaries in the dependencies of make tests
Martin Quinson [Sun, 13 Jan 2019 09:58:04 +0000 (10:58 +0100)]
Also add the mpich3 binaries in the dependencies of make tests

+ refactor several cmake files in this scary directory

22 months agohopefully add all the missing binaries to the tests
Martin Quinson [Sat, 12 Jan 2019 22:12:52 +0000 (23:12 +0100)]
hopefully add all the missing binaries to the tests

22 months agoTests also need the java tests and simgrid-mc
Martin Quinson [Sat, 12 Jan 2019 21:10:29 +0000 (22:10 +0100)]
Tests also need the java tests and simgrid-mc

22 months agoThe tests also need smpimain and smpireplaymain
Martin Quinson [Sat, 12 Jan 2019 20:39:59 +0000 (21:39 +0100)]
The tests also need smpimain and smpireplaymain

They also need the simgrid library, but this is automatically detected
by cmake since the test binaries are linked against this lib.

22 months agoImprove BuildSimGrid.sh
Martin Quinson [Sat, 12 Jan 2019 20:22:06 +0000 (21:22 +0100)]
Improve BuildSimGrid.sh

22 months agoRevert "try to compile mpi.mod even if the config was run previously"
Martin Quinson [Sat, 12 Jan 2019 20:21:45 +0000 (21:21 +0100)]
Revert "try to compile mpi.mod even if the config was run previously"

This reverts commit 8027c7e2096e3eb887cc011b1937d10ae568310a.

22 months agoCorrectly search C++14 on older cmake
Martin Quinson [Sat, 12 Jan 2019 16:50:12 +0000 (17:50 +0100)]
Correctly search C++14 on older cmake

We need to first ask cmake whether it knows about a given feature
before testing whether the compiler has that feature. In particular,
only cmake 3.8 and higher knows about the cxx_std_14 feature.

Since we use the IN_LIST operator to test whether cmake knows a given
feature, we need to bump our CMake minimal version to 3.5. That's a
huge bump from the previous 2.8 requirement, but that version is
provided on Ubuntu Xenial (16.04), our oldest build slave.

Note that cxx_std_14 as a CMAKE_CXX_KNOWN_FEATURES was introduced by
cmake 3.8 only, while versions between 3.5 and 3.8 only had individual
features composing C++14, not the global 'cxx_std_14'. But that's OK.
People should use recent tools to get better/all features.

22 months agotry to compile mpi.mod even if the config was run previously
Martin Quinson [Fri, 11 Jan 2019 23:30:17 +0000 (00:30 +0100)]
try to compile mpi.mod even if the config was run previously

If I understand correctly, this target was previously built in the
first run, right after the cmake run. Now that tests are separated, I
need to save whether or not this target should be built by caching
this variable.

But I'm not sure at all...

22 months agoadd missing dependency
Augustin Degomme [Fri, 11 Jan 2019 23:39:06 +0000 (00:39 +0100)]
add missing dependency

22 months agomissing spots where we should now build 'tests'
Martin Quinson [Fri, 11 Jan 2019 21:14:53 +0000 (22:14 +0100)]
missing spots where we should now build 'tests'

22 months agoonly ask one version of the standard for pybind11
Martin Quinson [Fri, 11 Jan 2019 21:05:44 +0000 (22:05 +0100)]
only ask one version of the standard for pybind11

22 months agodo not build the examples by default, only when running 'make tests'
Martin Quinson [Fri, 11 Jan 2019 20:52:07 +0000 (21:52 +0100)]
do not build the examples by default, only when running 'make tests'

22 months agoam I stupid?!
Martin Quinson [Fri, 11 Jan 2019 20:04:00 +0000 (21:04 +0100)]
am I stupid?!

You only had one job: only activate the existing tests.

22 months agodon't include the git hash in simgrid/config.h
Martin Quinson [Fri, 11 Jan 2019 16:34:41 +0000 (17:34 +0100)]
don't include the git hash in simgrid/config.h

This should speed up incremental rebuilds after cmake runs.

22 months agore-factorize examples/s4u/CMakeLists.txt
Martin Quinson [Fri, 11 Jan 2019 16:20:55 +0000 (17:20 +0100)]
re-factorize examples/s4u/CMakeLists.txt

22 months agoFix signess that bother Qt Creator
Martin Quinson [Thu, 10 Jan 2019 13:55:14 +0000 (14:55 +0100)]
Fix signess that bother Qt Creator

22 months agoSlightly simplify logic.
Arnaud Giersch [Fri, 11 Jan 2019 12:32:10 +0000 (13:32 +0100)]
Slightly simplify logic.

22 months agoKill an obsolete FIXME.
Arnaud Giersch [Fri, 11 Jan 2019 12:24:14 +0000 (13:24 +0100)]
Kill an obsolete FIXME.

22 months agoDon't shadow parameter "parent".
Arnaud Giersch [Fri, 11 Jan 2019 12:19:00 +0000 (13:19 +0100)]
Don't shadow parameter "parent".

22 months agoMerge "if" statements.
Arnaud Giersch [Fri, 11 Jan 2019 10:33:24 +0000 (11:33 +0100)]
Merge "if" statements.

22 months agoUse wildcards for location of libcgraph in simgrid.supp.
Arnaud Giersch [Fri, 11 Jan 2019 10:12:13 +0000 (11:12 +0100)]
Use wildcards for location of libcgraph in simgrid.supp.

22 months agoRemove hardcoded value.
Arnaud Giersch [Fri, 11 Jan 2019 08:26:00 +0000 (09:26 +0100)]
Remove hardcoded value.

22 months agoRemove unused variable.
Arnaud Giersch [Fri, 11 Jan 2019 08:24:26 +0000 (09:24 +0100)]
Remove unused variable.

22 months agoTry to improve valgrind suppressions for python before the night.
Arnaud Giersch [Thu, 10 Jan 2019 21:17:19 +0000 (22:17 +0100)]
Try to improve valgrind suppressions for python before the night.

22 months agoAccess static member with "::".
Arnaud Giersch [Thu, 10 Jan 2019 21:17:19 +0000 (22:17 +0100)]
Access static member with "::".

22 months agoUseless include.
Arnaud Giersch [Thu, 10 Jan 2019 21:17:19 +0000 (22:17 +0100)]
Useless include.

22 months agoUse cmake's JAVA_EXECUTABLE to run Java tests.
Arnaud Giersch [Thu, 10 Jan 2019 14:48:15 +0000 (15:48 +0100)]
Use cmake's JAVA_EXECUTABLE to run Java tests.

22 months agoRevert "[travis] Another try..."
Arnaud Giersch [Thu, 10 Jan 2019 14:12:51 +0000 (15:12 +0100)]
Revert "[travis] Another try..."

jdk_switcher: command not found

This reverts commit b0a3fa041429539e40244536bf35f889e98c1d20.

22 months ago[travis] Another try...
Arnaud Giersch [Thu, 10 Jan 2019 14:09:32 +0000 (15:09 +0100)]
[travis] Another try...

22 months ago[travis] Another attempt to fix java.
Arnaud Giersch [Thu, 10 Jan 2019 13:50:07 +0000 (14:50 +0100)]
[travis] Another attempt to fix java.

22 months ago[travis] There are only 2 cores available.
Arnaud Giersch [Thu, 10 Jan 2019 13:48:54 +0000 (14:48 +0100)]
[travis] There are only 2 cores available.

22 months ago[travis] Try to not explicitely ask for default-jdk.
Arnaud Giersch [Thu, 10 Jan 2019 13:27:13 +0000 (14:27 +0100)]
[travis] Try to not explicitely ask for default-jdk.

22 months agoRemove typedef alias xbt_ex_t.
Arnaud Giersch [Thu, 10 Jan 2019 12:52:22 +0000 (13:52 +0100)]
Remove typedef alias xbt_ex_t.

This removes the last references to struct xbt_ex in C world.

22 months agoTypo.
Arnaud Giersch [Thu, 10 Jan 2019 12:50:36 +0000 (13:50 +0100)]
Typo.

22 months agoKill unused function xbt_ex_display().
Arnaud Giersch [Thu, 10 Jan 2019 11:14:24 +0000 (12:14 +0100)]
Kill unused function xbt_ex_display().

22 months agoUpdate .mailmap.
Arnaud Giersch [Thu, 10 Jan 2019 10:59:10 +0000 (11:59 +0100)]
Update .mailmap.

22 months agoCosmetics: trailing withespaces.
Arnaud Giersch [Thu, 10 Jan 2019 10:33:09 +0000 (11:33 +0100)]
Cosmetics: trailing withespaces.

22 months agoAvoid redefining built-in "list".
Arnaud Giersch [Thu, 10 Jan 2019 10:31:30 +0000 (11:31 +0100)]
Avoid redefining built-in "list".

22 months agoChange string statement into comment.
Arnaud Giersch [Thu, 10 Jan 2019 10:29:59 +0000 (11:29 +0100)]
Change string statement into comment.

22 months agoNow that it run on jenkins, disable sonar analysis on travis.
Arnaud Giersch [Thu, 10 Jan 2019 10:20:21 +0000 (11:20 +0100)]
Now that it run on jenkins, disable sonar analysis on travis.

22 months ago[sonar] Merge exclusions.
Arnaud Giersch [Thu, 10 Jan 2019 09:15:25 +0000 (10:15 +0100)]
[sonar] Merge exclusions.

22 months ago[sonar] Rename method (don't use "main").
Arnaud Giersch [Thu, 10 Jan 2019 08:59:12 +0000 (09:59 +0100)]
[sonar] Rename method (don't use "main").

22 months ago[sonar] Misc issues in bindings/lua.
Arnaud Giersch [Wed, 9 Jan 2019 20:34:29 +0000 (21:34 +0100)]
[sonar] Misc issues in bindings/lua.

22 months agobad formatting of suppression file, missing a mandatory comment line
Augustin Degomme [Thu, 10 Jan 2019 11:09:45 +0000 (12:09 +0100)]
bad formatting of suppression file, missing a mandatory comment line

22 months agotell valgrind to ignore cruft inside python3.. Let it for now try to find the remaini...
Augustin Degomme [Thu, 10 Jan 2019 09:43:07 +0000 (10:43 +0100)]
tell valgrind to ignore cruft inside python3.. Let it for now try to find the remaining issues in simgrid

22 months agodisable python for sanitizers
Augustin Degomme [Thu, 10 Jan 2019 09:31:02 +0000 (10:31 +0100)]
disable python for sanitizers

22 months agoadopt single file for cobertura as well
Augustin Degomme [Wed, 9 Jan 2019 14:43:55 +0000 (15:43 +0100)]
adopt single file for cobertura as well

22 months agotypo --
Augustin Degomme [Wed, 9 Jan 2019 14:41:11 +0000 (15:41 +0100)]
typo --

22 months agogenerate only one file for all python reports, as sonarcloud wants it.
Augustin Degomme [Wed, 9 Jan 2019 14:40:39 +0000 (15:40 +0100)]
generate only one file for all python reports, as sonarcloud wants it.

22 months agoRedo "Like java, python breaks mmalloc with FreeBSD+MC. Disable it."
Arnaud Giersch [Wed, 9 Jan 2019 11:57:49 +0000 (12:57 +0100)]
Redo "Like java, python breaks mmalloc with FreeBSD+MC. Disable it."

Check option 'enable_python' *after* its declaration.

This fixes commit 882355d6bdf10129df36e89e4a0a5182959600ff.

22 months agoadd python coverage
Augustin Degomme [Wed, 9 Jan 2019 10:48:30 +0000 (11:48 +0100)]
add python coverage
May crash with some examples, such as actor-create..

22 months agoField SwappedContext::stack_ became private, use get_stack().
Arnaud Giersch [Wed, 9 Jan 2019 09:17:52 +0000 (10:17 +0100)]
Field SwappedContext::stack_ became private, use get_stack().

22 months agoLike java, python breaks mmalloc with FreeBSD+MC. Disable it.
Arnaud Giersch [Wed, 9 Jan 2019 08:51:55 +0000 (09:51 +0100)]
Like java, python breaks mmalloc with FreeBSD+MC. Disable it.

22 months ago[sonar] Fix never executed "break" statements.
Arnaud Giersch [Wed, 9 Jan 2019 08:51:55 +0000 (09:51 +0100)]
[sonar] Fix never executed "break" statements.

22 months ago[sonar] Use the "&" operator with function names.
Arnaud Giersch [Wed, 9 Jan 2019 08:51:55 +0000 (09:51 +0100)]
[sonar] Use the "&" operator with function names.

22 months agoHappy new year.
Arnaud Giersch [Wed, 9 Jan 2019 08:51:55 +0000 (09:51 +0100)]
Happy new year.

22 months agomore pythonic example
Martin Quinson [Wed, 9 Jan 2019 09:39:28 +0000 (10:39 +0100)]
more pythonic example

22 months agosonar: don't exclude java from coverage
Martin Quinson [Wed, 9 Jan 2019 07:36:11 +0000 (08:36 +0100)]
sonar: don't exclude java from coverage

22 months agosonar: disable a weird rule
Martin Quinson [Wed, 9 Jan 2019 07:21:03 +0000 (08:21 +0100)]
sonar: disable a weird rule

22 months agoFix MC builds
Martin Quinson [Wed, 9 Jan 2019 07:18:16 +0000 (08:18 +0100)]
Fix MC builds

22 months agotravis is on Xenial now
Martin Quinson [Tue, 8 Jan 2019 22:32:19 +0000 (23:32 +0100)]
travis is on Xenial now

22 months agoMissing files
Martin Quinson [Tue, 8 Jan 2019 22:25:58 +0000 (23:25 +0100)]
Missing files

22 months agodoc cosmetics, and cleanup the API
Martin Quinson [Tue, 8 Jan 2019 22:09:57 +0000 (23:09 +0100)]
doc cosmetics, and cleanup the API

more functions in the API, don't help users but mess them up

- In python:
  - remove this_actor.kill(pid)
  - bind Actor.by_pid(pid)
  - remove this_actor.kill_all(), we have Actor.kill_all()
- In C++:
  - deprecate s4u::Actor::kill(pid)
- Various docstrings improvements

22 months agosonar: ignore XML and python files from coverage
Martin Quinson [Tue, 8 Jan 2019 21:21:49 +0000 (22:21 +0100)]
sonar: ignore XML and python files from coverage

22 months agonew python example: actor-kill
Martin Quinson [Tue, 8 Jan 2019 18:30:11 +0000 (19:30 +0100)]
new python example: actor-kill

22 months agoobey sonar and make SwappedContext::stack_ private
Martin Quinson [Tue, 8 Jan 2019 17:13:55 +0000 (18:13 +0100)]
obey sonar and make SwappedContext::stack_ private

22 months agoDon't force on a factory that is not always avail
Martin Quinson [Tue, 8 Jan 2019 14:30:40 +0000 (15:30 +0100)]
Don't force on a factory that is not always avail

22 months agotiny doc improvement
Martin Quinson [Tue, 8 Jan 2019 13:30:51 +0000 (14:30 +0100)]
tiny doc improvement

22 months agoDon't get tied to a version, this one needed an upgrade
Augustin Degomme [Tue, 8 Jan 2019 16:23:49 +0000 (17:23 +0100)]
Don't get tied to a version, this one needed an upgrade

22 months agoprotect against entering the loop when no match is found
Augustin Degomme [Tue, 8 Jan 2019 15:48:46 +0000 (16:48 +0100)]
protect against entering the loop when no match is found

22 months agoadd sonarqube to the coverage build
Augustin Degomme [Tue, 8 Jan 2019 14:02:04 +0000 (15:02 +0100)]
add sonarqube to the coverage build

22 months agodon't wrash with 0 sized files
Augustin Degomme [Tue, 8 Jan 2019 14:01:23 +0000 (15:01 +0100)]
don't wrash with 0 sized files
jacoco is failing as of now: probably we don't close the jvm properly, and the filling of the file is never triggered

22 months agos/HAVE_SENDFILE/SG_HAVE_SENDFILE/
Martin Quinson [Tue, 8 Jan 2019 07:51:01 +0000 (08:51 +0100)]
s/HAVE_SENDFILE/SG_HAVE_SENDFILE/

Now that the python-bindings load the private headers too (to get
Context::StopRequest() in Context.hpp), we get some naming conflict.
Interestingly, that's only visible on some architectures, not globally.

22 months agomove header template near to its destination
Martin Quinson [Tue, 8 Jan 2019 07:44:41 +0000 (08:44 +0100)]
move header template near to its destination

22 months agoci: make target got renamed
Martin Quinson [Tue, 8 Jan 2019 07:34:12 +0000 (08:34 +0100)]
ci: make target got renamed

22 months agotiny doc improvement
Martin Quinson [Tue, 8 Jan 2019 07:21:45 +0000 (08:21 +0100)]
tiny doc improvement

22 months agoinclude pybind11.h first, as we should
Martin Quinson [Tue, 8 Jan 2019 07:20:12 +0000 (08:20 +0100)]
include pybind11.h first, as we should