/
redgpu
/
ispc
Обзор
Документация
Войти
/
redgpu
/
ispc
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
test
tests/xe-task-index.ispc
15 строк
436 B
Arina Neshlyaeva
Remove xe32 architecture
22 июн 2023, 20:01
22 июн 2023, 20:01
d4c6772
Код
Авторство
О чём код?
#include "../test_static.isph" // rule: skip on arch=* // rule: run on arch=xe64 // TODO: the test should be reworked when atomic operation on Xe are available. // It is hard to check taskIndex now. task void f_t(uniform float RET[]) { RET[taskIndex] = taskIndex; } task void result_t(uniform float RET[], uniform int groupSpaceWidth, uniform int groupSpaceHeight) { foreach(i = 0 ... taskCount) { RET[i] = i; } }