Skip to content

Commit 1e00a45

Browse files
committed
Address more feedback
1 parent ac977fc commit 1e00a45

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

sycl/test-e2e/FreeFunctionKernels/free_function_kernel_local_memory.cpp

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ void staticKernel(float *Src, float *Dst) {
4242
sycl::group_barrier(Item.get_group());
4343
if (Item.get_group().leader()) { // Check that memory is indeed shared between
4444
// the work group.
45-
for (int i = 0; i < SIZE; ++i)
46-
assert(LocalMem[i] == Src[i] * Src[i]);
45+
for (int I = 0; I < SIZE; ++I)
46+
assert(LocalMem[I] == Src[I] * Src[I]);
4747
}
4848
Dst[Lid] = LocalMem[Lid];
4949
}
@@ -64,8 +64,8 @@ int main() {
6464
float *Src = sycl::malloc_shared<float>(SIZE, Q);
6565
float *Dst = sycl::malloc_shared<float>(SIZE, Q);
6666

67-
for (int i = 0; i < SIZE; i++) {
68-
Src[i] = i;
67+
for (int I = 0; I < SIZE; I++) {
68+
Src[I] = I;
6969
}
7070

7171
auto ScratchBndl =
@@ -92,20 +92,20 @@ int main() {
9292

9393
syclexp::nd_launch(Q, ScratchKernelcfg, ScratchKrn, Src, Dst);
9494
Q.wait();
95-
for (int i = 0; i < SIZE; i++) {
96-
assert(Dst[i] == 2 * Src[i]);
95+
for (int I = 0; I < SIZE; I++) {
96+
assert(Dst[I] == 2 * Src[I]);
9797
}
9898

9999
syclexp::nd_launch(Q, StaticKernelcfg, StaticKrn, Src, Dst);
100100
Q.wait();
101-
for (int i = 0; i < SIZE; i++) {
102-
assert(Dst[i] == Src[i] * Src[i]);
101+
for (int I = 0; I < SIZE; I++) {
102+
assert(Dst[I] == Src[I] * Src[I]);
103103
}
104104

105105
syclexp::nd_launch(Q, ScratchKernelcfg, ScratchStaticKrn, Src, Dst);
106106
Q.wait();
107-
for (int i = 0; i < SIZE; i++) {
108-
assert(Dst[i] == 2 * Src[i]);
107+
for (int I = 0; I < SIZE; I++) {
108+
assert(Dst[I] == 2 * Src[I]);
109109
}
110110

111111
sycl::free(Src, Q);

0 commit comments

Comments
 (0)