Code to make working with CUDA, via the CUDARC lib, easier.
This library abstracts over some of the boilerplate needed to use the Cudarc library, for using CUDA GPU compute in the rust language.
To use, create a build.rs
file like this:
//! We use this to automatically compile CUDA C++ code when building.
use ;
Or if your application has CUDA feature-gated:
//! We use this to automatically compile CUDA C++ code when building.
use ;
Include this in Cargo.toml
:
[]
= { = "^0.13.3",=["cuda-12060"] }
[]
= "^0.1.0"