Skip to content
This repository
Fetching contributors…

Cannot retrieve contributors at this time

file 17 lines (13 sloc) 0.428 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17

export uniform int width() { return programCount; }

uniform int32 s = 0;

export void f_f(uniform float RET[], uniform float aFOO[]) {
    int32 a = aFOO[programIndex];
    float b = 0;
    if (programIndex < 32)
        atomic_min_local(&s, a);
    RET[programIndex] = reduce_min(b);
}

export void result(uniform float RET[]) {
    int pi = (programIndex < 32) ? programIndex : 0;
    RET[programIndex] = reduce_min(pi);
}
Something went wrong with that request. Please try again.