mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-09-22 22:33:15 +08:00
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
@ -88,9 +88,15 @@ struct QueueInterface {
|
||||
}
|
||||
}
|
||||
}))
|
||||
#else
|
||||
m_queue(cl::sycl::queue(s))
|
||||
#endif
|
||||
#else
|
||||
m_queue(cl::sycl::queue(s, [&](cl::sycl::exception_list l) {
|
||||
for (const auto& e : l) {
|
||||
if (e) {
|
||||
exception_caught_ = true;
|
||||
}
|
||||
}
|
||||
}))
|
||||
#endif
|
||||
{}
|
||||
|
||||
/// Allocating device pointer. This pointer is actually an 8 bytes host pointer used as key to access the sycl device buffer.
|
||||
|
Loading…
x
Reference in New Issue
Block a user