

For the near future it will be CUDA-only, but it may be used to target amdgpu in the future.Generates highly optimized PTX code which can be loaded by the CUDA Driver API to execute on the GPU.rustc_codegen_nvvm Which is a rustc backend that targets NVVM IR (a subset of LLVM IR) for the libnvvm library.

The current line-up of libraries is the following: Therefore, the project contains many crates for all corners of the CUDA ecosystem. The scope of the Rust CUDA Project is quite broad, it spans the entirety of the CUDA ecosystem, with libraries and tools to make it Rust offers plenty of benefits such as _restrict_ performance benefits for every kernel, An excellent module/crate system,ĭelimiting of unsafe areas of CPU/GPU code with unsafe, high level wrappers to low level CUDA libraries, etc. Our hope is that with this project we can push the Rust GPU computing industry forward and make Rust an excellent languageįor such tasks. Of projects such as rust-gpu (for Rust -> SPIR-V). In recent years it has been shown time and time again that a specialized solution is needed for Rust on the GPU with the advent The only viable option until now has been to use the LLVM PTXīackend, however, the LLVM PTX backend does not always work and would generate invalid PTX for many common Rust operations, and However, CUDA with Rust has been a historically very rocky road. Imperative to make Rust a viable option for use with the CUDA toolkit. However, CUDA remains the most used toolkit for such tasks by far. Many tools have been proposed for cross-platform GPU computing such as Many libraries, tools, forums, and documentation to supplement the single-source CPU/GPU code.ĬUDA is exclusively an NVIDIA-only toolkit. Provides a way to use Fortran/C/C++ code for GPU computing in tandem with CPU code with a single source. Historically, general purpose high performance GPU computing has been done using the CUDA toolkit. It provides tools for compiling Rust to extremely fast PTX code as well as librariesįor using existing CUDA libraries with it. The Rust CUDA Project is a project aimed at making Rust a tier-1 language for extremely fast GPU computing Rust Guide | Getting Started | Features ⚠️ The project is still in early development, expect bugs, safety issues, and things that don't work ⚠️ Goal An ecosystem of libraries and tools for writing and executing extremely fast GPU code fully in
