Skip to content

Use cargo run everywhere when looking under the hood #89

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 25, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions blog/2025-07-25-rust-on-every-gpu.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ simple developer experience. Here is roughly what happens for a given command:
No external toolchains or code generation steps are involved.
The kernel runs directly on the CPU as standard Rust code.

- `cargo build --features wgpu`:
- `cargo run --features wgpu`:

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

- `cargo build --features cuda`:
- `cargo run --features cuda`:

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