How does the SECTIONS directive in OpenMP distribute work?

前端 未结 8 772
情话喂你
情话喂你 2020-11-29 08:14

In OpenMP when using omp sections, will the threads be distributed to the blocks inside the sections, or will each thread be assigned to each sections?

8条回答
  •  一向
    一向 (楼主)
    2020-11-29 08:32

    Note that 'nowait' tells the compiler that threads do not need to wait to exit the section. In Fortran 'nowait' goes at the end of the loop or section, which makes this more obvious.

提交回复
热议问题