custos 0.7.0

A minimal OpenCL, WGPU, CUDA and host CPU array manipulation engine.
Documentation
1
2
3
4
5
6
7
8
9
10
use custos::prelude::*;

#[cfg(feature = "cpu")]
#[test]
fn from_slice() {
    let cpu = CPU::new();

    let buf = Buffer::<f32, CPU>::from((&cpu, &[2.1; 10]));
    assert_eq!(buf.as_slice(), &[2.1; 10])
}