Merged in benoitsteiner/opencl (pull request PR-272)
Adding asynchandler to sycl queue as lack of it can cause undefined behaviour.
This commit is contained in:
commit
2f7c2459b7
@ -89,7 +89,13 @@ struct QueueInterface {
|
||||
}
|
||||
}))
|
||||
#else
|
||||
m_queue(cl::sycl::queue(s))
|
||||
m_queue(cl::sycl::queue(s, [&](cl::sycl::exception_list l) {
|
||||
for (const auto& e : l) {
|
||||
if (e) {
|
||||
exception_caught_ = true;
|
||||
}
|
||||
}
|
||||
}))
|
||||
#endif
|
||||
{}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user