|
1 | 1 | # CUDA + Rust examples |
2 | 2 |
|
3 | | -The examples in here showcase both the GPU side and the CPU side of writing a tool which uses the GPU. |
| 3 | +The examples in here showcase both the GPU side and the CPU side of writing a tool which uses the |
| 4 | +GPU. |
4 | 5 |
|
5 | 6 | ## Available Examples |
6 | 7 |
|
7 | 8 | ### [vecadd](vecadd) |
| 9 | + |
8 | 10 | A simple vector addition example demonstrating basic CUDA kernel usage. |
9 | 11 |
|
10 | 12 | ### [gemm](gemm) |
| 13 | + |
11 | 14 | General Matrix Multiplication (GEMM) implementation showing more complex CUDA operations. |
12 | 15 |
|
| 16 | +### [i128_demo](i128_demo) |
| 17 | + |
| 18 | +A simple demo that uses 128-bit integer operations. |
| 19 | + |
13 | 20 | ### [sha2_crates_io](sha2_crates_io) |
14 | | -Demonstrates using an existing Rust crate ([`sha2`](https://crates.io/crates/sha2) from crates.io) on both CPU and GPU without modification. Shows that the same cryptographic hashing code can run on CUDA, producing identical results to the CPU implementation. |
15 | 21 |
|
16 | | -### [Interactive Path Tracer](path_tracer) |
17 | | -A very simple interactive Path Tracer inspired by [Ray Tracing In One Weekend](https://raytracing.github.io/books/RayTracingInOneWeekend.html) |
18 | | -which runs on CPU or GPU, with the additional option of running OptiX denoising. |
| 22 | +Demonstrates using an existing Rust crate ([`sha2`](https://crates.io/crates/sha2) from crates.io) |
| 23 | +on both CPU and GPU without modification. Shows that the same cryptographic hashing code can run on |
| 24 | +CUDA, producing identical results to the CPU implementation. |
| 25 | + |
| 26 | +### [Interactive Path Tracer](../crates/optix/examples/path_tracer/) |
| 27 | + |
| 28 | +A very simple interactive Path Tracer inspired by [Ray Tracing In One |
| 29 | +Weekend](https://raytracing.github.io/books/RayTracingInOneWeekend.html) which runs on CPU or GPU, |
| 30 | +with the additional option of running OptiX denoising. |
19 | 31 |
|
20 | 32 |  |
21 | 33 |
|
22 | | -The Path Tracer uses cuda_builder to compile the core path tracer for the GPU and GPU (hardware raytracing), and uses the core path tracer as a normal crate |
23 | | -for CPU rendering and sharing structures. |
| 34 | +The Path Tracer uses `cuda_builder` to compile the core path tracer for the GPU and GPU (hardware |
| 35 | +raytracing), and uses the core path tracer as a normal crate for CPU rendering and sharing |
| 36 | +structures. |
0 commit comments