From the course: Rust for Data Engineering
Unlock this course with a free trial
Join today to access over 24,900 courses taught by industry experts.
Concurrency stress test with a GPU - Rust Tutorial
From the course: Rust for Data Engineering
Concurrency stress test with a GPU
- One of the more powerful ways to use Rust is to build a systems tool that talks to a GPU. Fortunately, because PyTorch bindings work so well with Rust, what I'm going to do is piece together a tool that can not only talk to the CPU and saturate it via PyTorch but also can talk to a CUDA enabled GPU saturated with PyTorch and then use some of the advantages of Rust which is the true cause that allows you to spawn a pool of threads and then send data into a GPU to try to get the most out of it in terms of a stress test. Let's go ahead and build that tool in just a few seconds. Let's take a look at the architecture of how you could build a stress test tool for a CUDA enabled GPU by using the systems programming capabilities of Rust and the Helpful Rust by George Bindings. First step, we have to have access to a CUDA enabled GPU with GitHub code spaces, that's one way to do it. It could also be a AWS instance or a GCP instance…
Contents
-
-
-
-
-
-
-
(Locked)
Core concepts in concurrency4m 36s
-
(Locked)
Dining philosophers5m 36s
-
(Locked)
Web crawl Wikipedia with Rayon3m 34s
-
(Locked)
Intelligent chatbot with Tokio4m 36s
-
(Locked)
Multi-threaded deduplication with Rust8m 57s
-
(Locked)
Energy efficiency Python vs. Rust5m 37s
-
(Locked)
Concurrency stress test with a GPU7m 33s
-
(Locked)
Host efficiency serverless optimization problem3m 55s
-
(Locked)
-
-
-
-
-
-