Registry / build-tool / bindgen-cuda

bindgen-cuda

JSON →
library0.1.6rscratesunverified

Bindgen-like interface to build CUDA kernels to interact with within Rust.

# Cargo.toml [dependencies] bindgen_cuda = "0.1.6"
INSTALL
IMPORT
SIG · BINDGEN-CUDA
B
bindgen-cuda
build-toolrustv0.1.6
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Builder
use bindgen_cuda::Builder;

Minimal example building a CUDA kernel using bindgen_cuda.

use bindgen_cuda::Builder; fn main() { let builder = Builder::default() .kernel("my_kernel.cu") .build() .unwrap(); println!("CUDA kernel built: {:?}", builder); }
Debug
Known issues
gotchaRequires CUDA toolkit and nvcc compiler installed.
fix
Install CUDA toolkit and ensure nvcc is in PATH.
affects: >=0.1.0
Upgrade
Version history
0.1.6latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
35 hits · last 30 days
node
30
Meta
2
OpenAI (training)
1
Resources
bindgen-cuda — cargo add bindgen-cuda · libregistry