Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
simgrid.git
7 years ago[SMPI Examples] Add C-example for call location tracing.
Christian Heinrich [Fri, 27 May 2016 12:51:57 +0000 (14:51 +0200)]
[SMPI Examples] Add C-example for call location tracing.

This is just a copy of the trace_simple test. It does check
though that the call location is present in the trace file.

7 years ago[SMPI] Fix headers for call-location tracing.
Christian Heinrich [Fri, 27 May 2016 12:50:29 +0000 (14:50 +0200)]
[SMPI] Fix headers for call-location tracing.

smpi_trace_set_call_location() accesses smpi_process_data(). The data
field however is not initialized until MPI_Init() gets called; hence,
a segfault is caused.

This issue does not exist for the fortran wrappers!

The solution is to initialize the field just before the MPI_Init call.

7 years ago[SMPI] Fix smpicc.in for call-location tracing.
Christian Heinrich [Thu, 26 May 2016 18:57:54 +0000 (20:57 +0200)]
[SMPI] Fix smpicc.in for call-location tracing.

I had to add the compile switch to CMDARGS, not CMDLINE...

7 years ago[Examples] Cmake indentation
Christian Heinrich [Thu, 26 May 2016 15:26:16 +0000 (17:26 +0200)]
[Examples] Cmake indentation

7 years agomake clean before make all for sonarqube
Martin Quinson [Fri, 27 May 2016 11:26:51 +0000 (13:26 +0200)]
make clean before make all for sonarqube

7 years agoMerge branch 'master' of scm.gforge.inria.fr:/gitroot/simgrid/simgrid
Martin Quinson [Fri, 27 May 2016 11:24:50 +0000 (13:24 +0200)]
Merge branch 'master' of scm.gforge.inria.fr:/gitroot/simgrid/simgrid

7 years agoSmelly code, smelly code, how are they writing you
Frederic Suter [Fri, 27 May 2016 10:14:10 +0000 (12:14 +0200)]
Smelly code, smelly code, how are they writing you
Smelly code, smelly code it's not your fault...

7 years agohave a try at solving some SonarQube issues
Frederic Suter [Fri, 27 May 2016 09:11:23 +0000 (11:11 +0200)]
have a try at solving some SonarQube issues

7 years agosonar: typo
Martin Quinson [Fri, 27 May 2016 00:28:51 +0000 (02:28 +0200)]
sonar: typo

7 years agosonar: also test include and testsuite (but not the foreign tests)
Martin Quinson [Fri, 27 May 2016 00:10:25 +0000 (02:10 +0200)]
sonar: also test include and testsuite (but not the foreign tests)

7 years agosonar: reduce verbosity now that it works
Martin Quinson [Thu, 26 May 2016 23:57:23 +0000 (01:57 +0200)]
sonar: reduce verbosity now that it works

7 years agodoc: sonarqube is working for us \o/
Martin Quinson [Thu, 26 May 2016 23:33:07 +0000 (01:33 +0200)]
doc: sonarqube is working for us \o/

7 years agosonar: dont specify the language we need -> take all of them
Martin Quinson [Thu, 26 May 2016 23:34:46 +0000 (01:34 +0200)]
sonar: dont specify the language we need -> take all of them

7 years agothe github project was renamed
Martin Quinson [Thu, 26 May 2016 23:28:27 +0000 (01:28 +0200)]
the github project was renamed

7 years agosonar: try to also analyse C and Java source files
Martin Quinson [Thu, 26 May 2016 23:22:42 +0000 (01:22 +0200)]
sonar: try to also analyse C and Java source files

7 years agomake it work with -Werror=undef
Martin Quinson [Thu, 26 May 2016 23:08:47 +0000 (01:08 +0200)]
make it work with -Werror=undef

7 years agofix config with maintainer mode enabled
Martin Quinson [Thu, 26 May 2016 23:03:00 +0000 (01:03 +0200)]
fix config with maintainer mode enabled

7 years agoFix make distcheck
Martin Quinson [Thu, 26 May 2016 23:01:08 +0000 (01:01 +0200)]
Fix make distcheck

7 years agodoc: explain how to setup your own project
Martin Quinson [Thu, 26 May 2016 22:58:31 +0000 (00:58 +0200)]
doc: explain how to setup your own project

7 years agosonar: fix syntax in build script
Martin Quinson [Thu, 26 May 2016 22:58:07 +0000 (00:58 +0200)]
sonar: fix syntax in build script

7 years agosonar: verbose mode, and verify examples too
Martin Quinson [Thu, 26 May 2016 22:43:13 +0000 (00:43 +0200)]
sonar: verbose mode, and verify examples too

7 years agosonarqube improvements
Martin Quinson [Thu, 26 May 2016 21:51:27 +0000 (23:51 +0200)]
sonarqube improvements

- only trigger sonarqube on linux
- regenerate a new token, and put it in the travis config on website
  (Otherwise the token is exposed in our git, which is not a good idea)
- use the right make target
- Commit the sonar config file, stupid me

7 years agouse unordered_map instead of map for sake of speed
Martin Quinson [Thu, 26 May 2016 22:22:05 +0000 (00:22 +0200)]
use unordered_map instead of map for sake of speed

an also hopefully to avoid a FTBFS on travis:

/home/travis/build/simgrid/simgrid/src/smpi/private.hpp:13:36: error:
  wrong number of template arguments (2, should be 4)

/usr/include/boost/detail/container_fwd.hpp:132:73: error: provided
  for ‘template<class Key, class T, class Compare, class Allocator>
  class std::map’

7 years agocopyright header+include everything in ifdef+cosmetics
Martin Quinson [Thu, 26 May 2016 22:00:42 +0000 (00:00 +0200)]
copyright header+include everything in ifdef+cosmetics

7 years agothe project was renamed
Martin Quinson [Thu, 26 May 2016 21:46:56 +0000 (23:46 +0200)]
the project was renamed

7 years agoMerge branch 'master' of scm.gforge.inria.fr:/gitroot/simgrid/simgrid
Martin Quinson [Thu, 26 May 2016 20:41:02 +0000 (22:41 +0200)]
Merge branch 'master' of scm.gforge.inria.fr:/gitroot/simgrid/simgrid

7 years agotry to run sonarqube on travis
Martin Quinson [Thu, 26 May 2016 20:40:51 +0000 (22:40 +0200)]
try to run sonarqube on travis

7 years ago[SMPI] Remove outcommented include from mpi.h
Christian Heinrich [Thu, 26 May 2016 15:11:58 +0000 (17:11 +0200)]
[SMPI] Remove outcommented include from mpi.h

This comment was not required and should have been removed in
0ffe46c97f312f9af2b6eb0c4068a84d4523fb10

7 years agoMove some C++ helpers in xbt/
Gabriel Corona [Thu, 26 May 2016 14:01:59 +0000 (16:01 +0200)]
Move some C++ helpers in xbt/

7 years ago[SMPI/INSTR] Header cleanup.
Christian Heinrich [Thu, 26 May 2016 13:38:51 +0000 (15:38 +0200)]
[SMPI/INSTR] Header cleanup.

This removes nasty includes such as src/instr/instr_smpi.h
and moves other includes to the right location as well.

7 years agoactually say how to use lua platform stuff
Martin Quinson [Thu, 26 May 2016 13:26:21 +0000 (15:26 +0200)]
actually say how to use lua platform stuff

7 years ago[simix] Declare the real type of the argument od run_kernel()
Gabriel Corona [Thu, 26 May 2016 11:18:31 +0000 (13:18 +0200)]
[simix] Declare the real type of the argument od run_kernel()

7 years ago[INSTR] Rename paje headers for call-location tracing
Christian Heinrich [Thu, 26 May 2016 10:37:35 +0000 (12:37 +0200)]
[INSTR] Rename paje headers for call-location tracing

We cannot call these values 'Filename' and 'Linenumber' because
they're reserved and will be ignored by pj_dump.

7 years ago[simix] Do not need a space bewteen simcall name and arguments
Gabriel Corona [Thu, 26 May 2016 10:20:25 +0000 (12:20 +0200)]
[simix] Do not need a space bewteen simcall name and arguments

7 years ago[simix] Simplify simcalls.py
Gabriel Corona [Thu, 26 May 2016 10:04:35 +0000 (12:04 +0200)]
[simix] Simplify simcalls.py

7 years ago[simix] Update the documentation of simcalls.in
Gabriel Corona [Thu, 26 May 2016 09:11:01 +0000 (11:11 +0200)]
[simix] Update the documentation of simcalls.in

7 years ago[simix] Infer Proc/Func type from signature and use attribute for blocking simcalls
Gabriel Corona [Thu, 26 May 2016 09:03:15 +0000 (11:03 +0200)]
[simix] Infer Proc/Func type from signature and use attribute for blocking simcalls

7 years ago[simix] Use a C-like syntax for simcalls.in
Gabriel Corona [Thu, 26 May 2016 07:35:42 +0000 (09:35 +0200)]
[simix] Use a C-like syntax for simcalls.in

7 years ago[simix] Remove the notion of casted type in the simcall input language
Gabriel Corona [Wed, 25 May 2016 14:35:10 +0000 (16:35 +0200)]
[simix] Remove the notion of casted type in the simcall input language

The C++ template magic is now responsible for this.

7 years ago[simix] Use C++ templates for generating the marshaling/unmashaling code
Gabriel Corona [Wed, 25 May 2016 10:21:46 +0000 (12:21 +0200)]
[simix] Use C++ templates for generating the marshaling/unmashaling code

The idea is to move away from code generation as much as possible.
popping_bodies.cpp file is mostly useless with this modification.

7 years ago[simix] Remove useless parameter in the type list of simcalls.py
Gabriel Corona [Wed, 25 May 2016 09:23:04 +0000 (11:23 +0200)]
[simix] Remove useless parameter in the type list of simcalls.py

7 years agopopulate simix::Exec ctor
Martin Quinson [Thu, 26 May 2016 07:38:54 +0000 (09:38 +0200)]
populate simix::Exec ctor

7 years agodoc cleanups
Martin Quinson [Thu, 26 May 2016 07:06:39 +0000 (09:06 +0200)]
doc cleanups

7 years agodoc: fix broken references
Martin Quinson [Thu, 26 May 2016 07:01:10 +0000 (09:01 +0200)]
doc: fix broken references

7 years agoshort note on describing the platf with lua
Martin Quinson [Wed, 25 May 2016 19:42:24 +0000 (21:42 +0200)]
short note on describing the platf with lua

7 years ago[SMPI] Fix #include of private header.
Christian Heinrich [Wed, 25 May 2016 16:39:20 +0000 (18:39 +0200)]
[SMPI] Fix #include of private header.

The file src/instr/instr_smpi.h is still included,
but only if TRACE_CALL_LOCATION is set. I need to fix this
later, too.

This commit also moves a private function to the
correct header (smpi/private.hpp)

7 years ago[simix] Remove simcall_HANDLER_process_create() as well
Gabriel Corona [Wed, 25 May 2016 09:10:14 +0000 (11:10 +0200)]
[simix] Remove simcall_HANDLER_process_create() as well

7 years ago[simix] Remove the process_create simcall
Gabriel Corona [Wed, 25 May 2016 08:13:16 +0000 (10:13 +0200)]
[simix] Remove the process_create simcall

Use simgrid::simix::kernel() instead.

7 years ago[xbt] Don't return nullptr in simgrid::xbt::string
Gabriel Corona [Wed, 25 May 2016 07:57:39 +0000 (09:57 +0200)]
[xbt] Don't return nullptr in simgrid::xbt::string

This is consistent with the behaviour of std::string.

7 years ago[smx] Fix simcalls.py
Gabriel Corona [Tue, 24 May 2016 11:19:03 +0000 (13:19 +0200)]
[smx] Fix simcalls.py

7 years agoWe only have one packet-level simulator underneath
Martin Quinson [Tue, 24 May 2016 20:10:05 +0000 (22:10 +0200)]
We only have one packet-level simulator underneath

7 years ago[Changelog] Move new entry to 3.14...
Christian Heinrich [Tue, 24 May 2016 12:22:16 +0000 (14:22 +0200)]
[Changelog] Move new entry to 3.14...

7 years ago[mc] Fix remote access to the new Process structure
Gabriel Corona [Mon, 23 May 2016 12:17:27 +0000 (14:17 +0200)]
[mc] Fix remote access to the new Process structure

7 years ago[Changelog] Added call location tracing.
Christian Heinrich [Mon, 23 May 2016 13:14:48 +0000 (15:14 +0200)]
[Changelog] Added call location tracing.

7 years ago[CMAKE/SMPI] Automatically generate header files for call location tracing.
Christian Heinrich [Mon, 23 May 2016 13:01:33 +0000 (15:01 +0200)]
[CMAKE/SMPI] Automatically generate header files for call location tracing.

The generated header files are still under version control.
Maybe we need to remove them?

7 years ago[s4u] Add missing XBT_PUBLIC()
Gabriel Corona [Mon, 23 May 2016 09:35:36 +0000 (11:35 +0200)]
[s4u] Add missing XBT_PUBLIC()

7 years ago[s4u] Move actions by the current actor in the this_actor namespace
Gabriel Corona [Mon, 23 May 2016 08:55:08 +0000 (10:55 +0200)]
[s4u] Move actions by the current actor in the this_actor namespace

This mimics the design of std::thread and std::this_thread.

We might want to create a convenience base class for actor
implementations with those functions as instance methods.

7 years ago[s4u] Return void in worker classes
Gabriel Corona [Mon, 23 May 2016 08:51:10 +0000 (10:51 +0200)]
[s4u] Return void in worker classes

7 years ago[s4u] Use std::function<void()> instead of std::function<int()>
Gabriel Corona [Mon, 23 May 2016 08:04:19 +0000 (10:04 +0200)]
[s4u] Use std::function<void()> instead of std::function<int()>

We don't do anything with the int result anyway.

7 years ago[simix] Use the closure-based timer API
Gabriel Corona [Fri, 20 May 2016 15:15:21 +0000 (17:15 +0200)]
[simix] Use the closure-based timer API

7 years ago[simix] Use std::function in timer and add overloads
Gabriel Corona [Fri, 20 May 2016 15:06:57 +0000 (17:06 +0200)]
[simix] Use std::function in timer and add overloads

7 years ago[s4u] Use the std::function simcall_process_create() to create the actor
Gabriel Corona [Fri, 20 May 2016 13:50:14 +0000 (15:50 +0200)]
[s4u] Use the std::function simcall_process_create() to create the actor

It is not clear what should happen when autorestarting a
process. Currently, the new Actor receive a reinitalized state which
is different from what was happening before this sequence of commits.

7 years ago[simix] Wrap (xbt_main_func_t, argc, argv) in a std::function everywhere
Gabriel Corona [Fri, 20 May 2016 13:37:26 +0000 (15:37 +0200)]
[simix] Wrap (xbt_main_func_t, argc, argv) in a std::function everywhere

SIMIX_process_get_code() is a casuality of this refactoring: it does
not make sens in this design.

7 years ago[simix] Create a (fake) simcall for creating a process directly from a simgrid::simix...
Gabriel Corona [Fri, 20 May 2016 11:50:17 +0000 (13:50 +0200)]
[simix] Create a (fake) simcall for creating a process directly from a simgrid::simix::args

7 years ago[simix] Use simgrid::simix::args in MSG
Gabriel Corona [Fri, 20 May 2016 11:39:33 +0000 (13:39 +0200)]
[simix] Use simgrid::simix::args in MSG

The main missing bit is the simcall.

7 years ago[simix] C++-based ownership of process name and arguments
Gabriel Corona [Fri, 20 May 2016 10:23:15 +0000 (12:23 +0200)]
[simix] C++-based ownership of process name and arguments

* Process and ProcessArg now use a std::string instead of a a char*. A
  consequence it that there now no difference bewteen the "" name and
  the nullptr process name (only the former is possible).

* simix::simgrid::args now always copy the arguments.

* simix::simgrid::args now as a .to_argv() method used to copy its
  argv.

7 years ago[simix] Rename s_smx_process_arg to simgrid::simix::ProcessArg
Gabriel Corona [Fri, 20 May 2016 08:16:49 +0000 (10:16 +0200)]
[simix] Rename s_smx_process_arg to simgrid::simix::ProcessArg

7 years ago[simix] Use std::string for s_smx_process_arg
Gabriel Corona [Fri, 20 May 2016 08:13:39 +0000 (10:13 +0200)]
[simix] Use std::string for s_smx_process_arg

7 years ago[simix] Remove SIMIX_process_create_from_wrapper()
Gabriel Corona [Fri, 20 May 2016 08:00:19 +0000 (10:00 +0200)]
[simix] Remove SIMIX_process_create_from_wrapper()

7 years agoUse new/delete for smx_process_arg_t
Gabriel Corona [Fri, 20 May 2016 07:53:05 +0000 (09:53 +0200)]
Use new/delete for smx_process_arg_t

7 years agoMake SIMIX_context_new() accept std::function
Gabriel Corona [Thu, 19 May 2016 14:20:06 +0000 (16:20 +0200)]
Make SIMIX_context_new() accept std::function

7 years agoMake s_smx_process_t a C++ class (constructor, new, delete)
Gabriel Corona [Wed, 18 May 2016 15:08:06 +0000 (17:08 +0200)]
Make s_smx_process_t a C++ class (constructor, new, delete)

7 years ago[s4u] Move the actor logic out of the Actor class
Gabriel Corona [Wed, 18 May 2016 11:33:41 +0000 (13:33 +0200)]
[s4u] Move the actor logic out of the Actor class

7 years agoReorganize the documentation
Martin Quinson [Sun, 22 May 2016 20:14:44 +0000 (22:14 +0200)]
Reorganize the documentation

The skeleton now has to be fleshed

7 years agoMerge branch 'master' of scm.gforge.inria.fr:/gitroot/simgrid/simgrid
Martin Quinson [Sat, 21 May 2016 19:02:51 +0000 (21:02 +0200)]
Merge branch 'master' of scm.gforge.inria.fr:/gitroot/simgrid/simgrid

7 years agoshuffle a bit the MSG and SimDag documentation
Martin Quinson [Sat, 21 May 2016 05:21:41 +0000 (07:21 +0200)]
shuffle a bit the MSG and SimDag documentation

7 years agoremove some cruft from doxygen
Martin Quinson [Sat, 21 May 2016 04:36:48 +0000 (06:36 +0200)]
remove some cruft from doxygen

7 years agoMSG doc tweakings
Martin Quinson [Sat, 21 May 2016 04:08:18 +0000 (06:08 +0200)]
MSG doc tweakings

7 years ago[CMAKE] Remove index_create.pl from CMakeLists.txt
Christian Heinrich [Fri, 20 May 2016 22:40:19 +0000 (00:40 +0200)]
[CMAKE] Remove index_create.pl from CMakeLists.txt

This file was deleted in a01a7e62056a8ca98b42a0c5c91d0eb84c28c2ef
but was still erroneously listed.

7 years agoMerge branch 'master' of scm.gforge.inria.fr:/gitroot/simgrid/simgrid
Martin Quinson [Fri, 20 May 2016 18:26:39 +0000 (20:26 +0200)]
Merge branch 'master' of scm.gforge.inria.fr:/gitroot/simgrid/simgrid

7 years ago[CMAKE] Install header files for call-location tracing.
Christian Heinrich [Fri, 20 May 2016 17:26:54 +0000 (19:26 +0200)]
[CMAKE] Install header files for call-location tracing.

7 years ago[TOOLS] Modified generated header to include the path.
Christian Heinrich [Fri, 20 May 2016 17:22:17 +0000 (19:22 +0200)]
[TOOLS] Modified generated header to include the path.

7 years ago[SMPI] Update header files for call-location tracing.
Christian Heinrich [Fri, 20 May 2016 17:21:43 +0000 (19:21 +0200)]
[SMPI] Update header files for call-location tracing.

7 years ago[SMPI] Fix segfaults introduced by 772f8dd3b48f0c9dff20f67a4c2ea1cbbe673f8d
Christian Heinrich [Fri, 20 May 2016 16:54:32 +0000 (18:54 +0200)]
[SMPI] Fix segfaults introduced by 772f8dd3b48f0c9dff20f67a4c2ea1cbbe673f8d

This changeset fixes tests such as msg-trace-masterworker.

7 years agovarious doc cleanups
Martin Quinson [Fri, 20 May 2016 13:48:08 +0000 (15:48 +0200)]
various doc cleanups

7 years agoOnly run doxygen once
Martin Quinson [Fri, 20 May 2016 13:47:46 +0000 (15:47 +0200)]
Only run doxygen once

7 years agoMerge branch 'master' of scm.gforge.inria.fr:/gitroot/simgrid/simgrid
Martin Quinson [Fri, 20 May 2016 13:42:08 +0000 (15:42 +0200)]
Merge branch 'master' of scm.gforge.inria.fr:/gitroot/simgrid/simgrid

7 years agoFAQ: kill a painfully outdated Q&A
Martin Quinson [Thu, 19 May 2016 18:23:01 +0000 (20:23 +0200)]
FAQ: kill a painfully outdated Q&A

7 years ago[CMAKE] Add src/instr/instr_smpi.h to package
Christian Heinrich [Thu, 19 May 2016 18:13:44 +0000 (20:13 +0200)]
[CMAKE] Add src/instr/instr_smpi.h to package

7 years agoRevert "[SMPI] Fix #include in smpi.h"
Christian Heinrich [Thu, 19 May 2016 18:05:23 +0000 (20:05 +0200)]
Revert "[SMPI] Fix #include in smpi.h"

This reverts commit 37a6e2ae6b4a2f84d9819ecff7dc45aad582a29b.

7 years ago[SMPI] Fix #include in smpi.h
Christian Heinrich [Thu, 19 May 2016 18:01:59 +0000 (20:01 +0200)]
[SMPI] Fix #include in smpi.h

7 years agodoc: don't build the full index as doxygen now provides a 'search' box
Martin Quinson [Thu, 19 May 2016 17:34:02 +0000 (19:34 +0200)]
doc: don't build the full index as doxygen now provides a 'search' box

7 years ago[DOC] Add doc for call-location aware simulation.
Christian Heinrich [Thu, 19 May 2016 17:18:06 +0000 (19:18 +0200)]
[DOC] Add doc for call-location aware simulation.

7 years ago[SMPI] Call location: Cleanups.
Christian Heinrich [Fri, 22 Apr 2016 17:33:47 +0000 (19:33 +0200)]
[SMPI] Call location: Cleanups.

7 years ago[SMPI] Introduce variable computation speeds.
Christian Heinrich [Wed, 20 Apr 2016 17:18:44 +0000 (19:18 +0200)]
[SMPI] Introduce variable computation speeds.

This commit introduces the possibility to use a csv file that
contains sections of the code that should be sped up or slowed down
according to the second column in that specific file.

One line could look like this:
exchange_1.f:30:exchange_1.f:130,1.18244559422142

This means that computation time between line numbers 30 and 130 offile exchange_1.f
should be slowed down by a factor of 1.18.

Of course, this only makes sense if computation time is calculated.

Activation via the newly introduced smpi/comp-adjustment-file CLI cfg param:
--cfg=smpi/comp-adjustment-file:/path/to/file.csv

7 years ago[SMPI] Introduce smpi/trace-call-location cfg-switch
Christian Heinrich [Mon, 11 Apr 2016 15:32:09 +0000 (17:32 +0200)]
[SMPI] Introduce smpi/trace-call-location cfg-switch

This switch enables/disables call locations for MPI calls in
traces.

7 years ago[SMPICC] Make call location conditional
Christian Heinrich [Mon, 11 Apr 2016 15:34:16 +0000 (17:34 +0200)]
[SMPICC] Make call location conditional

This commit introduces the -enable-call-location compile-time
switch for smpicc.

7 years ago[SMPIFF] Make call location conditional.
Christian Heinrich [Mon, 11 Apr 2016 13:18:28 +0000 (15:18 +0200)]
[SMPIFF] Make call location conditional.

This commit introduces the -enable-call-location
compile-time switch for smpiff.

7 years ago[SMPI/INSTR] Wrap filenames in traces in quot. marks
Christian Heinrich [Mon, 4 Apr 2016 14:00:19 +0000 (16:00 +0200)]
[SMPI/INSTR] Wrap filenames in traces in quot. marks

7 years ago[SMPI] Modified smpiff.in to enable caller location
Christian Heinrich [Fri, 1 Apr 2016 14:35:16 +0000 (16:35 +0200)]
[SMPI] Modified smpiff.in to enable caller location

This injects pre-processor directives that are then used
to replace MPI calls within the user code.