mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-12 19:59:05 +08:00
Adding asynchandler to sycl queue as lack of it can cause undefined behaviour.
This commit is contained in:
parent
1324ffef2f
commit
c5e8546306
@ -88,9 +88,15 @@ struct QueueInterface {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}))
|
}))
|
||||||
#else
|
#else
|
||||||
m_queue(cl::sycl::queue(s))
|
m_queue(cl::sycl::queue(s, [&](cl::sycl::exception_list l) {
|
||||||
#endif
|
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.
|
/// 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