13 lines
320 B
Plaintext
13 lines
320 B
Plaintext
#include "../test_static.isph"
|
|
uniform int32 s = 0;
|
|
|
|
task void f_f(uniform float RET[], uniform float aFOO[]) {
|
|
int32 a = aFOO[programIndex];
|
|
float b = atomic_min_global(&s, a);
|
|
RET[programIndex] = reduce_min(b);
|
|
}
|
|
|
|
task void result(uniform float RET[]) {
|
|
RET[programIndex] = reduce_min(programIndex);
|
|
}
|