Affiliation:
1. UC Berkeley
2. Google
3. University of Virginia
4. Adobe
5. Stanford University and Google
6. MIT CSAIL
Abstract
Writing high-performance code on modern machines requires not just locally optimizing inner loops, but globally reorganizing computations to exploit parallelism and locality---doing things such as tiling and blocking whole pipelines to fit in cache. This is especially true for image processing pipelines, where individual stages do much too little work to amortize the cost of loading and storing results to and from off-chip memory. As a result, the performance difference between a naive implementation of a pipeline and one globally optimized for parallelism and locality is often an order of magnitude. However, using existing programming tools, writing high-performance image processing code requires sacrificing simplicity, portability, and modularity. We argue that this is because traditional programming models conflate the computations defining the
algorithm
with decisions about intermediate storage and the order of computation, which we call the
schedule.
We propose a new programming language for image processing pipelines, called Halide, that separates the algorithm from its schedule. Programmers can change the schedule to express many possible organizations of a single algorithm. The Halide compiler then synthesizes a globally combined loop nest for an entire algorithm, given a schedule. Halide models a space of schedules which is expressive enough to describe organizations that match or outperform state-of-the-art hand-written implementations of many computational photography and computer vision algorithms. Its model is simple enough to do so often in only a few lines of code, and small changes generate efficient implementations for x86, ARM, Graphics Processors (GPUs), and specialized image processors, all from a single algorithm.
Halide has been public and open source for over four years, during which it has been used by hundreds of programmers to deploy code to tens of thousands of servers and hundreds of millions of phones, processing billions of images every day.
Publisher
Association for Computing Machinery (ACM)
Cited by
76 articles.
订阅此论文施引文献
订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献
1. DLAS: A Conceptual Model for Across-Stack Deep Learning Acceleration;ACM Transactions on Architecture and Code Optimization;2024-09-02
2. On the Importance of the Execution Schedule for Bayesian Inference;ACM Transactions on Probabilistic Machine Learning;2024-08-31
3. Research on the Application of Multimedia Image Processing Technology in Sports Sociology Education;International Journal of Web-Based Learning and Teaching Technologies;2024-07-17
4. Work Assisting: Linking Task-Parallel Work Stealing with Data-Parallel Self Scheduling;Proceedings of the 10th ACM SIGPLAN International Workshop on Libraries, Languages and Compilers for Array Programming;2024-06-20
5. Auto-Generating Diverse Heterogeneous Designs;2024 IEEE International Parallel and Distributed Processing Symposium Workshops (IPDPSW);2024-05-27