Skip to content

Commit eb59fe1

Browse files
madhav-madhusoodananLegNeato
authored andcommitted
feat: add README.md for the samples/ subdirectory
1 parent 9384c6f commit eb59fe1

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

samples/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Rust-Cuda Samples
2+
3+
These are the Rust-Cuda port of the samples from Nvidia's [cuda-samples](https://github.com/NVIDIA/cuda-samples/tree/master/Samples) repository.
4+
5+
1. Chapter 0: [Introduction](https://github.com/Rust-GPU/rust-cuda/samples/introduction)

samples/introduction/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Chapter 0: Introduction
2+
3+
## [asyncAPI](https://github.com/Rust-GPU/rust-cuda/samples/introduction/async_api)
4+
This example demonstrates two key capabilities of CUDA events: measuring GPU execution time and enabling concurrent CPU-GPU operations.
5+
6+
1. Events are recorded at specific points within a CUDA stream to mark the beginning and end of GPU operations.
7+
2. Because CUDA stream operations execute asynchronously, the CPU remains free to perform other work while the GPU processes tasks (including memory transfers between host and device)
8+
3. The CPU can query these events to check whether the GPU has finished its work, allowing for coordination between the two processors without blocking the CPU.

0 commit comments

Comments
 (0)