Skip to content
This repository was archived by the owner on Mar 28, 2023. It is now read-only.

[SYCL][ESIMD] Fixed stack overflow crash on Windows #41

Merged
merged 1 commit into from
Nov 2, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions SYCL/ESIMD/accessor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ constexpr unsigned int VL = 1024 * 128;
using Ty = float;

int main() {
Ty data0[VL] = {0};
Ty data1[VL] = {0};
Ty *data0 = new float[VL];
Ty *data1 = new float[VL];
constexpr Ty VAL = 5;

for (int i = 0; i < VL; i++) {
Expand Down Expand Up @@ -88,6 +88,10 @@ int main() {
<< " != " << gold1 << "(gold)\n";
}
}

delete[] data0;
delete[] data1;

if (err_cnt == 0) {
std::cout << "Passed\n";
return 0;
Expand Down