Commit 28b9c7f9 authored by James Dinan's avatar James Dinan
Browse files

[svn-r10767] RMA Lock-op-unlock opimization parameter.

Added a paremeter to enable/disable the RMA lock-op-unlock merging
optimization.

Reviewer: buntinas
parent b17d9e6e
......@@ -2018,7 +2018,8 @@ int MPIDI_Win_unlock(int dest, MPID_Win *win_ptr)
/* TODO: MPI-3: Add lock_all->op optimization. */
/* LOCK-OP-UNLOCK Optimization -- This optimization can't be used if we
have already requested the lock. */
if ( rma_op && rma_op->type == MPIDI_RMA_LOCK &&
if ( MPIR_PARAM_RMA_MERGE_LOCK_OP_UNLOCK &&
rma_op && rma_op->type == MPIDI_RMA_LOCK &&
rma_op->next->next == NULL &&
rma_op->next->type != MPIDI_RMA_COMPARE_AND_SWAP &&
rma_op->next->type != MPIDI_RMA_FETCH_AND_OP &&
......
......@@ -226,6 +226,14 @@ parameters:
Issue a request for the passive target RMA lock immediately. Default
behavior is to defer the lock request until the call to MPI_Win_unlock.
- category : rma
name : RMA_MERGE_LOCK_OP_UNLOCK
type : boolean
default : true
description : >-
Enable/disable an optimization that merges lock, op, and unlock
messages, for single-operation passive target epochs.
##############################################################
# intranode communication parameters
- category : intranode
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment