custos 0.7.0

A minimal OpenCL, WGPU, CUDA and host CPU array manipulation engine.
Documentation
1
2
3
4
5
6
7
8
use custos::{Buffer, CPU};

fn main() {
    let device = CPU::new();

    let a = Buffer::from((&device, [5, 7, 2, 10]));
    assert_eq!(a.read(), vec![5, 7, 2, 10])
}