Proposed Answer MPI_REDUCE & MPI_BARRIER

  • יום שישי 06 ינואר 2012 07:14
     
     
    Hi, i would like to know if it's necessary to add an MPI_BARRIER before MPI_REDUCE or it's done automatically by this last. Thank you answer me

כל התגובות

  • שבת 07 ינואר 2012 03:37
     
     הצעה לתשובה

    Hi,

    MPI_Reduce does not have synchronization semantics and thus there's no implicit barrier within MPI_Reduce. If you want to achieve synchronization with MPI_Reduce, you would have to explicitly issue MPI_Barrier (either before or after MPI_Reduce, depending on the code and the effects you want to achieve)

    Let me know if that answers your question

    • הוצע כתשובה על-ידי Fab Tillier [MS] יום שני 13 פברואר 2012 05:17
    •