Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
simgrid.git
7 months agoappveyor: try to get pybind11
Martin Quinson [Tue, 22 Jan 2019 17:08:57 +0000 (18:08 +0100)]
appveyor: try to get pybind11

7 months agoSimplify the actor answer to iwannadie
Martin Quinson [Mon, 21 Jan 2019 16:01:14 +0000 (17:01 +0100)]
Simplify the actor answer to iwannadie

7 months agoplay safe, no pointers to the stack of dying actors
Martin Quinson [Mon, 21 Jan 2019 15:41:36 +0000 (16:41 +0100)]
play safe, no pointers to the stack of dying actors

7 months agostep by step cleanup. This code drives me nuts
Martin Quinson [Mon, 21 Jan 2019 14:56:04 +0000 (15:56 +0100)]
step by step cleanup. This code drives me nuts

7 months agoAttempt to fix Python bindings on OS X.
Arnaud Giersch [Tue, 22 Jan 2019 15:35:51 +0000 (16:35 +0100)]
Attempt to fix Python bindings on OS X.

See https://github.com/pybind/pybind11/issues/1272.

7 months agoTypo.
Arnaud Giersch [Tue, 22 Jan 2019 14:25:58 +0000 (15:25 +0100)]
Typo.

7 months agoAdd missing issues to ChangeLog.
Arnaud Giersch [Tue, 22 Jan 2019 13:20:17 +0000 (14:20 +0100)]
Add missing issues to ChangeLog.

7 months agoFactorize some of the ASAN_ONLY code.
Arnaud Giersch [Mon, 21 Jan 2019 21:45:14 +0000 (22:45 +0100)]
Factorize some of the ASAN_ONLY code.

Also make asan_* members public to be visible from smx_ctx_wrapper
(ContextUnix,cpp).

7 months agoActivate test s4u-actor-exiting.
Arnaud Giersch [Mon, 21 Jan 2019 15:15:13 +0000 (16:15 +0100)]
Activate test s4u-actor-exiting.

According to emptty it's failing, add note with set_tesh_properties().
Also fix distcheck.

7 months agoSimplify by using set_tesh_properties().
Arnaud Giersch [Mon, 21 Jan 2019 14:58:05 +0000 (15:58 +0100)]
Simplify by using set_tesh_properties().

7 months agoRemove old cruft.
Arnaud Giersch [Mon, 21 Jan 2019 12:03:40 +0000 (13:03 +0100)]
Remove old cruft.

These functions and variables were removed a while ago.

7 months agoAvoid TSan false positives.
Arnaud Giersch [Mon, 21 Jan 2019 11:57:01 +0000 (12:57 +0100)]
Avoid TSan false positives.

7 months agoCosmetics.
Arnaud Giersch [Mon, 21 Jan 2019 11:09:21 +0000 (12:09 +0100)]
Cosmetics.

7 months agoUpdate ChangeLog.
Arnaud Giersch [Fri, 18 Jan 2019 09:01:58 +0000 (10:01 +0100)]
Update ChangeLog.

7 months agofurther s/trace/profile/ cleanups
Martin Quinson [Mon, 21 Jan 2019 13:58:12 +0000 (14:58 +0100)]
further s/trace/profile/ cleanups

7 months agoDoc improvement
Martin Quinson [Mon, 21 Jan 2019 13:53:13 +0000 (14:53 +0100)]
Doc improvement

7 months agostart to s/trace/profile/ in the public API
Martin Quinson [Mon, 21 Jan 2019 12:32:09 +0000 (13:32 +0100)]
start to s/trace/profile/ in the public API

8 months agostart renaming tmgr trace into profile
Martin Quinson [Mon, 21 Jan 2019 10:43:19 +0000 (11:43 +0100)]
start renaming tmgr trace into profile

8 months agoTry to make a symbol easier to find for MC on exotic platforms
Martin Quinson [Mon, 21 Jan 2019 08:42:37 +0000 (09:42 +0100)]
Try to make a symbol easier to find for MC on exotic platforms

8 months agoFix non-java tests :(
Martin Quinson [Mon, 21 Jan 2019 07:09:17 +0000 (08:09 +0100)]
Fix non-java tests :(

8 months agoctx: move some bits to a private header and reduce the exposure of src/internal_config.h
Martin Quinson [Sun, 20 Jan 2019 21:55:40 +0000 (22:55 +0100)]
ctx: move some bits to a private header and reduce the exposure of src/internal_config.h

8 months agocosmetics in UCtx: hide one internal function and inline another
Martin Quinson [Sun, 20 Jan 2019 21:25:16 +0000 (22:25 +0100)]
cosmetics in UCtx: hide one internal function and inline another

8 months agoIn C++, classes don't need a name because they have a class
Martin Quinson [Sun, 20 Jan 2019 20:41:27 +0000 (21:41 +0100)]
In C++, classes don't need a name because they have a class

8 months agothread_local fields must be static, no need to move to the factory
Martin Quinson [Sun, 20 Jan 2019 18:44:10 +0000 (19:44 +0100)]
thread_local fields must be static, no need to move to the factory

8 months agokill an unused function
Martin Quinson [Sun, 20 Jan 2019 17:09:13 +0000 (18:09 +0100)]
kill an unused function

8 months agos/process/actor/ A lot remains TBD about it
Martin Quinson [Sun, 20 Jan 2019 11:19:38 +0000 (12:19 +0100)]
s/process/actor/ A lot remains TBD about it

8 months agoMore ints converted as boolean
Martin Quinson [Sun, 20 Jan 2019 00:40:26 +0000 (01:40 +0100)]
More ints converted as boolean

8 months agonew (failing) example about on_exit and on_destruction
Martin Quinson [Sun, 20 Jan 2019 00:33:37 +0000 (01:33 +0100)]
new (failing) example about on_exit and on_destruction

8 months agobools are not ints anymore
Martin Quinson [Sun, 20 Jan 2019 00:24:11 +0000 (01:24 +0100)]
bools are not ints anymore

8 months agouseless cleanups
Martin Quinson [Sun, 20 Jan 2019 00:11:12 +0000 (01:11 +0100)]
useless cleanups

8 months agoFix a race condition in SwappedCtx parallel exec
Martin Quinson [Sat, 19 Jan 2019 22:18:07 +0000 (23:18 +0100)]
Fix a race condition in SwappedCtx parallel exec

The protection in set_maestro was failing to detect between the real
maestro and the working threads of the parmal. This is now fixed
according to helgrind.

Also, refactor things a bit by moving this set_maestro call directly
into the SwappedCtx constructor. Much less of a shotgun surgery :)

8 months agoHide usage of free() to Sonar.
Arnaud Giersch [Thu, 17 Jan 2019 08:43:23 +0000 (09:43 +0100)]
Hide usage of free() to Sonar.

8 months agoRemove unused bits from mmalloc.
Arnaud Giersch [Thu, 17 Jan 2019 08:21:51 +0000 (09:21 +0100)]
Remove unused bits from mmalloc.

8 months agofix MC on FreeBSD
Martin Quinson [Thu, 17 Jan 2019 00:27:03 +0000 (01:27 +0100)]
fix MC on FreeBSD

8 months agoFix paths.
Arnaud Giersch [Wed, 16 Jan 2019 22:55:38 +0000 (23:55 +0100)]
Fix paths.

8 months agoKill unused example simdag/goal_test.
Arnaud Giersch [Wed, 16 Jan 2019 20:58:48 +0000 (21:58 +0100)]
Kill unused example simdag/goal_test.

8 months agoTypo².
Arnaud Giersch [Wed, 16 Jan 2019 22:48:23 +0000 (23:48 +0100)]
Typo².

8 months agoRevert "Disable parallel executions with non-thread contexts under Tsan."
Martin Quinson [Wed, 16 Jan 2019 22:29:53 +0000 (23:29 +0100)]
Revert "Disable parallel executions with non-thread contexts under Tsan."

I have the feeling that the problem is actually in the parallel exec
of swapped factories, not in TSan.

This reverts commit 019d8784441a673767fd76b20a6283b965ead239.

8 months agoFix memleak.
Arnaud Giersch [Wed, 16 Jan 2019 20:58:48 +0000 (21:58 +0100)]
Fix memleak.

8 months agoTypo.
Arnaud Giersch [Wed, 16 Jan 2019 21:41:58 +0000 (22:41 +0100)]
Typo.

8 months agoReplace macros by C++ constructs.
Arnaud Giersch [Wed, 16 Jan 2019 20:21:16 +0000 (21:21 +0100)]
Replace macros by C++ constructs.

8 months agoMerge branch 'master' of framagit.org:simgrid/simgrid
Martin Quinson [Wed, 16 Jan 2019 21:57:19 +0000 (22:57 +0100)]
Merge branch 'master' of framagit.org:simgrid/simgrid

8 months agoSET_TESTS_PROPERTIES Can not find test to add properties to.
Arnaud Giersch [Wed, 16 Jan 2019 17:55:21 +0000 (18:55 +0100)]
SET_TESTS_PROPERTIES Can not find test to add properties to.

Test stack-overflow-thread has been removed.

8 months agoDrop xbt_os_mutex_* functions.
Arnaud Giersch [Wed, 16 Jan 2019 16:36:54 +0000 (17:36 +0100)]
Drop xbt_os_mutex_* functions.

8 months agoUse standard C++ mutex.
Arnaud Giersch [Wed, 16 Jan 2019 16:31:28 +0000 (17:31 +0100)]
Use standard C++ mutex.

Recursive because it was recursive before.
See commit c0f0866d02664ad515441a5294f95c6b7d8b6fc1
"Fix the race condition in _xbt_log_cat_init()."

8 months agoBuild log module as C++.
Arnaud Giersch [Wed, 16 Jan 2019 14:09:36 +0000 (15:09 +0100)]
Build log module as C++.

The goal is to use C++ mutex.

8 months agoFix asserts.
Arnaud Giersch [Wed, 16 Jan 2019 15:59:58 +0000 (16:59 +0100)]
Fix asserts.

8 months agoStruct xbt_os_thread_t is not used anymore.
Arnaud Giersch [Wed, 16 Jan 2019 10:30:41 +0000 (11:30 +0100)]
Struct xbt_os_thread_t is not used anymore.

8 months agoRemove useless wrapper around pthread_atfork().
Arnaud Giersch [Wed, 16 Jan 2019 10:29:12 +0000 (11:29 +0100)]
Remove useless wrapper around pthread_atfork().

8 months agoInclude is not needed anymore. Remove.
Arnaud Giersch [Wed, 16 Jan 2019 10:24:52 +0000 (11:24 +0100)]
Include is not needed anymore.  Remove.

8 months agoDisable stack-overflow test with threads.
Arnaud Giersch [Wed, 16 Jan 2019 10:06:55 +0000 (11:06 +0100)]
Disable stack-overflow test with threads.

Stack protection (setstacksize/setguardsize) have been removed.

8 months agocosmetics
Martin Quinson [Wed, 16 Jan 2019 09:40:19 +0000 (10:40 +0100)]
cosmetics

8 months agoJava examples have moved.
Arnaud Giersch [Wed, 16 Jan 2019 09:19:30 +0000 (10:19 +0100)]
Java examples have moved.

8 months agoTest for msg-task-priority is still present; run it for coverage.
Arnaud Giersch [Mon, 14 Jan 2019 20:41:56 +0000 (21:41 +0100)]
Test for msg-task-priority is still present; run it for coverage.

8 months agoAdd dependency to build tests for make check.
Arnaud Giersch [Mon, 14 Jan 2019 14:10:50 +0000 (15:10 +0100)]
Add dependency to build tests for make check.

8 months agoKill xbt_os_thread_atfork: tesh is not native but python now
Martin Quinson [Wed, 16 Jan 2019 07:44:31 +0000 (08:44 +0100)]
Kill xbt_os_thread_atfork: tesh is not native but python now

8 months agocleanups on my disk
Martin Quinson [Wed, 16 Jan 2019 07:43:31 +0000 (08:43 +0100)]
cleanups on my disk

8 months agoLinux and FreeBSD don't agree on the type name, bummers
Martin Quinson [Wed, 16 Jan 2019 07:29:38 +0000 (08:29 +0100)]
Linux and FreeBSD don't agree on the type name, bummers

8 months agofix the fix for FreeBSD (hopefully)
Martin Quinson [Wed, 16 Jan 2019 07:19:47 +0000 (08:19 +0100)]
fix the fix for FreeBSD (hopefully)

8 months agofix FreeBSD builds
Martin Quinson [Wed, 16 Jan 2019 07:14:49 +0000 (08:14 +0100)]
fix FreeBSD builds

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

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

8 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

8 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

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

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

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

8 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

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

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

8 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

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

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

8 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

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

8 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

8 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

8 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)

8 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).

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

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

8 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.

8 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

8 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

8 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

8 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.

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

8 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.

8 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.

8 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...

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

8 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'

8 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

8 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'

8 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.

8 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.

8 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

8 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

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

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