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
11
12
13
14
15
use custos::prelude::*;
use cuwanto_server as cuw;

#[test]
fn test_network_device() -> custos::Result<()> {
    let device = Network::new("127.0.0.1:11001", cuw::DeviceType::CPU)?;
    //let device = CPU::new();
    //let device = Stack::new().unwrap();
    //let buf = device.cuw_client.borrow_mut().alloc_buf::<f64>(4)?;
    let buf = Buffer::<f64, _>::from((&device, &[1., 2., 3., 4.]));
    // ....
    println!("buf: {:?}", buf.read());
    //buf.clear();
    Ok(())
}