Skip to content

Commit 55f192a

Browse files
nnethercoteLegNeato
authored andcommitted
Improve examples README.
- Wrap overlong lines. - Add `i128_demo`. - Fix the link to `path_tracer`.
1 parent 6dd6736 commit 55f192a

File tree

1 file changed

+20
-7
lines changed

1 file changed

+20
-7
lines changed

examples/README.md

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,36 @@
11
# CUDA + Rust examples
22

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.
45

56
## Available Examples
67

78
### [vecadd](vecadd)
9+
810
A simple vector addition example demonstrating basic CUDA kernel usage.
911

1012
### [gemm](gemm)
13+
1114
General Matrix Multiplication (GEMM) implementation showing more complex CUDA operations.
1215

16+
### [i128_demo](i128_demo)
17+
18+
A simple demo that uses 128-bit integer operations.
19+
1320
### [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.
1521

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.
1931

2032
![Path Tracer](assets/path_tracer.png)
2133

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

Comments
 (0)