2011年4月9日 星期六

OpenMP 心得 (四) Loop Construct

OpenMP 的 work-sharing constructs 共有四種,分別是 loop construct、sections construct、single construct、以及 Fortran 語言專有的 workshare construct。它們的功用是分配 parallel construct 所產生的多執行緒去平行執行程式,其中最常被使用的是前兩個構造 loop construct 與 sections construct,本篇文章我們將先介紹用於平行迴圈結構的 loop construct。