Skip to content

Commit 52a11f2

Browse files
committed
Use cargo run everywhere when looking under the hood
1 parent b37f8f8 commit 52a11f2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

blog/2025-07-25-rust-on-every-gpu.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ simple developer experience. Here is roughly what happens for a given command:
124124
No external toolchains or code generation steps are involved.
125125
The kernel runs directly on the CPU as standard Rust code.
126126

127-
- `cargo build --features wgpu`:
127+
- `cargo run --features wgpu`:
128128

129129
_During the build_, `build.rs` uses [`rustc_codegen_spirv`](https://github.com/rust-gpu/rust-gpu) to compile the GPU kernel to SPIR-V.
130130
The resulting SPIR-V is embedded into the CPU binary as static data.
@@ -151,7 +151,7 @@ simple developer experience. Here is roughly what happens for a given command:
151151
- SPIR-V is passed to Vulkan
152152
- Vulkan executes the kernel on the GPU
153153

154-
- `cargo build --features cuda`:
154+
- `cargo run --features cuda`:
155155

156156
_During the build_, `build.rs` uses
157157
[`rustc_codegen_nvvm`](https://github.com/Rust-GPU/Rust-CUDA) to compile the GPU

0 commit comments

Comments
 (0)