首页> 外文会议>International workshop on openMP >A User-Guided Locking API for the OpenMP Application Program Interface
【24h】

A User-Guided Locking API for the OpenMP Application Program Interface

机译:用于OpenMP应用程序界面的用户指导的锁定API

获取原文

摘要

Although the OpenMP API specification defines a set of runtime routines for simple and nested locks, there is no standardized way to select different lock implementations. Programmers have to use vendor extensions to globally alter the lock implementation for the application; fine-grained control is not possible. Proper use of hardware-based speculative locks can achieve significant runtime improvements but, if used inappropriately, they can lead to severe performance penalties. Thus programmers need to be able to explicitly choose the right lock implementation on a per-lock basis. In this paper, we extend the OpenMP API for locks with functions to provide such hints to the implementation. We also extend the syntax and semantics of the critical construct with clauses to contain hints. Our performance results for micro-benchmarks show that the runtime selection of lock implementations does not add any noticeable overhead. We also show that using an appropriate runtime hint can improve application performance.
机译:尽管OpenMP API规范为简单锁和嵌套锁定义了一组运行时例程,但是没有标准化的方法来选择不同的锁实现。程序员必须使用供应商扩展来全局更改应用程序的锁实现。无法进行细粒度的控制。正确使用基于硬件的推测性锁可以显着改善运行时,但是,如果使用不当,则会导致严重的性能损失。因此,程序员需要能够在每个锁的基础上明确选择正确的锁实现。在本文中,我们使用功能扩展了用于锁的OpenMP API,以向实现提供此类提示。我们还使用子句扩展了关键构造的语法和语义,以包含提示。我们针对微基准的性能结果表明,锁定实现的运行时选择不会增加任何明显的开销。我们还表明,使用适当的运行时提示可以提高应用程序性能。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号