Loo.py: 基于转换的GPU和CPU代码生成
Loo.py: transformation-based code generation for GPUs and CPUs
AI总结:
Loo.py通过定义数组计算的数据模型和转换库,提供多种转换方式以实现高性能代码生成,支持从原型到高性能实现的渐进式开发。
摘要:
当今高度异构的计算环境对程序员实现广泛机器上的高性能提出了挑战。为此,计算需要以多种但数学等价的方式表达,最坏情况下每台目标机器一种变体。Loo.py作为一种嵌入Python的编程系统,通过定义数组计算的数据模型和转换库,提供循环分块、向量化、存储管理、展开、指令级并行、数据布局变换等多种转换,为代码变体的增长提供便捷的捕捉、参数化和重新统一方式。可选的深度集成numpy和PyOpenCL提供了从原型到高性能实现的渐进式开发环境。
英文摘要:
Today's highly heterogeneous computing landscape places a burden on programmers wanting to achieve high performance on a reasonably broad cross-section of machines. To do so, computations need to be expressed in many different but mathematically equivalent ways, with, in the worst case, one variant per target machine. Loo.py, a programming system embedded in Python, meets this challenge by defining a data model for array-style computations and a library of transformations that operate on this model. Offering transformations such as loop tiling, vectorization, storage management, unrolling, instruction-level parallelism, change of data layout, and many more, it provides a convenient way to capture, parametrize, and re-unify the growth among code variants. Optional, deep integration with numpy and PyOpenCL provides a convenient computing environment where the transition from prototype to high-performance implementation can occur in a gradual, machine-assisted form.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。