/
redgpu
/
clspv
Обзор
Документация
Войти
/
redgpu
/
clspv
Код
Запросы
0
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
test/Coherent/write_only.cl
13 строк
366 B
alan-baker
Coherent decoration for global variables (#272)
15 мар 2019, 17:25
Не верифицирован
15 мар 2019, 17:25
e930801
Код
Авторство
О чём код?
// RUN: clspv %s -o %t.spv // RUN: spirv-dis -o %t.spvasm %t.spv // RUN: FileCheck %s < %t.spvasm // RUN: spirv-val --target-env vulkan1.0 %t.spv kernel void foo(global int *data, local int* l) { int x = l[0]; barrier(CLK_GLOBAL_MEM_FENCE); data[0] = x; } // |data| is only written so it is not marked as Coherent. // CHECK-NOT: OpDecorate {{.*}} Coherent