mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-05-02 00:34:14 +08:00
[SYCL] Extending SYCL queue interface extension.
This commit is contained in:
parent
32a3f9ac33
commit
cbe03f3531
@ -136,6 +136,15 @@ class QueueInterface {
|
|||||||
this->exception_caught_ = this->sycl_async_handler(l);
|
this->exception_caught_ = this->sycl_async_handler(l);
|
||||||
},
|
},
|
||||||
num_threads) {}
|
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
|
#ifdef EIGEN_SYCL_USE_PROGRAM_CLASS
|
||||||
EIGEN_STRONG_INLINE cl::sycl::program &program() const { return m_prog; }
|
EIGEN_STRONG_INLINE cl::sycl::program &program() const { return m_prog; }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user