From 8b1c2108ba210e39a181ebe9548760bd17474a0a Mon Sep 17 00:00:00 2001 From: Mehdi Goli Date: Thu, 22 Dec 2016 16:45:38 +0000 Subject: Reverting asynchronous exec to Synchronous exec regarding random race condition. --- unsupported/Eigen/CXX11/src/Tensor/TensorDeviceSycl.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'unsupported/Eigen/CXX11/src/Tensor/TensorDeviceSycl.h') diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceSycl.h b/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceSycl.h index 16bbbf894..268d9d148 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceSycl.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceSycl.h @@ -307,9 +307,12 @@ struct SyclDevice { sycl_queue().wait_and_throw(); //pass } - EIGEN_STRONG_INLINE void asynchronousExec() const { - sycl_queue().throw_asynchronous();//pass - } + EIGEN_STRONG_INLINE void asynchronousExec() const { + ///FIXEDME:: currently there is a race condition regarding the asynch scheduler. + //sycl_queue().throw_asynchronous();// does not pass. Temporarily disabled + sycl_queue().wait_and_throw(); //pass + + } // This function checks if the runtime recorded an error for the // underlying stream device. EIGEN_STRONG_INLINE bool ok() const { -- cgit v1.2.3