Skip to content

Commit 7987a43

Browse files
authored
[SYCL][Graph] Fix array overflow in the test usm_memset_shortcut.cpp (#18404)
1 parent b8b385e commit 7987a43

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sycl/test-e2e/Graph/RecordReplay/usm_memset_shortcut.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ int main() {
2222
Queue.submit([&](handler &CGH) {
2323
CGH.depends_on(Init);
2424
CGH.single_task<class double_dest>([=]() {
25-
for (int i = 0; i < Size; i++)
25+
for (int i = 0; i < N; i++)
2626
Arr[i] = 2 * Arr[i];
2727
});
2828
});

0 commit comments

Comments
 (0)