25 lines
658 B
Plaintext
25 lines
658 B
Plaintext
#include "../test_static.isph"
|
|
// rule: skip on arch=xe64
|
|
|
|
task void f_f(uniform float RET[], uniform float aFOO[]) {
|
|
int32 *src = new int32[1024];
|
|
int32 *dst = new int32[1024];
|
|
|
|
for (uniform int i = 0; i < 1024; ++i) {
|
|
#pragma ignore warning(perf)
|
|
src[i] = programIndex * 10000 + i;
|
|
}
|
|
|
|
if (programIndex == 2)
|
|
memcpy(dst, src, programCount*sizeof(uniform int));
|
|
else
|
|
memcpy(dst, src, programCount*sizeof(uniform int));
|
|
|
|
#pragma ignore warning(perf)
|
|
RET[programIndex] = dst[programIndex];
|
|
}
|
|
|
|
task void result(uniform float RET[]) {
|
|
RET[programIndex] = 10000 * programIndex + programIndex;
|
|
}
|