Skip to main content
QUICK REVIEW

[论文解读] Is Parallel Programming Hard, And, If So, What Can You Do About It? (v2017.01.02a).

Paul E. McKenney|arXiv (Cornell University)|Jan 3, 2017
Distributed and Parallel Computing SystemsComputer Science被引用 10
一句话总结

本书提出了一种面向共享内存机器的并行编程工程方法,提供了设计原则和实用策略,以避免常见陷阱。它强调自动化常规任务,旨在使并行编程对从业者而言更具可及性、系统性和趣味性。

ABSTRACT

The purpose of this book is to help you program shared-memory parallel machines without risking your sanity. We hope that this book's design principles will help you avoid at least some parallel-programming pitfalls. That said, you should think of this book as a foundation on which to build, rather than as a completed cathedral. Your mission, if you choose to accept, is to help make further progress in the exciting field of parallel programming--progress that will in time render this book obsolete. Parallel programming is not as hard as some say, and we hope that this book makes your parallel-programming projects easier and more fun. In short, where parallel programming once focused on science, research, and grand-challenge projects, it is quickly becoming an engineering discipline. We therefore examine specific parallel-programming tasks and describe how to approach them. In some surprisingly common cases, they can even be automated. This book is written in the hope that presenting the engineering discipline underlying successful parallel-programming projects will free a new generation of parallel hackers from the need to slowly and painstakingly reinvent old wheels, enabling them to instead focus their energy and creativity on new frontiers. We sincerely hope that parallel programming brings you at least as much fun, excitement, and challenge that it has brought to us!

研究动机与目标

  • 将并行编程从以研究为导向的活动转变为具有可重复、可扩展实践的工程学科。
  • 通过提供基础设计原则,减轻并行编程的认知负担和失败风险。
  • 使开发人员能够专注于创新,而非重复实现底层并行编程模式。
  • 证明许多并行编程任务可以实现自动化,从而提高生产力和正确性。
  • 使并行编程对新一代开发人员和研究人员更具可及性和趣味性。

提出的方法

  • 提出一种结构化、基于工程的方法,用于设计共享内存并行程序。
  • 识别并形式化并行编程中的常见模式与反模式,以指导最佳实践。
  • 强调模块化和抽象,以隔离复杂性并减少易出错的编码。
  • 提出常见并行编程任务(如同步和负载均衡)的自动化机会。
  • 提供具体示例和案例研究,说明如何将原则应用于实际编程任务。
  • 将本书定位为一个持续演进的基础——旨在通过未来进展被扩展甚至取代。

实验结果

研究问题

  • RQ1如何系统化并行编程,以减少对临时性、易出错方法的依赖?
  • RQ2哪些设计原则能使共享内存并行编程更具可预测性和可维护性?
  • RQ3在哪些常见场景中,可以自动化并行编程任务以提高开发人员生产力?
  • RQ4如何有效支持从以研究为导向到以工程为导向的并行编程转型?
  • RQ5有哪些策略可以帮助开发人员避免并行编程中的知名陷阱,同时不牺牲性能?

主要发现

  • 通过确立的工程原则,可显著使并行编程更加系统化且更少出错。
  • 许多并行编程中的常见挑战(如数据竞争和负载不平衡)可通过适当的抽象和设计得到缓解。
  • 常规并行编程任务的自动化是可行的,可减少开发时间和认知负担。
  • 从以研究为导向到以工程为导向的并行编程转变,可促进更广泛的采用和更快的创新。
  • 本书作为基础参考文献,预计未来将被新进展所取代,反映出该领域日益成熟。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。