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
16
17
18
/*use std::rc::{Weak, Rc};

thread_local! {
    pub static CPU_CACHE: Vec<(Rc<*mut usize>, usize)> = vec![];
}

pub struct CacheBuffer<T> {
    ptr: Weak<*mut T>,
    len: usize,
}

#[test]
fn test_cpu_cache() {
    let x = Rc::new(10.);
    let weak = Rc::downgrade(&x);
    let upgrade = weak.upgrade().unwrap();
    let x = Rc::as_ptr(&x) as *mut f64;
}*/