首页> 外文会议>2013 International Conference on High Performance Computing and Simulation >Implementing data parallelisation in a Nested-Sampling Monte Carlo algorithm
【24h】

Implementing data parallelisation in a Nested-Sampling Monte Carlo algorithm

机译:在嵌套采样蒙特卡洛算法中实现数据并行化

获取原文
获取原文并翻译 | 示例
获取外文期刊封面目录资料

摘要

In this paper we report our work on the parallelisation of a Nested Sampling Monte Carlo algorithm used in the nuclear physics field of hadron spectroscopy. The purpose of the application is to fit a set of parameters in a nuclear physics model based on the observations of the beam properties. We used both OpenCL and OpenMP to parallelise the existing code. Our aims were to achieve parallelisation with minimal changes to the original source code and to evaluate the performance of the parallel code on both a GPU and a multicore CPU. On the implementation side, we show that by using our OclWrapper abstraction over the OpenCL API, integration of OpenCL code into and existing C++ code base is much simplified, to the extent that integrating OpenCL is not considerably more effort than using OpenMP, as the main effort is in making the code suitable for parallel execution. Our evaluation shows that the best results depend strongly on the size of dataset. For large numbers of events (105), we achieved a best speed-up of 22 times using OpenCL on the CPU. For small numbers of events (103), we achieved a best speed-up of 4 times using OpenMP on the CPU. The best GPU speed-up was 7 times for 105 events. This is mainly a result of the longer data transfer time, which negates the improvement in computation time.
机译:在本文中,我们报告了在强子光谱核物理领域中使用的嵌套采样蒙特卡洛算法的并行化工作。该应用程序的目的是基于对射束特性的观察,将一组参数拟合到核物理模型中。我们使用OpenCL和OpenMP来并行化现有代码。我们的目标是在对原始源代码进行最少更改的情况下实现并行化,并评估GPU和多核CPU上并行代码的性能。在实现方面,我们表明通过在OpenCL API上使用OclWrapper抽象,可以大大简化将OpenCL代码集成到现有C ++代码库中的程度,在某种程度上,与使用OpenMP作为主要功能集成OpenCL相比,付出的努力并不多。努力使代码适合并行执行。我们的评估表明,最佳结果在很大程度上取决于数据集的大小。对于大量事件(10 5 ),我们在CPU上使用OpenCL实现了22倍的最佳加速。对于少量事件(10 3 ),我们在CPU上使用OpenMP实现了4倍的最佳加速。 10 5 事件的最佳GPU提速是7倍。这主要是由于数据传输时间较长而导致的,这抵消了计算时间的缩短。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号