Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Mix create_host and add_route during platf creation.
authorBruno Donassolo <bruno.donassolo@inria.fr>
Tue, 4 May 2021 08:07:44 +0000 (10:07 +0200)
committerBruno Donassolo <bruno.donassolo@inria.fr>
Tue, 4 May 2021 08:11:46 +0000 (10:11 +0200)
commit12ff962f066e304dbaa22cafcd6d5c7adb67c33c
treedd39ee69fe6ddb4db511e3eccef09d797458b7d6
parentd735a547f3200668329feb310844a6839ea21ac3
Mix create_host and add_route during platf creation.

Allow creating hosts and adding CPUs during platform description.

With the C++ interface, it's easy to mix the creation of hosts and
routes in the same for loop. However, the old code had the assumption
that all hosts were created when we added new routes. This info was used
to initialize the routing_table.

Change code to resize the routing table when necessary (number of
elements in the zone has changed).

Zones with the error: Full and Floyd

Added UTs for this case.
MANIFEST.in
examples/cpp/clusters-multicpu/s4u-clusters-multicpu.cpp
include/simgrid/kernel/routing/FloydZone.hpp
include/simgrid/kernel/routing/FullZone.hpp
src/kernel/routing/DijkstraZone_test.cpp [new file with mode: 0644]
src/kernel/routing/FloydZone.cpp
src/kernel/routing/FloydZone_test.cpp [new file with mode: 0644]
src/kernel/routing/FullZone.cpp
src/kernel/routing/FullZone_test.cpp [new file with mode: 0644]
src/kernel/routing/StarZone_test.cpp
tools/cmake/Tests.cmake