/
redgpu
/
ispc
Обзор
Документация
Войти
/
redgpu
/
ispc
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
test
tests/test-89.ispc
14 строк
400 B
Arina Neshlyaeva
Adapt test system to redefined meaning of "task" functions on GPU.
13 авг 2021, 08:32
13 авг 2021, 08:32
2aa444f
Код
Авторство
О чём код?
#include "../test_static.isph" task void f_fu(uniform float RET[], uniform float xxFOO[], uniform float a) { float xx = xxFOO[programIndex]; uniform float x[4][3]; uniform int i, j; for (i = 0; i < 4; ++i) for (j = 0; j < 3; ++j) x[i][j] = a * i * j; RET[programIndex] = x[3][2]; } task void result(uniform float RET[]) { RET[programIndex] = 30.000000; }