aboutsummaryrefslogtreecommitdiffhomepage
path: root/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceSycl.h
diff options
context:
space:
mode:
authorGravatar Mehdi Goli <mehdi.goli@codeplay.com>2016-12-22 16:45:38 +0000
committerGravatar Mehdi Goli <mehdi.goli@codeplay.com>2016-12-22 16:45:38 +0000
commit8b1c2108ba210e39a181ebe9548760bd17474a0a (patch)
treee2bd781af5000894d16bf9b90b396480bf5adcd2 /unsupported/Eigen/CXX11/src/Tensor/TensorDeviceSycl.h
parentc55ecfd82062c1cd6b1e1d6c53319e99d65d3b0f (diff)
Reverting asynchronous exec to Synchronous exec regarding random race condition.
Diffstat (limited to 'unsupported/Eigen/CXX11/src/Tensor/TensorDeviceSycl.h')
-rw-r--r--unsupported/Eigen/CXX11/src/Tensor/TensorDeviceSycl.h9
1 files changed, 6 insertions, 3 deletions
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 {