[Scalablecr-discuss] [RFC] Algorithm for triggering halt
Brought to you by:
kathrynmohror,
moody20
|
From: Maksym P. <mpl...@os...> - 2016-02-18 14:16:07
|
Hi,
I have a request for comment regarding function
"scr_bool_check_halt_and_decrement" in scr.c.
This function checks if halting condition is met, and if yes rank 0
broadcasts decision to halt and all processes call exit(0).
I don't really understand the way how rank zero checks the conditions.
Essentially it checks the conditions in following way:
if (A) {
/* do A */
scr_halt(A)
}
if (B) {
/* do B */
scr_halt(B)
}
if (C) {
/* do C */
scr_halt(C)
}
Why doesn't rank zero use if-then-else-if construct?
Is it intentional? Do you have some priorities in the order how the
reasons should be stored?
The implication of current order that you have to initiate flush too
several times. I'm not sure if that's significant, but I'd like to hear
from you if you intentionally did what you did.
--
Regards,
Maksym Planeta
|