Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
simgrid.git
2 weeks agogitlab-ci: use release as a testing script to reduce building time stable
Martin Quinson [Thu, 6 Jun 2019 13:41:25 +0000 (15:41 +0200)]
gitlab-ci: use release as a testing script to reduce building time

2 weeks agoJenkins host name changed since last dot release
Martin Quinson [Thu, 6 Jun 2019 13:38:16 +0000 (15:38 +0200)]
Jenkins host name changed since last dot release

2 weeks agoprepare the release of 3.22.4
Martin Quinson [Thu, 6 Jun 2019 12:32:47 +0000 (14:32 +0200)]
prepare the release of 3.22.4

2 weeks agokill some remaining bits that tested lmm::lagrange
Martin Quinson [Thu, 6 Jun 2019 07:20:46 +0000 (09:20 +0200)]
kill some remaining bits that tested lmm::lagrange

2 weeks agoLMM: rename sharing_weight into sharing_penalty for sake of clarity
Martin Quinson [Wed, 5 Jun 2019 15:07:28 +0000 (17:07 +0200)]
LMM: rename sharing_weight into sharing_penalty for sake of clarity

This is similar to what just happened in surf yesterday. It allows:
  -   cnst.usage_ += elem.consumption_weight / elem.variable->sharing_weight_;
  +   cnst.usage_ += elem.consumption_weight / elem.variable->sharing_penalty_;
which seems far more understandable to me.

I'm glad I finally got the will to do this boooooring cleanup, after
hours of being puzzled whether a sharing_weight is actually an
advantage or a drawback for the action in the LMM. The answer was "it
depends on whether you are in app, surf or LMM". Now, you know that
having a high priority is the opposite of having a high penalty, and
things should be less intricate.

2 weeks agoBuild nice python source packages
Martin Quinson [Wed, 5 Jun 2019 09:57:27 +0000 (11:57 +0200)]
Build nice python source packages

This should be enough to solve framagit#6.

2 weeks agoRename cmake option 'minimal_java' into 'minimal-bindings'
Martin Quinson [Wed, 5 Jun 2019 09:55:08 +0000 (11:55 +0200)]
Rename cmake option 'minimal_java' into 'minimal-bindings'

I will use it for python too.

2 weeks agoci: don't check external links because of the false positives
Martin Quinson [Tue, 4 Jun 2019 16:25:05 +0000 (18:25 +0200)]
ci: don't check external links because of the false positives

2 weeks agobuilding the pages needs to rebuild python beforehand
Martin Quinson [Tue, 4 Jun 2019 16:20:54 +0000 (18:20 +0200)]
building the pages needs to rebuild python beforehand

2 weeks agoRename Action::priority into Action::sharing_penalty in surf as it should be
Martin Quinson [Tue, 4 Jun 2019 16:09:38 +0000 (18:09 +0200)]
Rename Action::priority into Action::sharing_penalty in surf as it should be

This commit contains the following at the s4u -> surf boundary:
  -        .set_priority(1. / priority_)
  +        .set_sharing_penalty(1. / priority_)
The old version was just sick.

This should be further propagated down into LMM, where the
sharing_penalty is still named "sharing_weight". Not a helpful name
for the poor souls who didn't wrote an hdr on this topic :)

2 weeks agobug fixed++
Martin Quinson [Tue, 4 Jun 2019 14:21:24 +0000 (16:21 +0200)]
bug fixed++

2 weeks agoHide the destructor of resource::Model
Martin Quinson [Tue, 4 Jun 2019 09:57:18 +0000 (11:57 +0200)]
Hide the destructor of resource::Model

If "~Model() = default" is in the header file, the compilation fails
with the following message:

 /usr/include/simgrid/kernel/resource/Model.hpp:35:11:   required from here
 /usr/include/c++/6/bits/unique_ptr.h:74:22: error: invalid application of 'sizeof' to incomplete type 'simgrid::kernel::lmm::System'
   static_assert(sizeof(_Tp)>0,

That's too bad because simgrid::kernel::lmm::System is not a public
type. This fails in particular when compiling simgrid-FMI.

Hiding the destructor in the cpp as done with this commit works better
because lmm::System is visible from Model.cpp

2 weeks agosonar: kill unused parameter
Martin Quinson [Tue, 4 Jun 2019 08:18:00 +0000 (10:18 +0200)]
sonar: kill unused parameter

3 weeks agoMC: kill an unused field and a useless method
Martin Quinson [Mon, 3 Jun 2019 23:41:47 +0000 (01:41 +0200)]
MC: kill an unused field and a useless method

3 weeks agoMC: kill an unused field
Martin Quinson [Mon, 3 Jun 2019 23:39:15 +0000 (01:39 +0200)]
MC: kill an unused field

3 weeks agoSimplify mc::Region::read()
Martin Quinson [Mon, 3 Jun 2019 23:10:37 +0000 (01:10 +0200)]
Simplify mc::Region::read()

- Inline a function, and simplify the flow now that we only have Chunked regions
- Make it a method (it was a C function)

3 weeks agoCleanups in class mc::Region
Martin Quinson [Mon, 3 Jun 2019 22:38:19 +0000 (00:38 +0200)]
Cleanups in class mc::Region

- former name was mc::RegionSnapshot
- please sonar: mark fields private, and kill copy constructor
- mc::Region cannot be of type Unknown anymore
- and other cleanups

3 weeks agolmm: cosmetics in documentation (reduce redundency)
Martin Quinson [Mon, 3 Jun 2019 13:33:34 +0000 (15:33 +0200)]
lmm: cosmetics in documentation (reduce redundency)

3 weeks agofinish the removal of lagrange-related things
Martin Quinson [Mon, 3 Jun 2019 13:30:48 +0000 (15:30 +0200)]
finish the removal of lagrange-related things

3 weeks agolmm: rename some fields for clarity
Martin Quinson [Mon, 3 Jun 2019 13:17:44 +0000 (15:17 +0200)]
lmm: rename some fields for clarity

3 weeks agoRemove the lagrange-based models
Martin Quinson [Mon, 3 Jun 2019 13:02:38 +0000 (15:02 +0200)]
Remove the lagrange-based models

Sorry Pedro, but this simplification really makes me happy :)

3 weeks agolmm::{Variable,Constraint}: Obey our coding conventions wrt fields' names
Martin Quinson [Mon, 3 Jun 2019 12:31:15 +0000 (14:31 +0200)]
lmm::{Variable,Constraint}: Obey our coding conventions wrt fields' names

3 weeks agoAvoid a >>unused parameter ‘host’<< error on user code
Martin Quinson [Sun, 2 Jun 2019 19:11:46 +0000 (21:11 +0200)]
Avoid a >>unused parameter ‘host’<< error on user code

3 weeks agoReduce code duplication.
Arnaud Giersch [Mon, 3 Jun 2019 11:57:27 +0000 (13:57 +0200)]
Reduce code duplication.

3 weeks agoCosmetics.
Arnaud Giersch [Mon, 3 Jun 2019 11:39:09 +0000 (13:39 +0200)]
Cosmetics.

3 weeks agoDon't leave an empty catch block.
Arnaud Giersch [Mon, 3 Jun 2019 11:37:07 +0000 (13:37 +0200)]
Don't leave an empty catch block.

3 weeks agoUnused parameters argc/argv.
Arnaud Giersch [Mon, 3 Jun 2019 09:44:08 +0000 (11:44 +0200)]
Unused parameters argc/argv.

3 weeks ago[sonar] Replace private inheritance with a private member.
Arnaud Giersch [Mon, 3 Jun 2019 08:53:15 +0000 (10:53 +0200)]
[sonar] Replace private inheritance with a private member.

3 weeks agoAdd gemm.c to sonar exclusions, this code is not ours.
Arnaud Giersch [Mon, 3 Jun 2019 08:42:15 +0000 (10:42 +0200)]
Add gemm.c to sonar exclusions, this code is not ours.

3 weeks agofix MC builds on gcc
Martin Quinson [Sat, 1 Jun 2019 11:46:21 +0000 (13:46 +0200)]
fix MC builds on gcc

3 weeks agofix lua builds
Martin Quinson [Sat, 1 Jun 2019 10:45:17 +0000 (12:45 +0200)]
fix lua builds

3 weeks agoMC: rename some files
Martin Quinson [Fri, 31 May 2019 21:58:11 +0000 (23:58 +0200)]
MC: rename some files

3 weeks agoMC: finish emptying an old C file
Martin Quinson [Fri, 31 May 2019 21:47:30 +0000 (23:47 +0200)]
MC: finish emptying an old C file

Its content was dispatched to classes (that's still a bit cheatty in
inspect/ but that's in progress)

3 weeks agoMC: inline a function that is now trivial
Martin Quinson [Fri, 31 May 2019 21:31:59 +0000 (23:31 +0200)]
MC: inline a function that is now trivial

3 weeks agorename a file
Martin Quinson [Fri, 31 May 2019 21:08:09 +0000 (23:08 +0200)]
rename a file

3 weeks agofix build on stable debian
Martin Quinson [Fri, 31 May 2019 13:38:09 +0000 (15:38 +0200)]
fix build on stable debian

3 weeks agofix make dist, stupid f*** bummer
Martin Quinson [Fri, 31 May 2019 13:22:21 +0000 (15:22 +0200)]
fix make dist, stupid f*** bummer

3 weeks agopoint to the right sonar repo
Martin Quinson [Fri, 31 May 2019 13:15:04 +0000 (15:15 +0200)]
point to the right sonar repo

3 weeks agocleanup after the split of kernel/resource/profile into several classes
Martin Quinson [Fri, 31 May 2019 13:11:22 +0000 (15:11 +0200)]
cleanup after the split of kernel/resource/profile into several classes

3 weeks agoMC::Region: Also remove the permanent_addr thingy
Martin Quinson [Fri, 31 May 2019 10:36:16 +0000 (12:36 +0200)]
MC::Region: Also remove the permanent_addr thingy

That was needed for the MMAP privatization of SMPI, which is gone.

3 weeks agomc: cosmetics
Martin Quinson [Fri, 31 May 2019 10:22:56 +0000 (12:22 +0200)]
mc: cosmetics

3 weeks agoMerge branch 'tracemgrsplit' into 'master'
Martin Quinson [Fri, 31 May 2019 12:31:12 +0000 (14:31 +0200)]
Merge branch 'tracemgrsplit' into 'master'

Splitting trace_mgr into several files, one per class

See merge request simgrid/simgrid!4

3 weeks agofix make dist
Martin Quinson [Thu, 30 May 2019 14:47:33 +0000 (16:47 +0200)]
fix make dist

3 weeks agofix gitlab-ci.yml
Martin Quinson [Thu, 30 May 2019 14:45:33 +0000 (16:45 +0200)]
fix gitlab-ci.yml

3 weeks agoinline a function
Martin Quinson [Thu, 30 May 2019 14:43:01 +0000 (16:43 +0200)]
inline a function

3 weeks agokill the RegionSparse subclass now that there is no alternative
Martin Quinson [Thu, 30 May 2019 14:06:25 +0000 (16:06 +0200)]
kill the RegionSparse subclass now that there is no alternative

3 weeks agoMC: cosmetics (fight the mc_model_checker singleton)
Martin Quinson [Thu, 30 May 2019 10:45:55 +0000 (12:45 +0200)]
MC: cosmetics (fight the mc_model_checker singleton)

3 weeks agoMC: remove support for flat storage of regions
Martin Quinson [Thu, 30 May 2019 10:32:28 +0000 (12:32 +0200)]
MC: remove support for flat storage of regions

This is another move to unclutter the MC source code. The road is
still long, but I'm progressing.

3 weeks agoci: don't rebuild specifically to build and linkcheck the doc
Martin Quinson [Thu, 30 May 2019 10:31:23 +0000 (12:31 +0200)]
ci: don't rebuild specifically to build and linkcheck the doc

3 weeks agoMC::remote: snake case
Martin Quinson [Thu, 30 May 2019 09:38:17 +0000 (11:38 +0200)]
MC::remote: snake case

3 weeks agomc: Also remove the process_index
Martin Quinson [Wed, 29 May 2019 22:12:08 +0000 (00:12 +0200)]
mc: Also remove the process_index

This was used to switch between MMAP private segments

3 weeks agoKill the support for privatized SMPI in MC mode
Martin Quinson [Wed, 29 May 2019 14:51:11 +0000 (16:51 +0200)]
Kill the support for privatized SMPI in MC mode

3 weeks agoUpdate sonar-project.properties key
Augustin Degomme [Wed, 29 May 2019 12:23:06 +0000 (14:23 +0200)]
Update sonar-project.properties key

3 weeks agosonar: move the simgrid project in the simgrid organization
Martin Quinson [Wed, 29 May 2019 09:26:52 +0000 (11:26 +0200)]
sonar: move the simgrid project in the simgrid organization

3 weeks agoDon't pretend we can move a parallel exec
Martin Quinson [Tue, 28 May 2019 15:45:16 +0000 (17:45 +0200)]
Don't pretend we can move a parallel exec

3 weeks agomc: snake_case the checkers
Martin Quinson [Tue, 28 May 2019 09:23:03 +0000 (11:23 +0200)]
mc: snake_case the checkers

3 weeks agomc: snake_case a class
Martin Quinson [Tue, 28 May 2019 08:34:49 +0000 (10:34 +0200)]
mc: snake_case a class

3 weeks agomc: change 3 static functions into private methods
Martin Quinson [Mon, 27 May 2019 23:18:24 +0000 (01:18 +0200)]
mc: change 3 static functions into private methods

And inline a fourth one

3 weeks agomc: move code around in the hope that it will sort itself while doing so
Martin Quinson [Mon, 27 May 2019 23:11:00 +0000 (01:11 +0200)]
mc: move code around in the hope that it will sort itself while doing so

3 weeks agoignore java from coverage
Martin Quinson [Mon, 27 May 2019 22:41:41 +0000 (00:41 +0200)]
ignore java from coverage

3 weeks agoMissing include (HAVE_MREMAP).
Arnaud Giersch [Tue, 28 May 2019 08:53:45 +0000 (10:53 +0200)]
Missing include (HAVE_MREMAP).

4 weeks agomc: tricks to improve the coverage
Martin Quinson [Sun, 26 May 2019 22:34:10 +0000 (00:34 +0200)]
mc: tricks to improve the coverage

- change "if (..) xbt_die" into xbt_assert(..)
- kill dead code

4 weeks agofix non-MC builds when libevent is not found
Martin Quinson [Sun, 26 May 2019 21:36:28 +0000 (23:36 +0200)]
fix non-MC builds when libevent is not found

4 weeks agofurther tidy the includes in MC
Martin Quinson [Sun, 26 May 2019 21:17:00 +0000 (23:17 +0200)]
further tidy the includes in MC

4 weeks agomc: kill some useless includes
Martin Quinson [Sat, 25 May 2019 21:28:05 +0000 (23:28 +0200)]
mc: kill some useless includes

4 weeks agoSpecify that we use framagit as a gitlab instance
Martin Quinson [Fri, 24 May 2019 19:06:00 +0000 (21:06 +0200)]
Specify that we use framagit as a gitlab instance

Also, don't generate the link for generated pages, and remove the
exception about them in the linkchecker.

4 weeks agonope sonar, that's not some commented code
Martin Quinson [Fri, 24 May 2019 19:01:43 +0000 (21:01 +0200)]
nope sonar, that's not some commented code

4 weeks agoFix project_description.sh.
Arnaud Giersch [Thu, 23 May 2019 21:18:26 +0000 (23:18 +0200)]
Fix project_description.sh.

4 weeks agoUseless include.
Arnaud Giersch [Tue, 21 May 2019 21:46:31 +0000 (23:46 +0200)]
Useless include.

4 weeks agofix some typo in the comments, just to launch a rebuild on servers
Martin Quinson [Thu, 23 May 2019 16:31:07 +0000 (18:31 +0200)]
fix some typo in the comments, just to launch a rebuild on servers

Having jenkins all white after restart is annoying

4 weeks agoPlug a memleak
Martin Quinson [Thu, 23 May 2019 08:08:49 +0000 (10:08 +0200)]
Plug a memleak

4 weeks agodocker: drop root priviledge in our tutorial images
Martin Quinson [Wed, 22 May 2019 22:02:03 +0000 (00:02 +0200)]
docker: drop root priviledge in our tutorial images

4 weeks agoMore borken link fixed
Martin Quinson [Wed, 22 May 2019 13:41:22 +0000 (15:41 +0200)]
More borken link fixed

One was hidden in the doxygen comments and other ones required some
changes on the website.

4 weeks agodoc: fix some borken links
Martin Quinson [Wed, 22 May 2019 13:04:16 +0000 (15:04 +0200)]
doc: fix some borken links

Some by using a newer version, some by simply removing the link, some
by ignoring them in linkchecker

4 weeks agolinkcheck doc: we won't fix javasphinx ourselves
Martin Quinson [Wed, 22 May 2019 12:11:08 +0000 (14:11 +0200)]
linkcheck doc: we won't fix javasphinx ourselves

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

4 weeks 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 weeks 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 weeks 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 weeks 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 weeks 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 weeks 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 weeks 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.

4 weeks 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

4 weeks 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";
}

4 weeks 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.

5 weeks 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

5 weeks 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?

5 weeks 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.

5 weeks 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

5 weeks 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

5 weeks 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

5 weeks 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 (?)

5 weeks 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

5 weeks 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

5 weeks 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

5 weeks 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

5 weeks 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

5 weeks 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

5 weeks 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"