OpenMP parallel for - what is default schedule?

旧时模样 提交于 2019-12-06 02:13:36

Start from the documentation that you have linked to. Section 2.7.1.1 Determining the Schedule of a Worksharing Loop reads:

If the loop directive does not have a schedule clause then the current value of the def-sched-var ICV determines the schedule.

The sentence preceding the quoted one refers to Section 2.3.1 which reads:

  • def-sched-var - controls the implementation defined default scheduling of loop regions. There is one copy of this ICV per device.

The table in Section 2.3.2 ICV Initialization states that the initial value of def-sched-var is implementation defined and that there is no environment variable that affects that value. Therefore the default loop schedule is implementation defined. Q.E.D.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!