/
redgpu
/
ispc
Обзор
Документация
Войти
/
redgpu
/
ispc
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
test
tests/launch-4.ispc
17 строк
405 B
Arina Neshlyaeva
Remove xe32 architecture
22 июн 2023, 20:01
22 июн 2023, 20:01
d4c6772
Код
Авторство
О чём код?
#include "../test_static.isph" // rule: skip on arch=xe64 static float array[6]; task void x(uniform int i, float f) { array[i] = f; } task void f_fu(uniform float RET[], uniform float fFOO[], uniform float fu) { float f = fFOO[programIndex]; launch[1] x(fu, f); sync; RET[programIndex] = array[5]; } task void result(uniform float RET[]) { RET[programIndex] = 1+programIndex; }