Skip to content

Commit 6ce12d6

Browse files
committed
scr: return false from need_checkpoint if user does not enable conditions
1 parent 37b4a4f commit 6ce12d6

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

doc/rst/users/api.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,11 @@ Upon returning from :code:`SCR_Need_checkpoint`,
271271
and it is set to :code:`0` otherwise.
272272
The call returns the same value in :code:`flag` on all processes.
273273

274+
Various configuration settings determine the conditions
275+
in which :code:`SCR_Need_checkpoint` sets :code:`flag` to 1.
276+
See :code:`SCR_CHECKPOINT_INTERVAL`, :code:`SCR_CHECKPOINT_SECONDS`,
277+
and :code:`SCR_CHECKPOINT_OVERHEAD` in :ref:`sec-config`.
278+
274279
SCR_Start_output
275280
^^^^^^^^^^^^^^^^
276281

src/scr.c

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3092,15 +3092,6 @@ int SCR_Need_checkpoint(int* flag)
30923092
}
30933093
}
30943094
}
3095-
3096-
/* no way to determine whether we need to checkpoint, so always say yes */
3097-
if (!*flag &&
3098-
scr_checkpoint_interval <= 0 &&
3099-
scr_checkpoint_seconds <= 0 &&
3100-
scr_checkpoint_overhead <= 0)
3101-
{
3102-
*flag = 1;
3103-
}
31043095
}
31053096

31063097
/* rank 0 broadcasts the decision */

0 commit comments

Comments
 (0)