Copperhead
Bryan Catanzaro, Michael Garland, Kurt Keutzer · 2011
Modern parallel microprocessors deliver high performance on applications that expose substantial fine-grained data parallelism. Although data parallelism is widely available in many computations, implementing data parallel algorithms in low-level languages is often an unnecessarily difficult task. The characteristics of parallel microprocessors and the limitations of current programming methodologies motivate our design of Copperhead, a high-level data parallel language embedded in Python. The Copperhead programmer describes parallel computations via composition of familiar data parallel primitives supporting both flat and nested data parallel computation on arrays of data. Copperhead programs are expressed in a subset of the widely used Python programming language and interoperate with standard Python modules, including libraries for numeric computation, data visualization, and analysis. In this paper, we discuss the language, compiler, and runtime features that enable Copperhead to efficiently execute data parallel code. We define the restricted subset of Python which Copperhead supports and introduce the program analysis techniques necessary for compiling Copperhead code into efficient low-level implementations. We also outline the runtime support by which Copperhead programs interoperate with standard Python modules. We demonstrate the effectiveness of our techniques with several examples targeting the CUDA platform for parallel programming on GPUs. Copperhead code is concise, on average requiring 3.6 times fewer lines of code than CUDA, and the compiler generates efficient code, yielding 45-100% of the performance of hand-crafted, well optimized CUDA code.
Cited by 186 works. doi:10.1145/1941553.1941562
Authors
References
- Improvements to Platt's SMO Algorithm for SVM Classifier Design
- Scalable parallel programming with CUDA
- Scalable Parallel Programming with CUDA
- Data parallel algorithms
- CUDA by Example: An Introduction to General-Purpose GPU Programming
- Accelerator
- Programming parallel algorithms
- Implementing sparse matrix-vector multiplication on throughput-oriented processors
- Vector models for data-parallel computing
- Dense Point Trajectories by GPU-Accelerated Large Displacement Optical Flow