面向ARM可扩展向量扩展的oneDAL优化:最大化高性能数据科学的效率
oneDAL Optimization for ARM Scalable Vector Extension: Maximizing Efficiency for High-Performance Data Science
AI总结:
本文将oneDAL移植到ARM SVE架构并用OpenBLAS替代MKL,通过稀疏矩阵、统计函数和SVM的SVE优化,在AWS Graviton3上实现最高200倍加速,性能比肩甚至超越成本近两倍的x86实现。
摘要:
基于ARM架构的演进,尤其是那些融合了可扩展向量扩展(SVE)的架构,为高性能计算(HPC)和机器学习(ML)工作负载带来了变革性机遇。统一加速基金会(UXL)的oneAPI数据分析库(oneDAL)是一个被广泛采用的用于加速ML和数据分析工作流的库,但其对英特尔专有数学核心库(MKL)的依赖传统上将其兼容性限制在x86平台。本文详细介绍了将oneDAL移植到支持SVE的ARM架构上的工作,使用OpenBLAS作为替代后端以克服架构和性能方面的挑战。除移植之外,本研究还引入了针对ARM的新型优化,包括自定义稀疏矩阵例程、向量化统计函数以及一种经可扩展向量扩展(SVE)优化的支持向量机(SVM)算法。SVM增强利用了SVE的灵活向量长度和谓词驱动执行,在Boser方法上实现了22%的显著性能提升,在Thunder方法上实现了5%的性能提升。在支持SVE的AWS Graviton3实例上进行的基准测试表明,与ARM平台上的原始scikit-learn实现相比,ML训练和推理任务实现了高达200倍的加速。此外,经ARM优化的oneDAL在IceLake x86系统上实现了与x86 oneDAL实现(MKL后端)相当的性能,并在某些情况下超过了后者,而IceLake x86系统的成本几乎是AWS Graviton3 ARM实例的两倍。这些发现凸显了ARM作为数据密集型ML应用的高性能、高能效平台的潜力。通过扩展跨架构兼容性并为开源生态系统做出贡献,这项工作巩固了ARM在HPC和ML领域中作为有竞争力的替代方案的地位,为数据密集型计算的未来发展铺平了道路。
英文摘要:
The evolution of ARM-based architectures, particularly those incorporating Scalable Vector Extension (SVE), has introduced transformative opportunities for high-performance computing (HPC) and machine learning (ML) workloads. The Unified Acceleration Foundation's (UXL) oneAPI Data Analytics Library (oneDAL) is a widely adopted library for accelerating ML and data analytics workflows, but its reliance on Intel's proprietary Math Kernel Library (MKL) has traditionally limited its compatibility to x86platforms. This paper details the porting of oneDAL to ARM architectures with SVE support, using OpenBLAS as an alternative backend to overcome architectural and performance challenges. Beyond porting, the research introduces novel ARM-specific optimizations, including custom sparse matrix routines, vectorized statistical functions, and a Scalable Vector Extension (SVE)-optimized Support Vector Machine (SVM) algorithm. The SVM enhancements leverage SVE's flexible vector lengths and predicate driven execution, achieving notable performance gains of 22% for the Boser method and 5% for the Thunder method. Benchmarks conducted on ARM SVE-enabled AWSGraviton3 instances showcase up to 200x acceleration in ML training and inference tasks compared to the original scikit-learn implementation on the ARM platform. Moreover, the ARM-optimized oneDAL achieves performance parity with, and in some cases exceeds, the x86 oneDAL implementation (MKL backend) on IceLake x86 systems, which are nearly twice as costly as AWSGraviton3 ARM instances. These findings highlight ARM's potential as a high-performance, energyefficient platform for dataintensive ML applications. By expanding cross-architecture compatibility and contributing to the opensource ecosystem, this work reinforces ARM's position as a competitive alternative in the HPC and ML domains, paving the way for future advancements in dataintensive computing.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。