ARM SVE和RISC-V RVV是高端处理器中新兴的向量架构,支持灵活向量长度的向量化。在本工作中,我们利用量子计算中的重要工作负载,即量子态向量模拟,来理解是否可以在无向量长度(VLA)设计中实现高性能的可移植性。我们提出了一种VLA设计和关键优化技术,包括VLEN自适应内存布局调整、加载缓冲、细粒度循环控制以及基于门融合的算术强度适应。我们提供了Google Qsim中的实现,并在三种ARM处理器上评估了最多36个量子比特的五个量子电路,包括NVIDIA Grace、AWS Graviton3和Fujitsu A64FX。通过定义新的度量标准和PMU事件来量化向量化活动,我们为未来的VLA设计提供了通用见解。我们的单源VLA量子模拟实现实现了在A64FX上的4.5倍加速,在Grace上的2.5倍加速以及在Graviton上的1.5倍加速。
英文摘要:
ARM SVE and RISC-V RVV are emerging vector architectures in high-end processors that support vectorization of flexible vector length. In this work, we leverage an important workload for quantum computing, quantum state-vector simulations, to understand whether high-performance portability can be achieved in a vector-length agnostic (VLA) design. We propose a VLA design and optimization techniques critical for achieving high performance, including VLEN-adaptive memory layout adjustment, load buffering, fine-grained loop control, and gate fusion-based arithmetic intensity adaptation. We provide an implementation in Google's Qsim and evaluate five quantum circuits of up to 36 qubits on three ARM processors, including NVIDIA Grace, AWS Graviton3, and Fujitsu A64FX. By defining new metrics and PMU events to quantify vectorization activities, we draw generic insights for future VLA designs. Our single-source implementation of VLA quantum simulations achieves up to 4.5x speedup on A64FX, 2.5x speedup on Grace, and 1.5x speedup on Graviton.
Fast Implementation of Morphological Filtering Using ARM NEON Extension
Moscow Institute of Physics and Technology(莫斯科物理技术学院);Institute for Information Transmission Problems, RAS(俄罗斯科学院信息传输问题研究所);Institute for System Analysis, FRC CSC RAS(俄罗斯科学院联邦计算机科学与控制研究中心系统分析研究所)
High Performance Depthwise and Pointwise Convolutions on Mobile Devices
轻量级卷积神经网络(例如,MobileNets)专门设计用于直接在移动设备上进行推理。在各种轻量级模型中,逐点卷积(DWConv)和逐点卷积(PWConv)是它们的关键操作。在本文中,我们观察到现有的DWConv和PWConv的实现没有很好地利用ARM处理器在移动设备中,并表现出大量的缓存未命中下的多核和不良的数据重用寄存器级。我们提出的技术,重新优化的DWConv和PWConv的实现基于ARM架构。实验结果表明,我们的实现在DWConv和PWConv上相对于TVM(Chen et al. 2018)分别可以实现高达5.5倍和2.1倍的加速比。