University of Twente Student Theses
As of Friday, 8 August 2025, the current Student Theses repository is no longer available for thesis uploads. A new Student Theses repository will be available starting Friday, 15 August 2025.
Enabling Idiomatic Rust for Hybrid CPU/GPU Programming
Begu, Cristian-Andrei (2025) Enabling Idiomatic Rust for Hybrid CPU/GPU Programming.
PDF
459kB |
Abstract: | Rust's strong safety guarantees and performance make it a compelling candidate for General-Purpose GPU (GPGPU) programming. Building upon prior work that demonstrated a hybrid Rust compiler capable of targeting both CPU and GPU from a single source, we address a key limitation: the inability to use many standard Rust features within GPU kernel code. This limitation arises because compiler 'language items' ('lang-items'), which implement core features, often rely on CPU-specific assumptions that are invalid in the GPU context. To overcome this, we extend the existing hybrid compiler with a context-dependent lang-item system. This system enables the compiler to select specialized, GPU-safe implementations for lang-items when compiling kernel code, while retaining standard implementations for host code. As a result, a significantly broader range of idiomatic Rust features becomes available within GPU kernels, substantially improving the practicality and expressiveness of integrated hybrid compilation in Rust. |
Item Type: | Essay (Bachelor) |
Faculty: | EEMCS: Electrical Engineering, Mathematics and Computer Science |
Subject: | 54 computer science |
Programme: | Computer Science BSc (56964) |
Link to this item: | https://purl.utwente.nl/essays/107371 |
Export this item as: | BibTeX EndNote HTML Citation Reference Manager |
Repository Staff Only: item control page