diff --git a/content/shmem_ctx_session_start.tex b/content/shmem_ctx_session_start.tex index 9f7c6bb4..7c771d24 100644 --- a/content/shmem_ctx_session_start.tex +++ b/content/shmem_ctx_session_start.tex @@ -97,32 +97,6 @@ about \VAR{shmem\_ctx\_session\_config\_t} parameters. } \hline -\sessiontablerow{\LibConstRef{SHMEM\_CTX\_SESSION\_SAME\_AMO}}{ - The \VAR{SHMEM\_CTX\_SESSION\_SAME\_AMO} hint indicates the session will contain - a series of calls to AMO and/or signaling routines that do not differ in - their signal operators (see Section \ref{subsec:signal_operator}), atomic - operations (see Section \ref{sec:amo}), or datatypes (see - Tables~\ref{stdamotypes} and \ref{extamotypes}). - For example, this hint would apply to a session that includes \textit{only} - calls to \FUNC{shmem\_int\_atomic\_inc}. - However, this hint would not apply to a session that includes both calls to - \FUNC{shmem\_int\_atomic\_inc} and \FUNC{shmem\_int\_atomic\_fetch}, - because the operation \textit{fetch} differs from \textit{increment}. - (Similarly, this hint would not apply to a session that includes both calls to - \FUNC{shmem\_int\_atomic\_inc} and \FUNC{shmem\_long\_atomic\_inc}, - because the datatype \textit{long} differs from \textit{int}.) - The \VAR{SHMEM\_CTX\_SESSION\_SAME\_AMO} hint is applicable to sessions that - exclusively use \textit{either} the \VAR{SHMEM\_SIGNAL\_SET} or the - \VAR{SHMEM\_SIGNAL\_ADD} operators in signaling operations, but not both. - This hint does not restrict the application from calling other (non-atomic) - RMA routines within the session. - - The \VAR{total\_ops} field of \VAR{config} indicates the expected maximum - number of calls to \openshmem RMA routines within the session. - See Section~\ref{subsec:shmem_ctx_session_config_t} for details about - \VAR{shmem\_ctx\_session\_config\_t} parameters. - } \hline - \sessiontableend \apinotes{ diff --git a/example_code/shmem_ctx_session_example.c b/example_code/shmem_ctx_session_example.c index 45f036ff..8c96f49f 100644 --- a/example_code/shmem_ctx_session_example.c +++ b/example_code/shmem_ctx_session_example.c @@ -28,9 +28,8 @@ int main(void) { long config_mask; config.total_ops = N_UPDATES; config_mask = SHMEM_CTX_SESSION_TOTAL_OPS; - long options = SHMEM_CTX_SESSION_BATCH | SHMEM_CTX_SESSION_SAME_AMO; - shmem_ctx_session_start(ctx, options, &config, config_mask); + shmem_ctx_session_start(ctx, SHMEM_CTX_SESSION_BATCH, &config, config_mask); for (size_t i = 0; i < N_UPDATES; i++) { int random_pe = rand() % npes;