cuda-oxide 0.4.0

cuda-oxide provides a high-level, rusty wrapper over CUDA. It provides the best safety one can get when working with hardware.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use cuda_oxide::*;

fn main() {
    Cuda::init().unwrap();
    let v = Cuda::version().unwrap();
    println!("{:?}", v);
    for device in Cuda::list_devices().unwrap() {
        println!("name: {}", device.name().unwrap());
        println!("uuid: {}", device.uuid().unwrap());
        println!("memory size: {}", device.memory_size().unwrap());
        println!(
            "clock rate: {}",
            device
                .get_attribute(DeviceAttribute::MemoryClockRate)
                .unwrap()
        );
    }
}