cellular_raza-core 0.5.0

Cellular simulation tool
Documentation
1
2
3
4
5
6
7
8
9
10
11
kernel void saxpy_float (
    global float* z,
    global float const* x,
    global float const* y,
    float a
) {
    const size_t i = get_global_id(0);
    for (int j=0; j<1000; j++) {
        z[i] = a*x[i] + y[i];
    }
}