Registry / other / cudarc

cudarc

JSON →
library0.19.6rscratesunverified

Safe and minimal CUDA bindings for Rust.

# Cargo.toml [dependencies] cudarc = "0.19.6"
INSTALL
IMPORT
SIG · CUDARC
C
cudarc
otherrustv0.19.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.

CudaDevice
use cudarc::driver::CudaDevice;

Initializes a CUDA device and prints its name.

use cudarc::driver::CudaDevice; fn main() -> Result<(), Box<dyn std::error::Error>> { let dev = CudaDevice::new(0)?; println!("Device: {}", dev.name()?); Ok(()) }
Debug
Known issues
gotchaRequires CUDA toolkit and compatible GPU.
fix
Install CUDA toolkit and ensure a CUDA-capable GPU is available.
affects: *
Upgrade
Version history
0.19.6latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
7
Meta
1
Resources
cudarc — cargo add cudarc · libregistry