diff options
Diffstat (limited to 'unsupported/Eigen/CXX11/src/Tensor/TensorDeviceSycl.h')
-rw-r--r-- | unsupported/Eigen/CXX11/src/Tensor/TensorDeviceSycl.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceSycl.h b/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceSycl.h index df591c21d..3ccac604f 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceSycl.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceSycl.h @@ -506,7 +506,7 @@ class QueueInterface { EIGEN_STRONG_INLINE void synchronize() const { -#ifdef EIGEN_EXCEPTIONS +#if EIGEN_USE_EXCEPTIONS m_queue.wait_and_throw(); #else m_queue.wait(); @@ -749,7 +749,7 @@ class QueueInterface { set_latest_event(e); if (callback) { auto callback_ = [=]() { -#ifdef EIGEN_EXCEPTIONS +#if EIGEN_USE_EXCEPTIONS cl::sycl::event(e).wait_and_throw(); #else cl::sycl::event(e).wait(); @@ -758,7 +758,7 @@ class QueueInterface { }; m_thread_pool.Schedule(std::move(callback_)); } else { -#ifdef EIGEN_EXCEPTIONS +#if EIGEN_USE_EXCEPTIONS m_queue.wait_and_throw(); #else m_queue.wait(); |