Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Runs examples with C++ platform description
authorBruno Donassolo <bruno.donassolo@inria.fr>
Mon, 15 Mar 2021 17:45:25 +0000 (18:45 +0100)
committerBruno Donassolo <bruno.donassolo@inria.fr>
Fri, 4 Jun 2021 11:42:15 +0000 (13:42 +0200)
commitfa15ed6668695b02e85ec71de10240199df84cc4
tree77a321697449b0e777975c55f1728645743931e3
parent68c4f3d5e544c5fe8e2a67a5607d7a268a0e59a1
Runs examples with C++ platform description

*Loading platform
- Generates library files for C++ platforms. They can be loaded by the
engine using the same load_platform method.

- The Engine::load_platform will verify if the extension is .so, it'll
open the file using dlopen and search for the load_platform symbol.

- The platform so must contain a load_platform function that will be
called by the engine to generate the platform properly.

*Implementing an example
- Added a CMakeLists.txt in examples/platform to generate the .so for
each example.

- Pass to the tesh files a new variable "libdir" containing the
directory where the libraries are located.
MANIFEST.in
examples/cpp/CMakeLists.txt
examples/cpp/actor-create/s4u-actor-create.cpp
examples/cpp/actor-create/s4u-actor-create.tesh
examples/platforms/CMakeLists.txt [new file with mode: 0644]
examples/platforms/small_platform.cpp [new file with mode: 0644]
src/s4u/s4u_Engine.cpp
tools/cmake/DefinePackages.cmake