mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
[SYCL] Extending SYCL queue interface extension.
This commit is contained in:
committed by
Antonio Sánchez
parent
32a3f9ac33
commit
cbe03f3531
@@ -136,6 +136,15 @@ class QueueInterface {
|
||||
this->exception_caught_ = this->sycl_async_handler(l);
|
||||
},
|
||||
num_threads) {}
|
||||
|
||||
explicit QueueInterface(
|
||||
const cl::sycl::queue& q, unsigned num_threads = std::thread::hardware_concurrency())
|
||||
: m_queue(q),
|
||||
#ifdef EIGEN_SYCL_USE_PROGRAM_CLASS
|
||||
m_prog(m_queue.get_context(), get_sycl_supported_devices()),
|
||||
#endif
|
||||
m_thread_pool(num_threads),
|
||||
m_device_info(m_queue) {}
|
||||
|
||||
#ifdef EIGEN_SYCL_USE_PROGRAM_CLASS
|
||||
EIGEN_STRONG_INLINE cl::sycl::program &program() const { return m_prog; }
|
||||
|
||||
Reference in New Issue
Block a user