arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2403.06931cs.DC
收藏

面向AMD GPU的sDTW优化

Optimizing sDTW for AMD GPUs

Daniel Latta-Lin, Sofia Isadora Padilla Munoz

AI总结:

针对sDTW计算复杂度高、现有GPU并行方案多适配NVIDIA的问题,提出基于HIP与ROCm的AMD GPU sDTW实现,采用波前内shuffling通信、跨波前共享内存传数等优化,在指定批量查询下实现单线程参考元素宽度的峰值性能调优。

摘要:

子序列动态时间规整(sDTW)是众多序列匹配与对齐任务的首选度量指标。sDTW虽灵活准确,但计算过程既不简单也不快速;已有大量研究致力于设计GPU上的并行实现方案,这些方案利用高效的内存访问与计算模式,以及特定厂商和架构(尤其是NVIDIA的)提供的特性。我们提出了一种使用HIP与ROCm在AMD硬件上实现的sDTW方案。我们的实现采用了成熟的并行模式,以及ROCm提供的底层特性,使用shuffling操作实现波前内通信,并借助共享内存在连续波前间传输数据。通过将输入数据限制为每批512条长度为2000的查询序列,我们针对单线程处理的参考元素宽度进行了峰值性能优化。

英文摘要:

Subsequence Dynamic Time Warping (sDTW) is the metric of choice when performing many sequence matching and alignment tasks. While sDTW is flexible and accurate, it is neither simple nor fast to compute; significant research effort has been spent devising parallel implementations on the GPU that leverage efficient memory access and computation patterns, as well as features offered by specific vendors and architectures (notably NVIDIA's). We present an implementation of sDTW on AMD hardware using HIP and ROCm. Our implementation employs well-known parallel patterns, as well as lower-level features offered by ROCm. We use shuffling for intra-wavefront communication and shared memory to transfer data between consecutive wavefronts. By constraining the input data to batches of 512 queries of length 2,000, we optimized for peak performance the width of reference elements operated on by a single thread.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑