OpenMP Tutorial学习笔记(7)OpenMP指令之任务构造(Task Constructs)

OpenMP Tutorial:https://computing.llnl.gov/tutorials/openMP/#Combined

任务构造:Task Constructs


(1)任务构造的作用:

任务构造是OpenMP3.0新加的功能,其定义一个显式的任务,其执行依赖于任务调度(task scheduling)。具体其特征,参考OpenMP3.0的spec文档。

(2)任务构造的格式:

#pragma omp task [clause ...]  newline 
                   if (scalar expression) 
                   final (scalar expression) 
                   untied
                   default (shared | none)
                   mergeable
                   private (list) 
                   firstprivate (list) 
                   shared (list) 
    structured_block


你可能感兴趣的:(list,文档,任务调度,任务,newline)