Registry / other / rustacuda

rustacuda

JSON →
library0.1.3rscratesunverified

A safe Rust wrapper around the CUDA Driver API for GPU programming.

# Cargo.toml [dependencies] rustacuda = "0.1.3"
INSTALL
IMPORT
SIG · RUSTACUDA
R
rustacuda
otherrustv0.1.3
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.

CudaContext
use rustacuda::CudaContext;

Initialize CUDA and create a context

use rustacuda::CudaContext; fn main() { rustacuda::init(rustacuda::CudaFlags::empty()).unwrap(); let device = rustacuda::device::Device::get_device(0).unwrap(); let context = CudaContext::create_and_push(device, rustacuda::CudaFlags::empty()).unwrap(); println!("CUDA context created"); }
Debug
Known issues
gotchaRequires NVIDIA CUDA toolkit and compatible GPU
fix
Install CUDA toolkit from NVIDIA and ensure GPU drivers are up-to-date
affects: >=0.1.0
Upgrade
Version history
0.1.3latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
9 hits · last 30 days
node
8
Resources
rustacuda — cargo add rustacuda · libregistry