1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
__kernel void compiler_subgroup_buffer_block_write_ui1(global uint *src, global uint *dst)
{
int id = get_global_id(0);
global uint * p = dst + get_sub_group_id() * get_max_sub_group_size();
intel_sub_group_block_write_ui(p,src[id]);
}
__kernel void compiler_subgroup_buffer_block_write_ui2(global uint2 *src, global uint *dst)
{
int id = get_global_id(0);
global uint * p = dst + get_sub_group_id() * get_max_sub_group_size()*2;
intel_sub_group_block_write_ui2(p,src[id]);
}
__kernel void compiler_subgroup_buffer_block_write_ui4(global uint4 *src, global uint *dst)
{
int id = get_global_id(0);
global uint * p = dst + get_sub_group_id() * get_max_sub_group_size()*4;
intel_sub_group_block_write_ui4(p,src[id]);
}
__kernel void compiler_subgroup_buffer_block_write_ui8(global uint8 *src, global uint *dst)
{
int id = get_global_id(0);
global uint * p = dst + get_sub_group_id() * get_max_sub_group_size()*8;
intel_sub_group_block_write_ui8(p,src[id]);
}
#ifdef SHORT
__kernel void compiler_subgroup_buffer_block_write_us1(global ushort *src, global ushort *dst)
{
int id = get_global_id(0);
global ushort * p = dst + get_sub_group_id() * get_max_sub_group_size();
intel_sub_group_block_write_us(p,src[id]);
}
__kernel void compiler_subgroup_buffer_block_write_us2(global ushort2 *src, global ushort *dst)
{
int id = get_global_id(0);
global ushort * p = dst + get_sub_group_id() * get_max_sub_group_size()*2;
intel_sub_group_block_write_us2(p,src[id]);
}
__kernel void compiler_subgroup_buffer_block_write_us4(global ushort4 *src, global ushort *dst)
{
int id = get_global_id(0);
global ushort * p = dst + get_sub_group_id() * get_max_sub_group_size()*4;
intel_sub_group_block_write_us4(p,src[id]);
}
__kernel void compiler_subgroup_buffer_block_write_us8(global ushort8 *src, global ushort *dst)
{
int id = get_global_id(0);
global ushort * p = dst + get_sub_group_id() * get_max_sub_group_size()*8;
intel_sub_group_block_write_us8(p,src[id]);
}
#endif
|