Upload
phamkhanh
View
219
Download
5
Embed Size (px)
Citation preview
©2014, Intel Corporation. All rights reserved. Intel, the Intel logo, Intel Inside, Intel Xeon, and Intel Xeon Phi are trademarks of Intel Corporation in the U.S. and/or other countries. *Other names and brands may be claimed as the property of others.
英特尔助力软件发开人员
重点关注真正的标准、代码的使用寿命和出色的工具 2014年4月
© 2014, Intel Corporation. All rights reserved. Intel, the Intel logo, Intel Inside, Intel Xeon, and Intel Xeon Phi are trademarks of Intel Corporation in the U.S. and/or other countries. *Other names and brands may be claimed as the property of others.
摘要 标题 –英特尔助力软件发开人员
摘要 – 在英特尔,我们强烈主张要为软件开发人员提供大力支持。我们在设计我们的处理器、新指令、行业互动以及工具时都秉承着一个宗旨,那就是充分考虑软件开发人员的需求。James将介绍我们在努力为软件开发人员“做正确的事情”时所面临的挑战,并探讨标准和伪标准、支持开源、以更加简便的方式为难以设计的硬件进行编程、软件抽象化、新工具技术,并讲授一些有关并行编程方面的知识。 个人简历 - James Reinders,英特尔并行编程推广总监
James参与了多项工程、研发和培训工作,以推动并行编程技术在整个行业的应用。他于1989年加入英特尔公司,为多个项目作出了杰
出的贡献,包括世界上第一台每秒万亿次浮点计算的超级计算机(ASCI Red),以及世界上第一台每秒万亿次浮点计算的微处理器(英特尔®至强融核™协处理器)。James撰写了多本技术书籍,包括《VTune™ Performance Analyzer Esssentials》 (英特尔出版社,2005年)、《Intel® Threading Building Blocks》(O‘Reilly Media,2007年)、《Structured Parallel Programming》(Morgan Kaufmann,2012年)以及《Intel® Xeon Phi™ Coprocessor High Performance Programming》(Morgan Kaufmann,2013年)。
© 2014, Intel Corporation. All rights reserved. Intel, the Intel logo, Intel Inside, Intel Xeon, and Intel Xeon Phi are trademarks of Intel Corporation in the U.S. and/or other countries. *Other names and brands may be claimed as the property of others.
不存在可以解决所有问题的标准,行业标准是 佳的发展道路
3
标准提供了 佳的选择,并获得了 广泛的支持(大量供应商)。 英特尔力争成为各种标准的 佳支持者,以便满足您的业务需求。 我们重点关注真正的标准,帮助延⻓长代码的使用寿命(包括您现有的代码,以及您将要编写的代码),并且提供出类拔萃的工具来支持真正的标准。
© 2014, Intel Corporation. All rights reserved. Intel, the Intel logo, Intel Inside, Intel Xeon, and Intel Xeon Phi are trademarks of Intel Corporation in the U.S. and/or other countries. *Other names and brands may be claimed as the property of others.
真正的标准
4
• 欢迎供应商和用户参与规范的制定及审批工作;真正独立的标准化流程。 • 标准的目的在于真正为多种硬件和软件环境的软件开发人员提供帮助。 • 不受制于一家供应商(反例:OpenACC、C++ AMP、HAS) • 并非专門设计为针对一家供应商而优化(反例同上)
© 2014, Intel Corporation. All rights reserved. Intel, the Intel logo, Intel Inside, Intel Xeon, and Intel Xeon Phi are trademarks of Intel Corporation in the U.S. and/or other countries. *Other names and brands may be claimed as the property of others.
真正的标准
5
目前出现了一些令人不安的趋势,伪标准和真正的标准混淆在一起,它们对一种平
台是有用的,受到一家供应商的大力吹捧(CUDA、OpenACC、C++ AMP、HAS)。 甚至还开展了大量的市场活动来推广这些伪标准,使其与真正的标准混淆在一起。
© 2014, Intel Corporation. All rights reserved. Intel, the Intel logo, Intel Inside, Intel Xeon, and Intel Xeon Phi are trademarks of Intel Corporation in the U.S. and/or other countries. *Other names and brands may be claimed as the property of others.
真正的标准
6
我们可以为软件开发人员提供更好的支持。我们支持真正的标准。 C、C++、Fortran、OpenMP、MPI、OpenCL等。 我们鼓励您多提要求,并推动采用真正的标准来编程。 在这方面还需要做大量的工作。 英特尔认为对所有人来说,这都是一条正确的发展道路。
© 2014, Intel Corporation. All rights reserved. Intel, the Intel logo, Intel Inside, Intel Xeon, and Intel Xeon Phi are trademarks of Intel Corporation in the U.S. and/or other countries. *Other names and brands may be claimed as the property of others.
英特尔:支持标准
7
英特尔是支持行业标准的领先企业,包括: • C • C++ • Fortran • OpenMP • MPI • OpenCL
© 2014, Intel Corporation. All rights reserved. Intel, the Intel logo, Intel Inside, Intel Xeon, and Intel Xeon Phi are trademarks of Intel Corporation in the U.S. and/or other countries. *Other names and brands may be claimed as the property of others.
C和C++
8
为C11和C++11提供丰富的支持 • 编译器支持 • 还有调试和调优支持! • 向量化解决方案 • ANSI标准合规性检查 • 增加gcc新特性,从而提供持续兼容性/可互换性 • 增加Microsoft新特性,提供持续兼容性/可互换性 • 英特尔是支持这些标准的领先企业——可帮助您加快上市时间和提高性能
© 2014, Intel Corporation. All rights reserved. Intel, the Intel logo, Intel Inside, Intel Xeon, and Intel Xeon Phi are trademarks of Intel Corporation in the U.S. and/or other countries. *Other names and brands may be claimed as the property of others.
Fortran
9
• 完整的Fortran 2003 • 为Fortran 2008提供丰富的支持——增加了BLOCK结构(太好了!) • 英特尔是支持这些标准的领先企业——可帮助您加快上市时间和提高性能
© 2014, Intel Corporation. All rights reserved. Intel, the Intel logo, Intel Inside, Intel Xeon, and Intel Xeon Phi are trademarks of Intel Corporation in the U.S. and/or other countries. *Other names and brands may be claimed as the property of others.
OpenMP
10
• OpenMP 4.0,15.0编译器中只少了“User Defined Reductions”功能 • 包括TARGET(卸载) • 包括SIMD(显式向量化) • 包括新的任务控制功能
DEPENDS、CANCELLATION POINT、DEPEND、TEAM DISTRIBUTE
• 英特尔是支持这些标准的领先企业——可帮助您加快上市时间和提高性能
© 2014, Intel Corporation. All rights reserved. Intel, the Intel logo, Intel Inside, Intel Xeon, and Intel Xeon Phi are trademarks of Intel Corporation in the U.S. and/or other countries. *Other names and brands may be claimed as the property of others.
OpenMP
11
• OpenMP 4.0,15.0编译器中只少了“User Defined Reductions” • 包括TARGET(卸载) • includes SIMD (explicit vectorization) • Includes new tasking controls
DEPENDS, CANCELLATION POINT, DEPEND, TEAM DISTRIBUTE
• 英特尔是支持这些标准的领先企业——可帮助您加快上市时间和提高性能
OpenMP 4.0 TARGET功能可在所有设备上支持“NVidia OpenACC”式编程,并且不需要Nvidia的OpenACC。OpenMP所带来的丰富特性远远超出了 “TARGET”(代替OpenACC的子集)。
© 2014, Intel Corporation. All rights reserved. Intel, the Intel logo, Intel Inside, Intel Xeon, and Intel Xeon Phi are trademarks of Intel Corporation in the U.S. and/or other countries. *Other names and brands may be claimed as the property of others.
MPI
12
• 支持MPI-3 • 库支持 • 调试和调优支持 § 集合、RMA、向后兼容、绑定、工具、混合编程
§ 英特尔是支持这些标准的领先企业——可帮助您提高性能 (英特尔实施的关键是性能——支持更快推出其他优秀解决方案)
© 2014, Intel Corporation. All rights reserved. Intel, the Intel logo, Intel Inside, Intel Xeon, and Intel Xeon Phi are trademarks of Intel Corporation in the U.S. and/or other countries. *Other names and brands may be claimed as the property of others.
OpenCL
13
• OpenCL 1.0和1.1 • OpenCL 2.0是新发布的版本,因此提供支持“还需时日”(当然,我们计划提供支
持!)
• 英特尔是支持这些标准的领先企业——可帮助您加快上市时间和提高性能
© 2014, Intel Corporation. All rights reserved. Intel, the Intel logo, Intel Inside, Intel Xeon, and Intel Xeon Phi are trademarks of Intel Corporation in the U.S. and/or other countries. *Other names and brands may be claimed as the property of others.
Cilk Plus(cilkplus.org)
14
• 一种开放式规范,用于扩展C/C++编译器以实现并行性 • 包括编译器并行性关键词、数组符号、显式向量化 • ⻢马上可用 –
• 英特尔编译器已为其提供了多年的支持 • 在gcc 4.9中实施
• 具有影响力的标准 • OpenMP 4.0采用了“显式向量化”编译指示 • C和C++标准委员会正考虑采用其他特性
© 2014, Intel Corporation. All rights reserved. Intel, the Intel logo, Intel Inside, Intel Xeon, and Intel Xeon Phi are trademarks of Intel Corporation in the U.S. and/or other countries. *Other names and brands may be claimed as the property of others.
向量化
15
• 英特尔编译器通过以下功能帮助实现向量化: • 自动向量化 • 丰富的扩展功能,帮助克服语言问题(限制关键词、ivdep语法等) • 显式向量化控制(OpenMP 4.0和Cilk Plus中的编译指示) • 高级诊断功能(15.0版本极大地改进了“vec-report”功能)
© 2014, Intel Corporation. All rights reserved. Intel, the Intel logo, Intel Inside, Intel Xeon, and Intel Xeon Phi are trademarks of Intel Corporation in the U.S. and/or other countries. *Other names and brands may be claimed as the property of others.
教学
16
• 如何讲授并行编程方面的知识?
© 2014, Intel Corporation. All rights reserved. Intel, the Intel logo, Intel Inside, Intel Xeon, and Intel Xeon Phi are trademarks of Intel Corporation in the U.S. and/or other countries. *Other names and brands may be claimed as the property of others. 17
1. 我们的教材《结构化并行编程》得到各大高校的
广泛采用,今年夏天将发布完整的课程以及教
学资料,教学经验主要来自于在俄勒冈大学为新本科班授课。请访问parallelbook.com(网站)
或联系James!
© 2014, Intel Corporation. All rights reserved. Intel, the Intel logo, Intel Inside, Intel Xeon, and Intel Xeon Phi are trademarks of Intel Corporation in the U.S. and/or other countries. *Other names and brands may be claimed as the property of others. 18
2. 我们正在编写《英特尔®至强融核™协处理器编程指南》( Programming for the Intel® Xeon Phi™ Coprocessor )的第
二卷,本教材将沿用一贯的独家真实代码实例来说明如何编写可实现高度并行性
的代码,同时重点介绍在英特尔至强融核
协处理器上经过验证的技术。请联系
James,了解更多信息(您也可以投稿!)
©2014, Intel Corporation. All rights reserved. Intel, the Intel logo, Intel Inside, Intel Xeon, and Intel Xeon Phi are trademarks of Intel Corporation in the U.S. and/or other countries. *Other names and brands may be claimed as the property of others. 19
Copyright © 2014, Intel Corporation. All rights reserved. *Other names and brands may be claimed as the property of others. Optimization Notice
免责声明和优化注意事项 本文档中的信息按“原样”提供。本文档并未以明示或暗示,或以禁止反言或其他方式授予任何知识产权许可。英特尔对此信息不承担任何责任,并且不作任何明示或暗示的担保,包括对产品某一特定用途的适用性、适销性或对其他任何专利权、版权或其他知识产权的侵权等均不承担任何责任或作出任何担保。
性能测试中使用的软件和工作负载可能只针对英特尔微处理器上的性能进行了优化。性能测试,例如SYSmark和MobileMark,均使用特定的计算机系统、组件、软件、操作和功能而测量。任何因素的改变都可能导致结果发生变化。您应该参考其他信息和性能测试以帮助您
对正在考虑的购买做出全面的评估,包括该产品在与其他产品结合使用时的性能。
© 2014,英特尔公司。保留所有权利。英特尔、奔腾、至强、至强融核、酷睿、VTune、Cilk和英特尔标识是英特尔公司在美国和其他国家或地区的商标。
优化注意事项
即使不是专門针对英特尔处理器的优化,英特尔编译器也有可能无法为非英特尔微处理器实现相同程度的优化。这些优化包括 SSE2、SSE3 和 SSSE3 指令集和其他优化。英特尔不保证任何优化在非英特尔制造的微处理器上的可用性、功能或有效性。本产品中依赖于微处理器的优化旨在配合英特尔微处理器一起使用。不一定针对英特尔微架构的某些优化专为英特尔微处理器保留。请参⻅见合适用产品的“用户和参考指南”了解本注意事
项中涵盖的特定指令集的更多相关信息。 注意事项修订版#20110804
20