Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
simgrid.git
4 years ago[simix] Port RawContext to C++
Gabriel Corona [Fri, 4 Dec 2015 16:08:47 +0000 (17:08 +0100)]
[simix] Port RawContext to C++

4 years ago[simix] Port UContext to C++
Gabriel Corona [Fri, 4 Dec 2015 14:08:46 +0000 (15:08 +0100)]
[simix] Port UContext to C++

4 years ago[simix] Port ThreadContext to C++
Gabriel Corona [Fri, 4 Dec 2015 12:51:50 +0000 (13:51 +0100)]
[simix] Port ThreadContext to C++

4 years ago[simix] Move BoostContext to C++
Gabriel Corona [Thu, 3 Dec 2015 14:52:44 +0000 (15:52 +0100)]
[simix] Move BoostContext to C++

4 years ago[doc] Documentation about GDB+SMPI
Gabriel Corona [Mon, 7 Dec 2015 12:46:13 +0000 (13:46 +0100)]
[doc] Documentation about GDB+SMPI

4 years ago[xbt] Remove C++ std::is_trivial verification for xtd_new
Gabriel Corona [Mon, 7 Dec 2015 12:31:47 +0000 (13:31 +0100)]
[xbt] Remove C++ std::is_trivial verification for xtd_new

It doesn't work for some versions of compiler. Moreover, it does not
work very well with volatile fields which make the struct non-trivial
in C++.

4 years agoRename power->speed in the inner layer of the parsing
Martin Quinson [Fri, 4 Dec 2015 12:56:50 +0000 (13:56 +0100)]
Rename power->speed in the inner layer of the parsing

4 years agofurther rename power to speed in surf internals
Martin Quinson [Fri, 4 Dec 2015 12:28:38 +0000 (13:28 +0100)]
further rename power to speed in surf internals

4 years agoevery occurence of power in surf should be renamed to speed, as it is not the electic...
Martin Quinson [Fri, 4 Dec 2015 11:38:50 +0000 (12:38 +0100)]
every occurence of power in surf should be renamed to speed, as it is not the electical power

4 years agoMerge branch 'master' of scm.gforge.inria.fr:/gitroot/simgrid/simgrid
Martin Quinson [Thu, 3 Dec 2015 10:10:05 +0000 (11:10 +0100)]
Merge branch 'master' of scm.gforge.inria.fr:/gitroot/simgrid/simgrid

4 years agokill hollow doxygen comments
Martin Quinson [Thu, 3 Dec 2015 10:03:11 +0000 (11:03 +0100)]
kill hollow doxygen comments

4 years ago[simix] Switch to .cpp files
Gabriel Corona [Thu, 3 Dec 2015 09:44:01 +0000 (10:44 +0100)]
[simix] Switch to .cpp files

4 years agocosmetics
Martin Quinson [Wed, 2 Dec 2015 21:43:30 +0000 (22:43 +0100)]
cosmetics

4 years agono need to override stuff to the exact same content
Martin Quinson [Wed, 2 Dec 2015 21:06:51 +0000 (22:06 +0100)]
no need to override stuff to the exact same content

4 years agoinitialize fields at declaration, for clarity
Martin Quinson [Wed, 2 Dec 2015 20:56:20 +0000 (21:56 +0100)]
initialize fields at declaration, for clarity

4 years ago[surf] Move the basic cluster creation logic out of the callbacks
Gabriel Corona [Wed, 2 Dec 2015 14:00:52 +0000 (15:00 +0100)]
[surf] Move the basic cluster creation logic out of the callbacks

4 years ago[surf] Remove code for the cpu tag
Gabriel Corona [Wed, 2 Dec 2015 12:17:55 +0000 (13:17 +0100)]
[surf] Remove code for the cpu tag

4 years ago[surf] Remove sg_platf_ASRoute_cb
Gabriel Corona [Wed, 2 Dec 2015 10:47:42 +0000 (11:47 +0100)]
[surf] Remove sg_platf_ASRoute_cb

4 years ago[surf] Remove sg_platf_bypass{,AS}Route_cb
Gabriel Corona [Wed, 2 Dec 2015 10:45:08 +0000 (11:45 +0100)]
[surf] Remove sg_platf_bypass{,AS}Route_cb

4 years ago[surf] Remove sg_platf_trace_cb
Gabriel Corona [Wed, 2 Dec 2015 10:34:05 +0000 (11:34 +0100)]
[surf] Remove sg_platf_trace_cb

4 years ago[surf] Remove sg_trace_connect_cb
Gabriel Corona [Wed, 2 Dec 2015 10:19:37 +0000 (11:19 +0100)]
[surf] Remove sg_trace_connect_cb

4 years ago[surf] Remove sg_cabinet_cb
Gabriel Corona [Wed, 2 Dec 2015 10:18:04 +0000 (11:18 +0100)]
[surf] Remove sg_cabinet_cb

4 years ago[surf] Remove sg_platf_prop_cb
Gabriel Corona [Wed, 2 Dec 2015 10:03:09 +0000 (11:03 +0100)]
[surf] Remove sg_platf_prop_cb

4 years ago[surf] Remove sg_platf_route_cb
Gabriel Corona [Wed, 2 Dec 2015 09:50:21 +0000 (10:50 +0100)]
[surf] Remove sg_platf_route_cb

4 years ago[surf] Remove sg_platf_peer_cb
Gabriel Corona [Tue, 1 Dec 2015 15:54:49 +0000 (16:54 +0100)]
[surf] Remove sg_platf_peer_cb

4 years ago[surf] Remove sg_platf_host_cb
Gabriel Corona [Tue, 1 Dec 2015 15:52:19 +0000 (16:52 +0100)]
[surf] Remove sg_platf_host_cb

4 years ago[surf] Remove sg_platf_host_link_cb
Gabriel Corona [Tue, 1 Dec 2015 15:48:31 +0000 (16:48 +0100)]
[surf] Remove sg_platf_host_link_cb

4 years ago[surf] Remove orphaned declaration
Gabriel Corona [Tue, 1 Dec 2015 15:46:14 +0000 (16:46 +0100)]
[surf] Remove orphaned declaration

4 years ago[surf] Remove sg_ callbacks for AS
Gabriel Corona [Tue, 1 Dec 2015 14:13:53 +0000 (15:13 +0100)]
[surf] Remove sg_ callbacks for AS

4 years ago[surf] Remove sg_platf_router_cb
Gabriel Corona [Tue, 1 Dec 2015 13:56:50 +0000 (14:56 +0100)]
[surf] Remove sg_platf_router_cb

4 years ago[surf] Remove one sg_router_cb
Gabriel Corona [Tue, 1 Dec 2015 13:13:52 +0000 (14:13 +0100)]
[surf] Remove one sg_router_cb

4 years ago[surf] Remove one router callback
Gabriel Corona [Tue, 1 Dec 2015 12:24:49 +0000 (13:24 +0100)]
[surf] Remove one router callback

4 years ago[surf] Removed orphaned declaration
Gabriel Corona [Tue, 1 Dec 2015 11:11:31 +0000 (12:11 +0100)]
[surf] Removed orphaned declaration

4 years ago[surf] Remove sg_platf_mount_cb
Gabriel Corona [Tue, 1 Dec 2015 11:07:57 +0000 (12:07 +0100)]
[surf] Remove sg_platf_mount_cb

4 years ago[surf] Remove sg_platf_mstorage_cb
Gabriel Corona [Tue, 1 Dec 2015 11:05:40 +0000 (12:05 +0100)]
[surf] Remove sg_platf_mstorage_cb

4 years ago[surf] Remove unused stuff in storage
Gabriel Corona [Tue, 1 Dec 2015 11:02:02 +0000 (12:02 +0100)]
[surf] Remove unused stuff in storage

4 years ago[surf] Remove sg_platf_storage_type_cb
Gabriel Corona [Tue, 1 Dec 2015 11:00:11 +0000 (12:00 +0100)]
[surf] Remove sg_platf_storage_type_cb

4 years ago[surf] Remove sg_platf_storage_cb
Gabriel Corona [Tue, 1 Dec 2015 10:45:57 +0000 (11:45 +0100)]
[surf] Remove sg_platf_storage_cb

4 years ago[surf] Rename callback registration functions
Gabriel Corona [Mon, 30 Nov 2015 15:00:49 +0000 (16:00 +0100)]
[surf] Rename callback registration functions

4 years ago[surf] Expose (and use) storageCreatedCallbacks in C
Gabriel Corona [Mon, 30 Nov 2015 14:55:58 +0000 (15:55 +0100)]
[surf] Expose (and use) storageCreatedCallbacks in C

4 years ago[surf] Expose (and use) hostCreatedCallbacks in C
Gabriel Corona [Mon, 30 Nov 2015 13:15:47 +0000 (14:15 +0100)]
[surf] Expose (and use) hostCreatedCallbacks in C

4 years ago[simix] Fix warning
Gabriel Corona [Mon, 30 Nov 2015 12:57:39 +0000 (13:57 +0100)]
[simix] Fix warning

4 years ago[simix] Fix signatures of callbacks (timer and kill_process_function)
Gabriel Corona [Mon, 30 Nov 2015 11:06:58 +0000 (12:06 +0100)]
[simix] Fix signatures of callbacks (timer and kill_process_function)

* Conversion between pointer-to-pointer and pointer to data is
  undefined behaviour.

* Moreover, this hides error. The kill_process_function was called in
  the timer with only one argument whreas it expects two arguments
  (the killed process and the killer process).

* Simpligy the signature of SIMIX_function_register_process_kill() to
  only take a single argument. The second one is never used.

4 years ago[platf] Move sg_platf_new_process in platf.cpp
Gabriel Corona [Mon, 30 Nov 2015 10:39:38 +0000 (11:39 +0100)]
[platf] Move sg_platf_new_process in platf.cpp

4 years ago[platf] Kill sg_process_cb
Gabriel Corona [Mon, 30 Nov 2015 09:21:18 +0000 (10:21 +0100)]
[platf] Kill sg_process_cb

4 years ago[simix] Make some static variables local
Gabriel Corona [Mon, 30 Nov 2015 09:02:00 +0000 (10:02 +0100)]
[simix] Make some static variables local

Because they are local variables in disguise.

4 years ago[surf] Move the host ns3 hook to routingEdgeCreatedCallbacks
Gabriel Corona [Fri, 27 Nov 2015 15:03:36 +0000 (16:03 +0100)]
[surf] Move the host ns3 hook to routingEdgeCreatedCallbacks

4 years ago[surf] Add routingEdgeCreatedCallbacks for RoutingEdge
Gabriel Corona [Fri, 27 Nov 2015 11:58:02 +0000 (12:58 +0100)]
[surf] Add routingEdgeCreatedCallbacks for RoutingEdge

4 years agono need to override the super() method to the exact same content
Martin Quinson [Sun, 29 Nov 2015 23:05:33 +0000 (00:05 +0100)]
no need to override the super() method to the exact same content

4 years agorename some symbols around Link::isShared to make their purpose clear
Martin Quinson [Sun, 29 Nov 2015 16:58:37 +0000 (17:58 +0100)]
rename some symbols around Link::isShared to make their purpose clear

4 years agoreimplement energy plugin using Host callbacks (not Cpu ones)
Martin Quinson [Sat, 28 Nov 2015 21:27:53 +0000 (22:27 +0100)]
reimplement energy plugin using Host callbacks (not Cpu ones)

4 years agoprotect against multiply create hosts in one location only
Martin Quinson [Sat, 28 Nov 2015 20:44:20 +0000 (21:44 +0100)]
protect against multiply create hosts in one location only

4 years agouseless cosmetic
Martin Quinson [Sat, 28 Nov 2015 20:31:33 +0000 (21:31 +0100)]
useless cosmetic

4 years agopass netElm&CPU as parameter to the host constructor
Martin Quinson [Sat, 28 Nov 2015 20:29:07 +0000 (21:29 +0100)]
pass netElm&CPU as parameter to the host constructor

It was passed implicitly through the set of existing netElm and CPU.

4 years agothe fabric of RoutingEdges should return the create one
Martin Quinson [Sat, 28 Nov 2015 20:18:29 +0000 (21:18 +0100)]
the fabric of RoutingEdges should return the create one

4 years ago[surf] Change routing_parse_init() into routing_add_host()
Gabriel Corona [Fri, 27 Nov 2015 13:04:32 +0000 (14:04 +0100)]
[surf] Change routing_parse_init() into routing_add_host()

Do not depend on the parsing state in this function.

4 years ago[surf] Remove some layers of indirections in sg_platf_new_host()
Gabriel Corona [Fri, 27 Nov 2015 12:33:28 +0000 (13:33 +0100)]
[surf] Remove some layers of indirections in sg_platf_new_host()

4 years ago[surf] Remove power related methods from CpuL07
Gabriel Corona [Fri, 27 Nov 2015 10:25:44 +0000 (11:25 +0100)]
[surf] Remove power related methods from CpuL07

They are not implemented, not used anyway. Power is implemented in the
CPU.

4 years ago[surf] Switch instr_routing to C++
Gabriel Corona [Thu, 26 Nov 2015 09:35:37 +0000 (10:35 +0100)]
[surf] Switch instr_routing to C++

4 years ago[surf] Move host creation callbacks of Infiniband to hostCreatedCallbacks
Gabriel Corona [Thu, 26 Nov 2015 09:03:56 +0000 (10:03 +0100)]
[surf] Move host creation callbacks of Infiniband to hostCreatedCallbacks

4 years ago[ns3] Move host creation callbacks to hostCreatedCallbacks
Gabriel Corona [Thu, 26 Nov 2015 08:47:47 +0000 (09:47 +0100)]
[ns3] Move host creation callbacks to hostCreatedCallbacks

4 years ago[mc] Add missing copyright notices
Gabriel Corona [Wed, 25 Nov 2015 11:59:55 +0000 (12:59 +0100)]
[mc] Add missing copyright notices

4 years ago[mc] Better #includes
Gabriel Corona [Wed, 25 Nov 2015 11:56:44 +0000 (12:56 +0100)]
[mc] Better #includes

Use "#include src/mc/foo" instead of "#include foo"

4 years ago[java] Sync code generation with generated source code
Gabriel Corona [Wed, 25 Nov 2015 11:21:17 +0000 (12:21 +0100)]
[java] Sync code generation with generated source code

I modified a generated file directly :/

4 years ago[mc] Remove .. in #includes
Gabriel Corona [Wed, 25 Nov 2015 11:21:41 +0000 (12:21 +0100)]
[mc] Remove .. in #includes

4 years ago[ns3] Fix ns3 compilation
Gabriel Corona [Wed, 25 Nov 2015 11:02:59 +0000 (12:02 +0100)]
[ns3] Fix ns3 compilation

4 years agoMake HostL07 behave more like the regular Host
Martin Quinson [Wed, 25 Nov 2015 23:57:41 +0000 (00:57 +0100)]
Make HostL07 behave more like the regular Host

The methods execute() and sleep() were implemented directly in the
host, and the virtual functions in the cpu were implemented with a
DIE_IMPOSSIBLE.

Instead, HostL07 is dispatching the execute() and sleep() calls that
it gets from the higher layers to its CpuL07, just as any Host.

The goal is to kill HostL07 and just use a regular Host dispatching
*every* call to its CPU and RoutingEdge. Then, Host will be made part
of the public interface (simgrid::Host will offer the interface of
S4U::Host with the content of surf::Host).

4 years agohollow comments
Martin Quinson [Wed, 25 Nov 2015 22:36:31 +0000 (23:36 +0100)]
hollow comments

4 years agoremove an obsolete file (designed for SimGrid 3.4)
Martin Quinson [Wed, 25 Nov 2015 14:39:29 +0000 (15:39 +0100)]
remove an obsolete file (designed for SimGrid 3.4)

4 years ago[surf] Hardcode some of the sg_platf_host callbacks
Gabriel Corona [Wed, 25 Nov 2015 09:19:16 +0000 (10:19 +0100)]
[surf] Hardcode some of the sg_platf_host callbacks

The goal is to remove this layer of callbacks.

Moreover the order of execution of those callbacks is important.

Currently, it breaks the ability to have platform and deployment data
in the same XML however.

4 years ago[surf] Switch sg_platf to C++
Gabriel Corona [Wed, 25 Nov 2015 08:42:08 +0000 (09:42 +0100)]
[surf] Switch sg_platf to C++

Because we need it for the next commit.

4 years ago[surf] Don't free power_peak from the caller
Gabriel Corona [Tue, 24 Nov 2015 16:11:21 +0000 (17:11 +0100)]
[surf] Don't free power_peak from the caller

The code was giving the power_peak array to the callee. The callers
might still need the power_peak. Freeing it in the callee creates
dangling pointers in the callers.

Instead we consider power_peak as immutable in the callee and make a
private copy when needed instead of stealing it from the callers.

4 years ago[surf] move gap-related definition to the subclass where they belong
Martin Quinson [Tue, 24 Nov 2015 21:01:45 +0000 (22:01 +0100)]
[surf] move gap-related definition to the subclass where they belong

No need to overload higher classes with useless cruft

4 years agoComment the java stripping commands for now
Martin Quinson [Tue, 24 Nov 2015 19:16:57 +0000 (20:16 +0100)]
Comment the java stripping commands for now

Comment the lines instead of removing them, so that we can easily
reintroduce this in the future (the Mac workaround is not trivial)

This reverts and modifies commit 82c8c18086305a434d8965730f7a1ea93ddf141d.

4 years ago[java] Don't strip SOs in JARs
Gabriel Corona [Tue, 24 Nov 2015 16:39:47 +0000 (17:39 +0100)]
[java] Don't strip SOs in JARs

in order to be able to debug the native part of Java programs

4 years ago[xbt] C++ support for RngStream.h
Gabriel Corona [Tue, 24 Nov 2015 13:28:33 +0000 (14:28 +0100)]
[xbt] C++ support for RngStream.h

4 years ago[surf] Move VMCreatedCallbacks outside of constructor
Gabriel Corona [Tue, 24 Nov 2015 12:36:26 +0000 (13:36 +0100)]
[surf] Move VMCreatedCallbacks outside of constructor

4 years ago[surf] Move storageCreatedCallbacks outside of constructor
Gabriel Corona [Tue, 24 Nov 2015 12:31:42 +0000 (13:31 +0100)]
[surf] Move storageCreatedCallbacks outside of constructor

4 years ago[surf] Move networkLinkCreatedCallbacks outside of constructor
Gabriel Corona [Tue, 24 Nov 2015 12:18:37 +0000 (13:18 +0100)]
[surf] Move networkLinkCreatedCallbacks outside of constructor

4 years ago[surf] Factorize some CPU registration code in sg_host_surfcpu_register() (DRY)
Gabriel Corona [Tue, 24 Nov 2015 11:54:26 +0000 (12:54 +0100)]
[surf] Factorize some CPU registration code in sg_host_surfcpu_register() (DRY)

4 years ago[surf] Change CPU initialization
Gabriel Corona [Tue, 24 Nov 2015 10:27:18 +0000 (11:27 +0100)]
[surf] Change CPU initialization

- Move creation callbacks out of constructor (the object is not fully
constructed in the Host constructor).

- Do not call the setState virtual method in the constructor. This
  calls the stateChanged callbacks some of which expect the
  hostCreated callbacks to have been called.

4 years ago[surf] Move the hostCreatedCallbacks after the constructor
Gabriel Corona [Tue, 24 Nov 2015 10:06:04 +0000 (11:06 +0100)]
[surf] Move the hostCreatedCallbacks after the constructor

The callbacks were called in the Host constructor which is at the very
beginning og the object construction: the fields of the derived
classes are not initialized at this point and the correct virtual
methods are not available.

4 years ago[surf] Move network_constant host callback from sg_platf_host_cb to hostCreatedCallbacks
Gabriel Corona [Mon, 23 Nov 2015 16:00:24 +0000 (17:00 +0100)]
[surf] Move network_constant host callback from sg_platf_host_cb to hostCreatedCallbacks

4 years agoChanged the MathJax address to get equations working again in the HTML documentation.
chaix [Mon, 23 Nov 2015 16:37:36 +0000 (18:37 +0200)]
Changed the MathJax address to get equations working again in the HTML documentation.
Corrected some typos in SURF_lmm documentation.

4 years ago[mc] Remove mcer_ignore.cpp
Gabriel Corona [Fri, 20 Nov 2015 15:29:07 +0000 (16:29 +0100)]
[mc] Remove mcer_ignore.cpp

4 years ago[mc] Move ignore_local_variable() into Process
Gabriel Corona [Fri, 20 Nov 2015 15:09:25 +0000 (16:09 +0100)]
[mc] Move ignore_local_variable() into Process

4 years ago[mc] Move heap_ignore to Process
Gabriel Corona [Fri, 20 Nov 2015 12:52:24 +0000 (13:52 +0100)]
[mc] Move heap_ignore to Process

4 years ago[mc] Move stacks_areas into Process
Gabriel Corona [Fri, 20 Nov 2015 11:31:43 +0000 (12:31 +0100)]
[mc] Move stacks_areas into Process

4 years ago[mc] Remove MCer_ignore_global_variable
Gabriel Corona [Fri, 20 Nov 2015 10:50:37 +0000 (11:50 +0100)]
[mc] Remove MCer_ignore_global_variable

4 years ago[mc] Remove useless bits
Gabriel Corona [Fri, 20 Nov 2015 09:43:18 +0000 (10:43 +0100)]
[mc] Remove useless bits

4 years ago[surf] Wrap the sigc++ API to provide the same API as boost::signals2
Gabriel Corona [Mon, 23 Nov 2015 15:18:27 +0000 (16:18 +0100)]
[surf] Wrap the sigc++ API to provide the same API as boost::signals2

4 years ago[surf] Fix build with sigc++
Gabriel Corona [Mon, 23 Nov 2015 15:17:51 +0000 (16:17 +0100)]
[surf] Fix build with sigc++

4 years agoFix Java build
Martin Quinson [Sun, 22 Nov 2015 23:45:22 +0000 (00:45 +0100)]
Fix Java build

java CPU surf binding used to register itself to the list of models that
must be called through shareResources directly. But this was useless
because CPU models are invoked from the host models (leading to
dupplicated lines in the tesh file).

Now that it is not possible anymore to register to that list of models
(which was removed), we must fix the java CPU surf binding.

4 years ago[appveyor] update to what symengine is doing
Martin Quinson [Sun, 22 Nov 2015 23:22:12 +0000 (00:22 +0100)]
[appveyor] update to what symengine is doing

This introduces a new appveyor script in charge of downloading a given
file, dealing with appveyor's transient network errors.

4 years agoI hate hollow doxygen comments
Martin Quinson [Sun, 22 Nov 2015 23:17:20 +0000 (00:17 +0100)]
I hate hollow doxygen comments

4 years agoSimplify how shareResources() is called in each models
Martin Quinson [Sun, 22 Nov 2015 23:08:33 +0000 (00:08 +0100)]
Simplify how shareResources() is called in each models

- Host->shareResources() is in charge of calling the ones of Cpu, Net
  and Storage
- VM->shareResources() must be called after the Host one

So, don't make a list `model_list_invoke` of two elements that must be
called in a very specific order. Instead, directly call these methodes
in surf_solve().

A next step could be to put the content of Host->shareResources and
maybe VM->shareResources() in surf_solve so that Host and VM can stop
being resources just to dispatch calls to the real resources.

But L07 must be dealed with before (eg by moving the content of
Host07->shareResource() into Cpu07->shareResources() and leaving
Link07->shareResources() empty).

4 years agorename a global to make its purpose clear (hopefully)
Martin Quinson [Sun, 22 Nov 2015 21:57:06 +0000 (22:57 +0100)]
rename a global to make its purpose clear (hopefully)

4 years agokill more dead code
Martin Quinson [Sun, 22 Nov 2015 18:28:09 +0000 (19:28 +0100)]
kill more dead code

4 years agokill dead code
Martin Quinson [Sat, 21 Nov 2015 15:01:24 +0000 (16:01 +0100)]
kill dead code

4 years ago[mc] Move MC-related out of simix and into mc where it belongs
Gabriel Corona [Tue, 17 Nov 2015 10:02:31 +0000 (11:02 +0100)]
[mc] Move MC-related out of simix and into mc where it belongs