Title
GPU Programming in Rust: Implementing High-Level Abstractions in a Systems-Level Language
Abstract
Graphics processing units (GPUs) have the potential to greatly accelerate many applications, yet programming models remain too low level. Many language-based solutions to date have addressed this problem by creating embedded domain-specific languages that compile to CUDA or OpenCL. These targets are meant for human programmers and thus are less than ideal compilation targets. LLVM recently gained a compilation target for PTX, NVIDIA's low-level virtual instruction set for GPUs. This lower-level representation is more expressive than CUDA and OpenCL, making it easier to support advanced language features such as abstract data types or even certain closures. We demonstrate the effectiveness of this approach by extending the Rust programming language with support for GPU kernels. At the most basic level, our extensions provide functionality that is similar to that of CUDA. However, our approach seamlessly integrates with many of Rust's features, making it easy to build a library of ergonomic abstractions for data parallel computing. This approach provides the expressiveness of a high level GPU language like Copperhead or Accelerate, yet also provides the programmer the power needed to create new abstractions when those we have provided are insufficient.
Year
DOI
Venue
2013
10.1109/IPDPSW.2013.173
IPDPS Workshops
Keywords
Field
DocType
high level gpu language,basic level,gpu kernel,low level,approach seamlessly,gpu programming,rust programming language,embedded domain-specific language,implementing high-level abstractions,abstract data type,compilation target,systems-level language,advanced language,generators,programming,mozilla rust,instruction sets,parallel processing,embedded systems,kernel
Programming language,Programming paradigm,CUDA,Computer science,Instruction set,Copperhead,Rust (programming language),Compiler,High-level programming language,General-purpose computing on graphics processing units
Conference
Citations 
PageRank 
References 
3
0.41
7
Authors
5
Name
Order
Citations
PageRank
Eric Holk1254.03
Milinda Pathirage2433.15
Arun Chauhan314215.92
Andrew Lumsdaine42754236.74
Nicholas D. Matsakis5946.88