- 1、本文档共62页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
使用openmp编程-杨全胜
* Introduce OpenMP by stating that OpenMP, Open specifications for Multi Processing, is an application programming interface (API) that was formulated in 1997. It is used for writing portable, multithreaded applications. OpenMP has made it easy to create threaded Fortran and C/C++ programs. Unlike Windows threads, OpenMP does not require you to create, synchronize, load balance, and destroy threads. OpenMP is not formally accepted as an industry standard for programming, but it is used widely. OpenMP provides a set of compiler directives—instructions embedded in source code—that informs compilers about the intent of compilation. Compiler directives tell the compiler how to compile. For example, the #include stdio.h compiler directive informs the compiler to include the stdio.h file and compile the code using the contents of this header file. Earlier, shared-memory platform vendors had their own sets of compiler directives to implement shared-memory parallelism. OpenMP standardizes almost 20 years of compiler-directed threading experience by combining common functionality from various vendors into a portable API. OpenMP provides a special syntax that programmers can use to create multithreaded code. It enables you to combine serial and parallel code in a single source. If your compiler does not recognize OpenMP directives, the compiler ignores the directives and the code enclosed within the directive. Such a situation yields a serial executable code. OpenMP also supports incremental parallelism. Incremental parallelism allows you to first thread one segment of the code and tests it for better performance. You can then successively modify and test other code segments. This helps you give priority to threading critical problems in a code segment. If threading results in worse performance, you can remove the new OpenMP directives and proceed to the next code segment. OpenMP also supports both coarse-grain and fine-grain parallelism. OpenMP also supports and stan
您可能关注的文档
- 水稻根系内生细菌对未来大气co2浓度升高的响应水.pdf
- 输入性通货膨胀与实质汇率动态-台大经济系.pdf
- 位置精度.pdf
- 文成殡仪馆智能化设备-文成公共资源交易中心.doc
- 数据获取系统bes.doc
- 建设项目工程分析-中国酒都-仁怀.doc
- 基于随机有限集的upf-cphd多目标跟踪randomfinitesetsbased.pdf
- 固定资产管理员培训资料增加修改地址簿存放地点1增加.doc
- 正向行为支持对极重度自闭症学生自伤行为之成效.pdf
- 入侵检测系统中国安全网.doc
- 师缘主题课件最新完整版本.pptx
- 基于偏好MOEA_D算法的气发动机多目标优化标定研究.pdf
- 师范技能课件比赛一等奖最新完整版本.pptx
- 师范生初中美术说课课件最新完整版本.pptx
- 师范技能课件图片素材库最新完整版本.pptx
- Unit 2 Making a Difference Understanding ideas The Well that changed the world 教学设计-高中英语外研版(2019)必修第三册.docx
- 师范生技能大赛PPT课件语文最新完整版本.pptx
- 基于扭矩的双燃料发动机控制策略研究.pdf
- 1.2.1 等差数列的概念及其通项公式(教学设计)高二数学(北师大版2019选择性必修第二册).docx
- 师范文化课件最新完整版本.pptx
最近下载
- 统编版七年级历史下册第18课《统一多民族国家的巩固和发展》优质教案+导学案(含答案).doc
- 审查调查外查工作培训课件.pdf VIP
- 2024-2025学年初中音乐七年级上册(2024)湘艺版(2024)教学设计合集.docx
- 2024年部编版中考语文模拟试卷及答案.doc VIP
- 《萨班斯法案》课件.ppt VIP
- 2021电子科技大学-计算机体系结构实验报告01.pdf
- 《智能机器人系统》全套教学课件.pptx
- 2023年南京郑和外国语学校小升初分班考试数学模拟试卷及答案解析.pdf
- 统编版七年级历史下册第18课《统一多民族国家的巩固和发展》精美教案+导学案(含答案).doc
- AVL BOOST燃烧及传热模型介绍.pdf VIP
文档评论(0)