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

CLBlast:一个可调的OpenCL BLAS库

CLBlast: A Tuned OpenCL BLAS Library

TomTom(TomTom公司)

Cedric Nugteren

摘要:

这项工作引入了CLBlast,这是一个开源BLAS库,提供优化的OpenCL例程,以加速各种设备的稠密线性代数。它针对机器学习和HPC应用,因此提供了快速矩阵乘法例程(GEMM)来加速许多应用(例如,深度学习、迭代求解器、天体物理学、计算流体动力学、量子化学)的核心。与其他OpenCL BLAS库相比,CLBlast有五个主要优势:1)它针对各种OpenCL设备进行了优化和测试,包括不太常用的设备,如嵌入式和低功耗GPU,2)它可以在特定硬件平台上针对特定问题大小进行显式调整,3)它可以在半精度浮点FP16中执行操作,节省带宽,时间和能源,4)它有一个可选的CUDA后端,5)它可以在一个批处理例程中组合多个操作,显著加速较小的问题。本文描述了该库,并在各种OpenCL硬件上针对不同用例通过实验展示了CLBlast的优势。

英文摘要:

This work introduces CLBlast, an open-source BLAS library providing optimized OpenCL routines to accelerate dense linear algebra for a wide variety of devices. It is targeted at machine learning and HPC applications and thus provides a fast matrix-multiplication routine (GEMM) to accelerate the core of many applications (e.g. deep learning, iterative solvers, astrophysics, computational fluid dynamics, quantum chemistry). CLBlast has five main advantages over other OpenCL BLAS libraries: 1) it is optimized for and tested on a large variety of OpenCL devices including less commonly used devices such as embedded and low-power GPUs, 2) it can be explicitly tuned for specific problem-sizes on specific hardware platforms, 3) it can perform operations in half-precision floating-point FP16 saving bandwidth, time and energy, 4) it has an optional CUDA back-end, 5) and it can combine multiple operations in a single batched routine, accelerating smaller problems significantly. This paper describes the library and demonstrates the advantages of CLBlast experimentally for different use-cases on a wide variety of OpenCL hardware.

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

↑