Changeset 3593b5


Ignore:
Timestamp:
02/06/13 09:53:36 (15 months ago)
Author:
James Dinan <dinan@…>
Branches:
master
Children:
9aa1c3
Parents:
460cf5c
git-author:
James Dinan <dinan@…> (02/06/13 09:50:21)
git-committer:
James Dinan <dinan@…> (02/06/13 09:53:36)
Message:

PERF: Overlap req/wait for lock-all on shr men win

Send out all lock requests before waiting for lock acquisition. This
should improve the performance of lock-all operations on shared memory
windows.

Reviewer: goodell

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mpid/ch3/src/ch3u_rma_sync.c

    r460cf5c r3593b5  
    23772377            mpi_errno = MPIDI_CH3I_Send_lock_msg(i, MPI_LOCK_SHARED, win_ptr); 
    23782378            if (mpi_errno) { MPIU_ERR_POP(mpi_errno); } 
     2379        } 
     2380 
     2381        for (i = 0; i < MPIR_Comm_size(win_ptr->comm_ptr); i++) { 
     2382            /* Local process is already locked */ 
     2383            if (i == win_ptr->myrank) continue; 
    23792384 
    23802385            mpi_errno = MPIDI_CH3I_Wait_for_lock_granted(win_ptr, i); 
    23812386            if (mpi_errno) { MPIU_ERR_POP(mpi_errno); } 
    23822387        } 
    2383  
    23842388    } 
    23852389 
Note: See TracChangeset for help on using the changeset viewer.