Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[SMPI] Change sampling behavior.
authordegomme <adegomme@users.noreply.github.com>
Tue, 19 Feb 2019 15:54:41 +0000 (16:54 +0100)
committerdegomme <adegomme@users.noreply.github.com>
Tue, 19 Feb 2019 15:54:57 +0000 (16:54 +0100)
commit030f7802748d2e268d26355cba6f254c8995edcf
tree1e6dcfd66bc639c78b612aecee1b02a938e02df3
parent2985599616be49bee6d18c0d8ff6d3da46d208fe
[SMPI] Change sampling behavior.
Before, in sampling mode, each sampled loop was executed once, and the process would inject the time it took immediately.
This lead to a simcall being executed, which would then yield execution and possibly give the hand to another process.
This was destroying the caches, and resulted in over-estimated times.

This modification holds the injected time until the end of the sampling phase, trying to do the most of it on one process, without swapping contextes in between.

TODO :
- check what happens if num sampling iters < num iters/process (mandatory swapping)
Issues might be triggered if process leaves sampling before reaching the given bounds first.
src/smpi/internals/smpi_bench.cpp
teshsuite/smpi/macro-sample/macro-sample.c
teshsuite/smpi/macro-sample/macro-sample.tesh