The task of multi-dimensional numerical integration is frequently encountered in physics and other scientific fields, e.g., in modeling the effects of systematic uncertainties in physical systems and in Bayesian parameter estimation. Multi-dimensional integration is often time-prohibitive on CPUs. Efficient implementation on many-core architectures is challenging as the workload across the integration space cannot be predicted a priori. We propose m-Cubes, a novel implementation of the well-known Vegas algorithm for execution on GPUs. Vegas transforms integration variables followed by calculation of a Monte Carlo integral estimate using adaptive partitioning of the resulting space. m-Cubes improves performance on GPUs by maintaining relatively uniform workload across the processors. As a result, our optimized Cuda implementation for Nvidia GPUs outperforms parallelization approaches proposed in past literature. We further demonstrate the efficiency of m-Cubes by evaluating a six-dimensional integral from a cosmology application, achieving significant speedup and greater precision than the CUBA library's CPU implementation of VEGAS. We also evaluate m-Cubes on a standard integrand test suite. m-Cubes outperforms the serial implementations of the Cuba and GSL libraries by orders of magnitude speedup while maintaining comparable accuracy. Our approach yields a speedup of at least 10 when compared against publicly available Monte Carlo based GPU implementations. In summary, m-Cubes can solve integrals that are prohibitively expensive using standard libraries and custom implementations. A modern C++ interface header-only implementation makes m-Cubes portable, allowing its utilization in complicated pipelines with easy to define stateful integrals. Compatibility with non-Nvidia GPUs is achieved with our initial implementation of m-Cubes using the Kokkos framework.
Portability for GPU-accelerated molecular docking applications for cloud and HPC: can portable compiler directives provide performance across all platforms?
A Distributed GPU-based Framework for real-time 3D Volume Rendering of Large Astronomical Data Cubes
我们提出了一个框架,以交互式体渲染三维数据立方体使用分布式光线投射和体积砖在一个或多个图形处理单元(GPU)和一个多核CPU的工作站集群。该框架的主要设计目标是提供一个核心可视化解决方案,能够提供TB级数据立方体的三维交互式视图。我们使用包含64个节点、总共128个GPU的计算集群测试了所提出的框架。该框架被证明是可扩展的,可以以平均每秒30帧的速度渲染204 GB的数据立方体。我们的性能分析还比较了使用NVIDIA Tesla 1060和2050 GPU架构以及增加可视化输出分辨率对渲染性能的影响。虽然我们最初的重点,并在这项工作中提出的例子,是体绘制的光谱数据立方体从射电天文学,我们认为,我们的方法具有适用性的其他学科接近实时体绘制的TB级的3D数据集是一个要求。
Parthenon -- a performance portable block-structured adaptive mesh refinement framework
在通往亿万级的道路上,计算机设备架构和相应的编程模型的前景变得更加多样化。虽然有各种低级别的性能可移植编程模型,但在应用程序级别上缺乏支持。为了解决这个问题,我们提出了性能便携式块结构自适应网格细化(AMR)框架帕台农神庙,来自经过测试和广泛使用的雅典娜++天体物理磁流体动力学代码,但广义作为基础的各种下游多物理场代码。Parthenon采用了Kokkos编程模型,并提供了从多维变量到定义和分离组件的包,再到启动并行计算内核的各种级别的抽象。Parthenon在设备内存中分配所有数据以减少数据移动,支持变量和网格块的逻辑打包以减少内核启动开销,并采用单侧异步MPI调用以减少多节点模拟中的通信开销。使用流体力学迷你应用程序,我们展示了各种架构上的弱和强扩展,包括AMD和NVIDIA GPU,Intel和AMD x86 CPU,IBM Power 9 CPU以及Fujitsu A64 FX CPU。在Frontier上的最大规模(第一台TOP500 exascale机器),miniapp在9,216个节点(73,728个逻辑GPU)上达到了$1.7\times10^{13}$区域周期/秒,弱扩展并行效率约为92%(从单个节点开始)。再加上它是一个开放的协作项目,这使得Parthenon成为一个理想的框架,以针对亿级模拟,其中下游开发人员可以专注于他们的特定应用,而不是处理并行,设备加速…