...
首页> 外文期刊>Parallel and Distributed Systems, IEEE Transactions on >A Code Generation Framework for Targeting Optimized Library Calls for Multiple Platforms
【24h】

A Code Generation Framework for Targeting Optimized Library Calls for Multiple Platforms

机译:针对多个平台的优化库调用的代码生成框架

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

摘要

Directive-based programming approaches such as OpenMP and OpenACC have gained popularity due to their ease of programming. These programming models typically involve adding compiler directives to code sections such as loops in order to parallelize them for execution on multicore CPUs or GPUs. However, one problem with this approach is that existing compilers generate code directly from the annotated sections and do not make use of hardware-specific architectural features. As a result, the generated code is unable to fully exploit the capabilities of the underlying hardware. Alternatively, we propose a code generation framework in which linear algebraic operations in the annotated codes are recognized, extracted and mapped to optimized vendor-provided platform-specific library calls. We demonstrate that such an approach can result in better performance in the generated code compared to those which are generated by existing compilers. This is substantiated by experimental results on multicore CPUs and GPUs.
机译:基于指令的编程方法(例如OpenMP和OpenACC)由于易于编程而受到欢迎。这些编程模型通常涉及将编译器指令添加到代码部分(例如循环)中,以使其并行化以在多核CPU或GPU上执行。但是,这种方法的一个问题是现有的编译器直接从带注释的部分中生成代码,而不使用特定于硬件的体系结构功能。结果,生成的代码无法充分利用基础硬件的功能。或者,我们提出一种代码生成框架,在该框架中,识别,提取带注释的代码中的线性代数运算并将其映射到优化的供应商提供的特定于平台的库调用。我们证明,与现有编译器生成的代码相比,这种方法可以使生成的代码具有更好的性能。在多核CPU和GPU上的实验结果证实了这一点。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号