Wrong computation time for multicore execution after pstate change
Edit: with the correct platform file
We have found a bug in parallel tasks on multicore machines with the latest commit of simgrid (commit cc7f416d). It is similar to issue #37 (closed).
MWE
The attached MWE computes the same computation-only ptask on a multicore machine before and after changing the pstate of this machine.
Execution logs
[monocore:master_simu:(1) 20.000000] [boot_multicore/INFO] Computed on machine monocore. Took 20 s
[monocore:master_simu:(1) 30.000000] [boot_multicore/INFO] Computed on machine multicore (2 cores). Took 10 s
[monocore:master_simu:(1) 30.000000] [boot_multicore/INFO] Switching machine multicore to pstate 1.
[monocore:master_simu:(1) 30.000000] [boot_multicore/INFO] Switching back to pstate 0.
[monocore:master_simu:(1) 50.000000] [boot_multicore/INFO] Computed on machine multicore (2 cores). Took 20 s
Expected behavior
Computed on machine monocore. Took 20 s
Computed on machine multicore (2 cores). Took 10 s
Switching machine multicore to pstate 1.
Switching back to pstate 0.
Computed on machine multicore (2 cores). Took 10 s <--------------------------------------------
Edited by Mema5