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
@ -137,6 +137,15 @@ class QueueInterface {
|
||||
},
|
||||
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; }
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user