https://github.com/PhDP/rust-cuda-template
Simple template for Rust + CUDA.
https://github.com/PhDP/rust-cuda-template
Last synced: 5 months ago
JSON representation
Simple template for Rust + CUDA.
- Host: GitHub
- URL: https://github.com/PhDP/rust-cuda-template
- Owner: PhDP
- Created: 2022-10-29T23:04:45.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-12-06T17:27:23.000Z (over 2 years ago)
- Last Synced: 2024-08-04T02:06:43.970Z (8 months ago)
- Language: Rust
- Size: 303 KB
- Stars: 4
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-cuda-and-hpc - PhDP/rust-cuda-template - cuda-template?style=social"/> : Simple template for Rust + CUDA. (Frameworks)
- awesome-cuda-and-hpc - PhDP/rust-cuda-template - cuda-template?style=social"/> : Simple template for Rust + CUDA. (Frameworks)
- awesome-rust-list - PhDP/rust-cuda-template - cuda-template?style=social"/> : Simple template for Rust + CUDA. (GPU Programming)
- awesome-rust-list - PhDP/rust-cuda-template - cuda-template?style=social"/> : Simple template for Rust + CUDA. (GPU Programming)
README
# rust-cuda-template
Small example of how to compile & use cuda kernels with Rust
using both **nalgebra** and **ndarray**.'src/lib.rs' shows how to use the kernel in 'cuda/matrix.cu'.
To compile the CUDA code and run the test:
$ cargo test
I've added CUDA-specific tests/benchmarks using Google Test and Google
Benchmark so the kernels can be tested outside of the Rust code. Since they use
git submodules you may want to clone this repository with:$ git clone --recursive [email protected]:PhDP/rust-cuda-template.git
## License
You are free to clone this repository and adopt any license you
wish to adopt for your code.