ECP-VeloC / VELOC

Very-Low Overhead Checkpointing System
http://veloc.rtfd.io
MIT License
53 stars 22 forks source link

Use MPI_Exscan to compute offsets? #42

Open adammoody opened 1 year ago

adammoody commented 1 year ago

Just browsing through code, I noticed this pattern:

https://github.com/ECP-VeloC/VELOC/blob/c8576889ffda81a8200b916a04f63d5380d6282d/src/lib/client.cpp#L194-L199

I suspect you might be able to replace that code segment with an MPI_Scan or MPI_Exscan, which takes O(log P) time instead of O(P).