- Only lock/unlock when using threads.
Basically revert this part of r16015. This commit was SVN r16029. The following SVN revision numbers were found above: r16015 --> open-mpi/ompi@435e7d80e9
Этот коммит содержится в:
родитель
9c1c345c07
Коммит
a3b30749b0
@ -10,13 +10,15 @@ do { \
|
|||||||
fifo=&(mca_btl_sm_component.fifo[peer_smp_rank][my_smp_rank]); \
|
fifo=&(mca_btl_sm_component.fifo[peer_smp_rank][my_smp_rank]); \
|
||||||
\
|
\
|
||||||
/* thread lock */ \
|
/* thread lock */ \
|
||||||
opal_atomic_lock(fifo->head_lock); \
|
if(opal_using_threads()) \
|
||||||
|
opal_atomic_lock(fifo->head_lock); \
|
||||||
/* post fragment */ \
|
/* post fragment */ \
|
||||||
while(ompi_fifo_write_to_head(hdr, fifo, \
|
while(ompi_fifo_write_to_head(hdr, fifo, \
|
||||||
mca_btl_sm_component.sm_mpool) != OMPI_SUCCESS) \
|
mca_btl_sm_component.sm_mpool) != OMPI_SUCCESS) \
|
||||||
opal_progress(); \
|
opal_progress(); \
|
||||||
MCA_BTL_SM_SIGNAL_PEER(endpoint_peer); \
|
MCA_BTL_SM_SIGNAL_PEER(endpoint_peer); \
|
||||||
opal_atomic_unlock(fifo->head_lock); \
|
if(opal_using_threads()) \
|
||||||
|
opal_atomic_unlock(fifo->head_lock); \
|
||||||
} while(0)
|
} while(0)
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user