首页> 外文期刊>International journal of parallel programming >Restoration of Legacy Parallelism: Transforming Pthreads into Farm and Pipeline Patterns
【24h】

Restoration of Legacy Parallelism: Transforming Pthreads into Farm and Pipeline Patterns

机译:遗留遗产并行性:将pthreads转变为农场和管道模式

获取原文
获取原文并翻译 | 示例

摘要

Parallel patterns are a high-level programming paradigm that enables non-experts in parallelism to develop structured parallel programs that are maintainable, adaptive, and portable whilst achieving good performance on a variety of parallel systems. However, there still exists a large base of legacy-parallel code developed using ad-hoc methods and incorporating low-level parallel/concurrency libraries such as pthreads without any parallel patterns in the fundamental design. This code would benefit from being restructured and rewritten into pattern-based code. However, the process of rewriting the code is laborious and error-prone, due to typical concurrency and pthreading code being closely intertwined throughout the business logic of the program. In this paper, we present a new software restoration methodology, to transform legacy-parallel programs implemented using pthreads into structured farm and pipeline patterned equivalents. We demonstrate our restoration technique on a number of benchmarks, allowing the introduction of patterned farm and pipeline parallelism in the resulting code; we record improvements in cyclomatic complexity and speedups on a number of representative benchmarks.
机译:并行模式是高级编程范例,使得并行性的非专家能够开发可维护,自适应和便携式的结构化并行程序,同时在各种并行系统上实现良好的性能。然而,仍然存在使用ad-hoc方法开发的大型遗留并行代码,并结合低级并行/并发库,例如Pthreads,没有基本设计中的任何并行模式。此代码将受益于重组和重写为基于模式的代码。但是,由于在整个业务逻辑的整个业务逻辑中紧密交织在一起,重写代码的重写过程是费力和错误的。在本文中,我们提出了一种新的软件恢复方法,以将使用pthreads的遗留并行程序转换为结构化的农场和管道图案化等同物。我们展示了许多基准测试的恢复技术,允许在所产生的代码中引入图案化的农场和管道并行性;我们在许多代表性基准上记录循环复杂性和加速的改进。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号