Continuing the discussion from When will CUDA be natively supported: Have Nvidia official supported rust yet? This topic was closed. So I can't do any comment?
Nvidia hasn't done anything Rust related. GitHub - Rust-GPU/Rust-CUDA: Ecosystem of libraries and tools for writing and executing fast GPU code fully in Rust. is still your best bet.
Although nvidia has less support with Rust, Rust has its own nvptx backend (using LLVM), and we could generating PTX code with that backend.
If you thought that rust-cuda is heavy, you could try my small crate cuda_min, which does not even require an installed cuda runtime. You could use any version of cuda, any version of rust compiler, to write cuda program with ptx code.
thanks
thanka
Yeah right now the cuda implementation for most libraries is connecting to pytorch, but that gives you some opportunities to see how to use that to implement it in your own repo. I'll link to how Burn Ai is doing it. They probably have one of the better if not the best implementation of this