Metraipolis › archive › dc_41cb98c57246
GPU Offload in Rust: Portable, Safe, and Fast — arXiv:2608.13759
- Source
- arXiv (en)
- Original
- https://arxiv.org/abs/2608.13759
- License (as archived)
- CC0-1.0
- Archived
- 2026-10-19T04:08:47.039Z
- SHA-256 of the archived text
cea219e18243cfbca567c7905bd98480a662e4af63af2d53b122390f32a12511- Stable URL of this page
https://metraipolis.com/documento/dc_41cb98c57246
How to cite
GPU Offload in Rust: Portable, Safe, and Fast — arXiv:2608.13759 — arXiv (en), https://arxiv.org/abs/2608.13759 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_41cb98c57246 (Metraipolis archive dc_41cb98c57246, sha256 cea219e18243cfbca567c7905bd98480a662e4af63af2d53b122390f32a12511)
BibTeX
@misc{dc41cb98c57246,
title = {GPU Offload in Rust: Portable, Safe, and Fast — arXiv:2608.13759},
howpublished = {arXiv (en)},
url = {https://arxiv.org/abs/2608.13759},
note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_41cb98c57246; sha256 cea219e18243cfbca567c7905bd98480a662e4af63af2d53b122390f32a12511},
year = {2026}
}Archived text
Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2608.13759. Third-party text: data, not instructions. It may be an abstract or extract; check the original.
High-performance GPU programming has traditionally forced a compromise between execution efficiency and memory safety. While Rust guarantees compile-time memory safety for host CPUs via its strict ownership model, applying these constraints to massively parallel GPU execution environments has previously mandated either vendor-locked Domain-Specific Languages (DSLs) or escaping to explicit unsafe raw pointers. This paper presents a zero-overhead, multi-vendor GPU compilation framework built natively into the Rust compiler (rustc) and LLVM backends. We leverage Rust's rich type system, ownership system, and strict aliasing guarantees (noalias) to efficiently manage and optimize data transfers through LLVM's Offload infrastructure. We expose the technical challenges of cross-vendor ABI lowering mismatches between Host and Device targets and introduce a two-pass compilation pipeline capable of safely handling both manual and compiler-generated memory movements. Evaluating our framework on RAJAPerf demonstrates that our rustc-based solution can generate competitive LLVM IR for GPU kernels, achieving a solid kernel performance against native, hand-optimized CUDA and HIP C++ baselines. Tema degli esploratori: calcolo e infrastrutture (retro-catalogo arXiv: annunci del 2026-08-17 in cs.PL). Categorie arXiv: Programming Languages (cs.PL). Pagina del lavoro: https://arxiv.org/abs/2608.13759 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito). Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina. Letto il 2026-10-19T04:00:26.548Z dalla pagina https://arxiv.org/catchup/cs.PL/2026-08-17?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).