-
Notifications
You must be signed in to change notification settings - Fork 2
/
kernel_8stores.cxx
35 lines (31 loc) · 945 Bytes
/
kernel_8stores.cxx
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
#include "define.hpp"
#include "kernel.hpp"
//
void launcher_stores(T *d_input, T *d1, T *d2, T *d3, T *d4, T *d5, T *d6, T *d7, T *d8, size_t N, sycl::queue queue)
{
queue.submit([&](sycl::handler &h) {
h.single_task([=]() [[intel::kernel_args_restrict]] {
// Start of kernel
for (size_t i = 0; i < N; ++i) {
T input = d_input[i];
T x1 = input + 1;
T x2 = input + 2;
T x3 = input + 3;
T x4 = input + 4;
T x5 = input + 5;
T x6 = input + 6;
T x7 = input + 7;
T x8 = input + 8;
d1[i] = x1;
d2[i] = x2;
d3[i] = x3;
d4[i] = x4;
d5[i] = x5;
d6[i] = x6;
d7[i] = x7;
d8[i] = x8;
}
// End of kernel
});
});
}