本章节翻译by chenchensmail@163.com 原文:OpenMP Directives (intel.com)
Intel® 编译器, icx
、 icpx
和 ifx
支持各种 OpenMP 指令,用于控制计算的部署 和数据映射到设备。这些包括:
-
target
-
teams
-
distribute
-
target data
-
target enter data
-
target exit data
-
target update
-
declare target
-
dispatch
target
构造指定代码的特定部分在设备上执行, 以及如何将数据映射到设备。
teams
构造创建多个线程组,每个组 由一个主线程和多个工作线程组成。 如果 teams
没有指定 num_teams
子句, 则团队数量由实现定义。
dist