[SYCL] Extending SYCL queue interface extension.

This commit is contained in:
Mehdi Goli 2022-05-23 14:45:27 +00:00 committed by Antonio Sánchez
parent 32a3f9ac33
commit cbe03f3531

View File

@ -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