/
redgpu
/
ispc
Обзор
Документация
Войти
/
redgpu
/
ispc
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
test
tests/write-same-loc.ispc
16 строк
495 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 aa[], uniform float b) { uniform int foo[10]; for (uniform int i = 0; i < 10; ++i) foo[i] = 10+i; int bb = b; // Pragma included for testing running run_test.py for entire suite wothout warnings // Remove pragma to view warning #pragma ignore warning foo[bb] = 0; ret[programIndex] = foo[4] + foo[5]; } task void result(uniform float ret[]) { ret[programIndex] = 14; }