File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -84,13 +84,13 @@ bool isInlineASMSupported(sycl::device Device) {
84
84
return true ;
85
85
}
86
86
87
- auto exception_handler = [] (sycl::exception_list exceptions) {
88
- for (std::exception_ptr const & e : exceptions) {
87
+ auto exception_handler = [](sycl::exception_list exceptions) {
88
+ for (std::exception_ptr const & e : exceptions) {
89
89
try {
90
- std::rethrow_exception (e);
91
- } catch (sycl::exception const & e) {
92
- std::cout << " Caught asynchronous SYCL exception:\n "
93
- << e.what () << std::endl;
90
+ std::rethrow_exception (e);
91
+ } catch (sycl::exception const & e) {
92
+ std::cout << " Caught asynchronous SYCL exception:\n "
93
+ << e.what () << std::endl;
94
94
}
95
95
}
96
96
};
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ int main() {
31
31
std::string what = e.what ();
32
32
// TODO: check for precise exception class and message once they are known
33
33
// (pending driver update)
34
- if (what.find (" OpenCL API failed" ) != std::string::npos) {
34
+ if (what.find (" OpenCL API failed" ) != std::string::npos) {
35
35
return 0 ;
36
36
}
37
37
}
You can’t perform that action at this time.
0 commit comments