Skip to content

Commit 90c9175

Browse files
committed
Drop custom async exception handler
1 parent 2a73588 commit 90c9175

File tree

5 files changed

+5
-30
lines changed

5 files changed

+5
-30
lines changed

sycl/test-e2e/VirtualFunctions/misc/group-barrier.cpp

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,7 @@ class MultiplyOp : public BaseOp {
6969
int main() try {
7070
using storage_t = obj_storage_t<SumOp, MultiplyOp>;
7171

72-
auto asyncHandler = [](sycl::exception_list list) {
73-
for (auto &e : list)
74-
std::rethrow_exception(e);
75-
};
76-
77-
sycl::queue q(asyncHandler);
72+
sycl::queue q;
7873

7974
auto *DeviceStorage = sycl::malloc_shared<storage_t>(1, q);
8075
sycl::range G{512};

sycl/test-e2e/VirtualFunctions/misc/math.cpp

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,7 @@ int main() try {
4545

4646
storage_t HostStorage;
4747

48-
auto asyncHandler = [](sycl::exception_list list) {
49-
for (auto &e : list)
50-
std::rethrow_exception(e);
51-
};
52-
53-
sycl::queue q(asyncHandler);
48+
sycl::queue q;
5449

5550
auto *DeviceStorage = sycl::malloc_shared<storage_t>(1, q);
5651

sycl/test-e2e/VirtualFunctions/misc/range-non-uniform-vf-2.cpp

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,7 @@ int main() try {
4949

5050
storage_t HostStorage;
5151

52-
auto asyncHandler = [](sycl::exception_list list) {
53-
for (auto &e : list)
54-
std::rethrow_exception(e);
55-
};
56-
57-
sycl::queue q(asyncHandler);
52+
sycl::queue q;
5853

5954
auto *DeviceStorage = sycl::malloc_shared<storage_t>(1, q);
6055
sycl::range R{1024};

sycl/test-e2e/VirtualFunctions/misc/range-non-uniform-vf.cpp

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,7 @@ int main() try {
4646

4747
std::array<storage_t, 3> HostStorage;
4848

49-
auto asyncHandler = [](sycl::exception_list list) {
50-
for (auto &e : list)
51-
std::rethrow_exception(e);
52-
};
53-
54-
sycl::queue q(asyncHandler);
49+
sycl::queue q;
5550

5651
auto *DeviceStorage = sycl::malloc_shared<storage_t>(3, q);
5752
sycl::range R{1024};

sycl/test-e2e/VirtualFunctions/misc/range-uniform-vf.cpp

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,7 @@ int main() try {
4646

4747
storage_t HostStorage;
4848

49-
auto asyncHandler = [](sycl::exception_list list) {
50-
for (auto &e : list)
51-
std::rethrow_exception(e);
52-
};
53-
54-
sycl::queue q(asyncHandler);
49+
sycl::queue q;
5550

5651
auto *DeviceStorage = sycl::malloc_shared<storage_t>(1, q);
5752
sycl::range R{1024};

0 commit comments

Comments
 (0)