OpenMP: OpenMP并行嵌套实例
2013-04-16 10:43
246 查看
//#include <stdio> #include "stdafx.h" void report_num_threads(int level) { //#pragma omp parallel { printf("level %d:number of threads in the team - %d\n",level,omp_get_num_threads()); } } int _tmain(int argc, _TCHAR* argv[]) { omp_set_nested(1); //omp_set_dynamic(0); #pragma omp parallel num_threads(2) { //printf("here1\n"); report_num_threads(1); #pragma omp parallel num_threads(2) { //printf("here1\n"); report_num_threads(2); #pragma omp parallel num_threads(2) { //printf("here1\n"); report_num_threads(3); } } } return 0; }
相关文章推荐
- openmp并行嵌套实例
- [openmp]使用嵌套并行
- [openmp]使用嵌套并行
- 文章标题 并行计算 -- OpenMP简介和计算实例 (计算pi)
- 使用OpenMP实现并行归并排序(Report)
- OpenMp并行提升时间为什么不是线性的?
- oracle中嵌套循环跳出内部循环体实例
- thinking in java 笔记--类内的嵌套接口及实例 nested interface(2007.10.11)
- for标签之嵌套循环实例精选
- OpenMP并行程序设计之常用子句使用介绍(二)
- OpenMP并行计算PI的值
- 一个Elasticsearch嵌套nested查询的实例
- Powershell使用嵌套哈希表实例 嵌套哈希表的2种写法例子
- 文章管理 linux命令嵌套实例(二)
- 【程序语言】并行编程——openMP初探
- Quartz定时任务嵌套,创建不同的Scheduler实例问题
- AngularJS ui-router (嵌套路由)实例
- Cython 0.15,用 OpenMP 并行多核加速 Python!
- OpenMP编程实例(向量点积、矩阵乘法和快排)
- OpenMP编程->并行循环