14 lines
345 B
Plaintext
14 lines
345 B
Plaintext
#include "../test_static.isph"
|
|
uniform int64 s = 0;
|
|
|
|
task void f_f(uniform float RET[], uniform float aFOO[]) {
|
|
float a = aFOO[programIndex];
|
|
float delta = 1;
|
|
float b = atomic_add_global(&s, delta);
|
|
RET[programIndex] = reduce_add(b);
|
|
}
|
|
|
|
task void result(uniform float RET[]) {
|
|
RET[programIndex] = reduce_add(programIndex);
|
|
}
|