Registry / other / cust
library0.3.2rscratesunverified

High level bindings to the CUDA Driver API for GPU computing.

# Cargo.toml [dependencies] cust = "0.3.2"
INSTALL
IMPORT
SIG · CUST
C
cust
otherrustv0.3.2
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 cust::CudaDevice;

Initializes a CUDA device using the CUDA Driver API.

use cust::CudaDevice; fn main() { let device = CudaDevice::new(0).expect("Failed to get CUDA device"); println!("CUDA device: {:?}", device.name()); }
Debug
Known issues
gotchaRequires NVIDIA CUDA toolkit and driver installed.
fix
Install CUDA toolkit from NVIDIA and ensure compatible GPU drivers.
affects: >=0.1.0
Upgrade
Version history
0.3.2latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
12 hits · last 30 days
node
12
Resources