Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
simgrid.git
46 min agolinkcheck doc: we won't fix javasphinx ourselves master
Martin Quinson [Wed, 22 May 2019 12:11:08 +0000 (14:11 +0200)]
linkcheck doc: we won't fix javasphinx ourselves

4 hours agooops
Augustin Degomme [Wed, 22 May 2019 08:31:49 +0000 (10:31 +0200)]
oops

4 hours agoos_timer: detect when our implementation needs to be augmented
Martin Quinson [Wed, 22 May 2019 08:18:50 +0000 (10:18 +0200)]
os_timer: detect when our implementation needs to be augmented

4 hours agomc: create RegionSparse, RegionDense and RegionPrivatized (WIP)
Martin Quinson [Mon, 20 May 2019 22:58:19 +0000 (00:58 +0200)]
mc: create RegionSparse, RegionDense and RegionPrivatized (WIP)

The content is still in the ancestor class, with a switch on the type_
field. This will soon change.

4 hours agoRegionSnap: only use pointers to regions for sake of simplicity
Martin Quinson [Mon, 20 May 2019 22:29:22 +0000 (00:29 +0200)]
RegionSnap: only use pointers to regions for sake of simplicity

4 hours agomc: privatized regions now use a vector of pointers for sake of homogeneity
Martin Quinson [Mon, 20 May 2019 22:07:48 +0000 (00:07 +0200)]
mc: privatized regions now use a vector of pointers for sake of homogeneity

This commit is ... not very helping the readability as is. I hope to
make a real hierarchy of classes here around soon.

4 hours agomc: some snake_casing on the way
Martin Quinson [Mon, 20 May 2019 21:43:57 +0000 (23:43 +0200)]
mc: some snake_casing on the way

4 hours agomc: that FIXME was easy to fix :)
Martin Quinson [Mon, 20 May 2019 21:29:21 +0000 (23:29 +0200)]
mc: that FIXME was easy to fix :)

4 hours agodeactivate clock_gettime on SunOS, as it does not work for threads.
Augustin Degomme [Wed, 22 May 2019 07:45:47 +0000 (09:45 +0200)]
deactivate clock_gettime on SunOS, as it does not work for threads.
CLOCK_THREAD_CPUTIME_ID is declared, but is unimplemented, execution fails and we don't check it.
This can be checked by the absence of _POSIX_THREAD_CPUTIME in unistd.h
Sadly, deactivating posix_gettime only for thread timers is not practical in xbt, so just default to another for all timers.

13 hours agotry to make rma tests faster
Augustin Degomme [Tue, 21 May 2019 23:01:21 +0000 (01:01 +0200)]
try to make rma tests faster

16 hours agoDisable parallel ucontexts on 64bit SunOS.
Arnaud Giersch [Tue, 21 May 2019 20:36:09 +0000 (22:36 +0200)]
Disable parallel ucontexts on 64bit SunOS.

Ucontexts and TLS don't play well together on this platform.

For the record, here is a sample test code. The output should be the same before and after
swapcontext (recall that option "-m64" may be mandatory to compile in 64bit mode).

--------------------
#include <iostream>
#include <stdexcept>
#include <system_error>
#include <thread>
#include <ucontext.h>

thread_local int x = 1;

static char stack[66536];
static ucontext_t ctx;
static ucontext_t octx;

static void wrap()
{
    std::cerr << "o. After swapcontext...: x = " << x << " (" << std::this_thread::get_id() << ")\n";
}

static void thread_fun()
{
    x = 2;
    std::this_thread::sleep_for(std::chrono::milliseconds(100));

    ctx.uc_stack.ss_sp = stack;
    ctx.uc_stack.ss_size = sizeof(stack);
    ctx.uc_link = &octx;
    makecontext(&ctx, &wrap, 2, (int)0xdeadbeef);
    std::cerr << "o. Before swapcontext..: x = " << x << " (" << std::this_thread::get_id() << ")\n";
    swapcontext(&octx, &ctx);
    std::cerr << "o. Finish of thread....: x = " << x << " (" << std::this_thread::get_id() << ")\n";
}

int main()
{
    std::cerr << "x. Main (before thread): x = " << x << " (" << std::this_thread::get_id() << ")\n";
    std::thread thr(thread_fun);
    getcontext(&ctx);
    thr.join();
    std::cerr << "x. Main (after join)...: x = " << x << " (" << std::this_thread::get_id() << ")\n";
}

16 hours agoSave worker's context directly in TLS.
Arnaud Giersch [Tue, 21 May 2019 20:15:25 +0000 (22:15 +0200)]
Save worker's context directly in TLS.

40 hours agog++ needs this include but not clang
Martin Quinson [Mon, 20 May 2019 20:34:21 +0000 (22:34 +0200)]
g++ needs this include but not clang

I'm really puzzled

45 hours agoAhem. You mean I need to actually compile with MC after moving files?
Martin Quinson [Mon, 20 May 2019 15:23:00 +0000 (17:23 +0200)]
Ahem. You mean I need to actually compile with MC after moving files?

2 days agoadd s4u-cloud-simple to the list of examples
Martin Quinson [Sun, 19 May 2019 23:07:15 +0000 (01:07 +0200)]
add s4u-cloud-simple to the list of examples

This example and the other cloud ones should probably be rewritten to
be more informative to the users, one day. This commit mostly create a
section in the list of examples that I'll be able to link to from the
main web page.

2 days agomc: move some files related to ELF, DWARF or unwind reading into their own directory
Martin Quinson [Sun, 19 May 2019 23:05:29 +0000 (01:05 +0200)]
mc: move some files related to ELF, DWARF or unwind reading into their own directory

2 days agoargh, linkchecker needs --check-extern to be really useful
Martin Quinson [Sun, 19 May 2019 22:15:32 +0000 (00:15 +0200)]
argh, linkchecker needs --check-extern to be really useful

2 days agoci@doc: fix the parameter of linkchecker
Martin Quinson [Sun, 19 May 2019 21:54:07 +0000 (23:54 +0200)]
ci@doc: fix the parameter of linkchecker

2 days agodoc: fix the last broken links (?)
Martin Quinson [Sun, 19 May 2019 21:50:28 +0000 (23:50 +0200)]
doc: fix the last broken links (?)

2 days agofix more dead links in the doc
Martin Quinson [Sun, 19 May 2019 19:38:47 +0000 (21:38 +0200)]
fix more dead links in the doc

2 days agostupid me, that file was moved just before
Martin Quinson [Sun, 19 May 2019 19:30:45 +0000 (21:30 +0200)]
stupid me, that file was moved just before

2 days agoOnly linkcheck the pages that we just generated
Martin Quinson [Sun, 19 May 2019 19:25:12 +0000 (21:25 +0200)]
Only linkcheck the pages that we just generated

2 days agofix dead links on the webpage, and linkcheck it upon generation
Martin Quinson [Sun, 19 May 2019 19:10:17 +0000 (21:10 +0200)]
fix dead links on the webpage, and linkcheck it upon generation

2 days agowrite in the tuto that we need a recent version of SG
Martin Quinson [Sun, 19 May 2019 13:46:47 +0000 (15:46 +0200)]
write in the tuto that we need a recent version of SG

2 days agoMerge branch 'master' of https://framagit.org/simgrid/simgrid
Frederic Suter [Sun, 19 May 2019 15:10:07 +0000 (17:10 +0200)]
Merge branch 'master' of https://framagit.org/simgrid/simgrid

2 days agocosmetics: remove occurrences of "msg_platform.xml"
Frederic Suter [Sun, 19 May 2019 15:05:36 +0000 (17:05 +0200)]
cosmetics: remove occurrences of "msg_platform.xml"

2 days agocosmetics do not use msg in log class names
Frederic Suter [Sun, 19 May 2019 14:51:10 +0000 (16:51 +0200)]
cosmetics do not use msg in log class names

2 days agoWrite in doc that some s4u objects are not smart pointers
Martin Quinson [Sun, 19 May 2019 13:40:53 +0000 (15:40 +0200)]
Write in doc that some s4u objects are not smart pointers

2 days agoUpdate the releasing doc
Martin Quinson [Sun, 19 May 2019 13:34:09 +0000 (15:34 +0200)]
Update the releasing doc

2 days agoplease sonar, pass parameters to lambda
Frederic Suter [Sun, 19 May 2019 13:17:26 +0000 (15:17 +0200)]
please sonar, pass parameters to lambda

3 days agomake sure that nobody can compile s4u without simgrid/forward.h
Martin Quinson [Sun, 19 May 2019 08:50:01 +0000 (10:50 +0200)]
make sure that nobody can compile s4u without simgrid/forward.h

3 days agomc::Snapshot: various cleanups and refactoring
Martin Quinson [Sat, 18 May 2019 22:30:28 +0000 (00:30 +0200)]
mc::Snapshot: various cleanups and refactoring

- Obey our naming conventions for fields
- Change some functions into methods

3 days agoAdd a link from smpirun(1) to the online doc
Martin Quinson [Sat, 18 May 2019 21:06:35 +0000 (23:06 +0200)]
Add a link from smpirun(1) to the online doc

Fix FG#3.

3 days agososp: cosmetics
Martin Quinson [Sat, 18 May 2019 14:53:37 +0000 (16:53 +0200)]
sosp: cosmetics

3 days agoUse known PYTHON_EXECUTABLE.
Arnaud Giersch [Sat, 18 May 2019 20:17:48 +0000 (22:17 +0200)]
Use known PYTHON_EXECUTABLE.

3 days agoMore cleanup of tmp files (openindiana).
Arnaud Giersch [Fri, 17 May 2019 21:17:22 +0000 (23:17 +0200)]
More cleanup of tmp files (openindiana).

3 days agoDeobfuscation.
Arnaud Giersch [Fri, 17 May 2019 21:06:59 +0000 (23:06 +0200)]
Deobfuscation.

3 days agoF comes before G, and correct bug number.
Arnaud Giersch [Fri, 17 May 2019 14:36:20 +0000 (16:36 +0200)]
F comes before G, and correct bug number.

3 days agoReturn const& for consistency.
Arnaud Giersch [Fri, 17 May 2019 08:33:34 +0000 (10:33 +0200)]
Return const& for consistency.

3 days agomore bugs got closed
Martin Quinson [Sat, 18 May 2019 13:52:48 +0000 (15:52 +0200)]
more bugs got closed

3 days agoFinish the conversion to python of the hostfile generation
Martin Quinson [Sat, 18 May 2019 13:52:38 +0000 (15:52 +0200)]
Finish the conversion to python of the hostfile generation

 - Fix the XML syntax to please the python stupid parser
   The previous one was not invalid, I think, but anyway
 - Be compatible with both Python 2 and Python 3
 - The host order was changed in one example.

4 days agosmpirun: use a python chunk to generate missing hostfiles
Martin Quinson [Thu, 16 May 2019 16:05:12 +0000 (18:05 +0200)]
smpirun: use a python chunk to generate missing hostfiles

This way, we have a real XML parser, able of parsing any valid XML file.
The perl version was so painfully crude thay you could almost believe
it was written in Perl or something.

4 days agosonar: explict
Martin Quinson [Fri, 17 May 2019 08:04:16 +0000 (10:04 +0200)]
sonar: explict

4 days agosmall doc improvement
Martin Quinson [Thu, 16 May 2019 13:54:57 +0000 (15:54 +0200)]
small doc improvement

4 days agodon't mess with argv before having SimGrid taking its share of options
Martin Quinson [Thu, 16 May 2019 13:02:26 +0000 (15:02 +0200)]
don't mess with argv before having SimGrid taking its share of options

4 days agoFix path for native lib in jar under SunOS.
Arnaud Giersch [Fri, 17 May 2019 14:12:44 +0000 (16:12 +0200)]
Fix path for native lib in jar under SunOS.

CMAKE_SYSTEM_PROCESSOR is i386, even in 64bit mode.

5 days agoCosmetics.
Arnaud Giersch [Fri, 17 May 2019 09:11:21 +0000 (11:11 +0200)]
Cosmetics.

5 days agoLet the exception flow.
Arnaud Giersch [Fri, 17 May 2019 07:56:37 +0000 (09:56 +0200)]
Let the exception flow.

5 days agoCosmetics.
Arnaud Giersch [Fri, 17 May 2019 07:49:50 +0000 (09:49 +0200)]
Cosmetics.

5 days ago32-bit friendly format
Frederic Suter [Fri, 17 May 2019 08:36:47 +0000 (10:36 +0200)]
32-bit friendly format

5 days agoignore some example binaries
Frederic Suter [Fri, 17 May 2019 08:36:28 +0000 (10:36 +0200)]
ignore some example binaries

5 days agoenable wait_any and wait_any_for for asynchronous executions
Frederic Suter [Fri, 17 May 2019 07:16:21 +0000 (09:16 +0200)]
enable wait_any and wait_any_for for asynchronous executions
(No MC or failure support yet)

5 days agoMerge branch 'master' of https://framagit.org/simgrid/simgrid
Frederic Suter [Fri, 17 May 2019 07:11:20 +0000 (09:11 +0200)]
Merge branch 'master' of https://framagit.org/simgrid/simgrid

5 days agoDon't take buffer on stack, 4M may be too big.
Arnaud Giersch [Thu, 16 May 2019 21:14:17 +0000 (23:14 +0200)]
Don't take buffer on stack, 4M may be too big.

5 days agoCopy the values of {C,CXX,F}FLAGS into smpi{cc,cxx,ff,f90}.
Arnaud Giersch [Thu, 16 May 2019 20:52:28 +0000 (22:52 +0200)]
Copy the values of {C,CXX,F}FLAGS into smpi{cc,cxx,ff,f90}.

The goal is to be able to give compiler flags at cmake time, and to have
them used later by the smpi script.
For example, it can be used to pass "-m64" and build a 64bit simgrid
when it's 32it by default (e.g. on Solaris).

The goal is, for example, to be able to set the variable

5 days agoComplete list of closed bugs.
Arnaud Giersch [Thu, 16 May 2019 14:03:26 +0000 (16:03 +0200)]
Complete list of closed bugs.

5 days agoCorrectly split os/ver on redhat-like.
Arnaud Giersch [Thu, 16 May 2019 13:58:53 +0000 (15:58 +0200)]
Correctly split os/ver on redhat-like.

5 days agoMerge branch 'cmake-no-pybind11-search-if-explicitly-disabled' into 'master'
Martin Quinson [Thu, 16 May 2019 13:47:34 +0000 (15:47 +0200)]
Merge branch 'cmake-no-pybind11-search-if-explicitly-disabled' into 'master'

[cmake] no search for pybind11 if explicitly off

See merge request simgrid/simgrid!7

6 days agoMerge branch 'master' of https://framagit.org/simgrid/simgrid
Frederic Suter [Thu, 16 May 2019 12:16:06 +0000 (14:16 +0200)]
Merge branch 'master' of https://framagit.org/simgrid/simgrid

6 days agoMove install(TARGETS) in its proper directory.
Arnaud Giersch [Thu, 16 May 2019 12:11:13 +0000 (14:11 +0200)]
Move install(TARGETS) in its proper directory.

Fix:
  CMake Error at tools/cmake/Distrib.cmake:28 (install):
    install TARGETS given target "graphicator" which does not exist in this directory.

6 days agoMerge branch 'master' of https://framagit.org/simgrid/simgrid
Frederic Suter [Thu, 16 May 2019 11:54:04 +0000 (13:54 +0200)]
Merge branch 'master' of https://framagit.org/simgrid/simgrid

6 days agoFix make dist / distcheck.
Arnaud Giersch [Thu, 16 May 2019 11:53:02 +0000 (13:53 +0200)]
Fix make dist / distcheck.

6 days agoMerge branch 'master' of https://framagit.org/simgrid/simgrid
Frederic Suter [Thu, 16 May 2019 11:49:35 +0000 (13:49 +0200)]
Merge branch 'master' of https://framagit.org/simgrid/simgrid

6 days ago[cmake] no search for pybind11 if explicitly off
Millian Poquet [Thu, 16 May 2019 11:45:49 +0000 (13:45 +0200)]
[cmake] no search for pybind11 if explicitly off

6 days agoDisable bogus warning.
Arnaud Giersch [Thu, 16 May 2019 11:14:34 +0000 (13:14 +0200)]
Disable bogus warning.

6 days agoDon't install empty doc/html/.
Arnaud Giersch [Thu, 16 May 2019 09:49:25 +0000 (11:49 +0200)]
Don't install empty doc/html/.

Fix simgrid/simgrid#14 (FramaGit).

6 days agoAllow binary to be stripped with install/strip.
Arnaud Giersch [Thu, 16 May 2019 09:38:04 +0000 (11:38 +0200)]
Allow binary to be stripped with install/strip.

See https://gitlab.kitware.com/cmake/cmake/issues/16858.

Fix simgrid/simgrid#13 (FramaGit).

6 days agoMerge branch 'master' of https://framagit.org/simgrid/simgrid
Frederic Suter [Thu, 16 May 2019 09:43:36 +0000 (11:43 +0200)]
Merge branch 'master' of https://framagit.org/simgrid/simgrid

6 days agoMerge branch 'master' of framagit.org:simgrid/simgrid
Martin Quinson [Thu, 16 May 2019 09:08:59 +0000 (11:08 +0200)]
Merge branch 'master' of framagit.org:simgrid/simgrid

6 days agoUse addr2line as a fallback for stacktraces when backtrace is not available
Martin Quinson [Thu, 16 May 2019 09:06:56 +0000 (11:06 +0200)]
Use addr2line as a fallback for stacktraces when backtrace is not available

6 days agoDisable LTO for pybind11 too when enable_lto=off.
Arnaud Giersch [Thu, 16 May 2019 07:37:59 +0000 (09:37 +0200)]
Disable LTO for pybind11 too when enable_lto=off.

Fix simgrid/simgrid#12 (FramaGit).

6 days agoClose simgrid/simgrid#7 (FramaGit).
Arnaud Giersch [Thu, 16 May 2019 07:02:21 +0000 (09:02 +0200)]
Close simgrid/simgrid#7 (FramaGit).

6 days agoMerge branch 'master' of https://framagit.org/simgrid/simgrid
Frederic Suter [Thu, 16 May 2019 06:44:48 +0000 (08:44 +0200)]
Merge branch 'master' of https://framagit.org/simgrid/simgrid

6 days agomc: tiny simplifications and cosmetics (even some snake_casing)
Martin Quinson [Thu, 16 May 2019 00:15:44 +0000 (02:15 +0200)]
mc: tiny simplifications and cosmetics (even some snake_casing)

6 days agomc: inline two functions
Martin Quinson [Thu, 16 May 2019 00:01:35 +0000 (02:01 +0200)]
mc: inline two functions

6 days agomc: useless cleanups
Martin Quinson [Wed, 15 May 2019 23:46:24 +0000 (01:46 +0200)]
mc: useless cleanups

6 days agomc::Buffer: no need for mmap type now that KSM is gone
Martin Quinson [Wed, 15 May 2019 23:26:51 +0000 (01:26 +0200)]
mc::Buffer: no need for mmap type now that KSM is gone

6 days agomc: kill model-check/ksm option. Was not activated because not very useful
Martin Quinson [Wed, 15 May 2019 23:03:28 +0000 (01:03 +0200)]
mc: kill model-check/ksm option. Was not activated because not very useful

It's probably a pity, but I need to simplify this code to get the
grasp back.

6 days agosay mmap is not ready for privatization in SunOS.
Augustin Degomme [Wed, 15 May 2019 23:51:00 +0000 (01:51 +0200)]
say mmap is not ready for privatization in SunOS.
Would need memory_map to handle /proc/pid/map file https://docs.oracle.com/cd/E19253-01/816-5174/proc-4/index.html

6 days agofix mess with quotes
Augustin Degomme [Wed, 15 May 2019 23:43:13 +0000 (01:43 +0200)]
fix mess with quotes

6 days agomc: simplification: do not repeat information in parameters
Martin Quinson [Wed, 15 May 2019 22:18:32 +0000 (00:18 +0200)]
mc: simplification: do not repeat information in parameters

6 days agomc: Kill a C type and use the C++ one
Martin Quinson [Wed, 15 May 2019 21:43:39 +0000 (23:43 +0200)]
mc: Kill a C type and use the C++ one

+cosmetics

6 days agocmake: do not build the documentation by default
Martin Quinson [Wed, 15 May 2019 19:33:59 +0000 (21:33 +0200)]
cmake: do not build the documentation by default

6 days agomc/compare: reduce the scope of some variables
Martin Quinson [Wed, 15 May 2019 13:58:18 +0000 (15:58 +0200)]
mc/compare: reduce the scope of some variables

6 days agoRemove option 'model-check/record': paths are recorded in any cases
Martin Quinson [Wed, 15 May 2019 12:49:34 +0000 (14:49 +0200)]
Remove option 'model-check/record': paths are recorded in any cases

6 days ago[mc] enable model-check/record by default, and cosmetics
Martin Quinson [Tue, 14 May 2019 20:44:41 +0000 (22:44 +0200)]
[mc] enable model-check/record by default, and cosmetics

7 days agoFix new/delete mismatch.
Arnaud Giersch [Wed, 15 May 2019 07:55:33 +0000 (09:55 +0200)]
Fix new/delete mismatch.

7 days agoGet rid of "local" keyword for sh.
Arnaud Giersch [Tue, 14 May 2019 15:16:22 +0000 (17:16 +0200)]
Get rid of "local" keyword for sh.

It's not specified by POSIX and not available on Solaris.
Simply use "local_" prefix for local variables.

For more information, see
https://stackoverflow.com/questions/18597697/posix-compliant-way-to-scope-variables-to-a-function-in-a-shell-script

7 days agoFix PMPI_Error_string.
Arnaud Giersch [Tue, 14 May 2019 13:23:18 +0000 (15:23 +0200)]
Fix PMPI_Error_string.

MPI_MAX_ERROR_STRING was wrongly used for higher error code.
Use snprintf and ensure the string is properly null terminated.

7 days agoSpecialize return types.
Arnaud Giersch [Tue, 14 May 2019 09:43:21 +0000 (11:43 +0200)]
Specialize return types.

7 days agoSnake case.
Arnaud Giersch [Tue, 14 May 2019 09:21:01 +0000 (11:21 +0200)]
Snake case.

7 days agoAdd "override" specifier.
Arnaud Giersch [Tue, 14 May 2019 09:12:19 +0000 (11:12 +0200)]
Add "override" specifier.

7 days agowarnings-=2
Augustin Degomme [Tue, 14 May 2019 14:21:44 +0000 (16:21 +0200)]
warnings-=2

7 days agoreplace useless strncpy by a memcpy
Augustin Degomme [Tue, 14 May 2019 13:44:48 +0000 (15:44 +0200)]
replace useless strncpy by a memcpy

7 days ago[doc] fix another doxygen friendliness issue
Millian Poquet [Tue, 14 May 2019 12:59:00 +0000 (14:59 +0200)]
[doc] fix another doxygen friendliness issue

8 days ago[doc] fix links (URL, internal ref + duplication)
Millian Poquet [Tue, 14 May 2019 12:54:28 +0000 (14:54 +0200)]
[doc] fix links (URL, internal ref + duplication)

8 days ago[doc] trailing space cosmetics
Millian Poquet [Tue, 14 May 2019 12:52:02 +0000 (14:52 +0200)]
[doc] trailing space cosmetics

8 days ago[doc] fix warnings, cosmetics
Millian Poquet [Tue, 14 May 2019 12:30:43 +0000 (14:30 +0200)]
[doc] fix warnings, cosmetics

8 days ago[doc] fix warnings, cosmetics
Millian Poquet [Tue, 14 May 2019 12:09:14 +0000 (14:09 +0200)]
[doc] fix warnings, cosmetics

8 days agofix some errors and warnings in the doc generation
Martin Quinson [Tue, 14 May 2019 11:59:38 +0000 (13:59 +0200)]
fix some errors and warnings in the doc generation