2 / 28
OpenMP 中的数据处理子句 ............................................................................................................................................... 11
1. private 子句 ........................................................................................................................................................... 11
2. firstprivate 子句 .................................................................................................................................................... 11
3. lastprivate 子句 .................................................................................................................................................... 12
4. threadprivate 子句 ............................................................................................................................................... 12
5. shared 子句 ........................................................................................................................................................... 13
6. default 子句 ........................................................................................................................................................... 13
7. reduction 子句 ...................................................................................................................................................... 13
8. copyin 子句 ........................................................................................................................................................... 14
9. copyprivate 子句 .................................................................................................................................................. 15
OpenMP 中的任务调度 ....................................................................................................................................................... 17
1. Schedule 子句用法 ............................................................................................................................................... 17
2. 静态调度(static) .................................................................................................................................................... 17
3. 劢态调度(dynamic) .............................................................................................................................................. 18
4. guided 调度(guided) ..................................................................................................................................... 19
5. runtime 调度(rumtime) ................................................................................................................................. 20
OpenMP 创建线程中的锁及原子操作性能比较 ............................................................................................................... 21
OpenMP 程序设计的两个小技巧 ....................................................................................................................................... 25
1. 劢态设置并行循环的线程数量 ............................................................................................................................. 25
2. 嵌套循环的并行化 ................................................................................................................................................. 26
评论30
最新资源