From 577ce78085d2e09675abb5976ab3026235de8eec Mon Sep 17 00:00:00 2001 From: Mehdi Goli Date: Tue, 29 Nov 2016 15:30:42 +0000 Subject: Adding TensorShuffling backend for sycl; adding TensorReshaping backend for sycl; cleaning up the sycl backend. --- unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h') diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h b/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h index 00f8b70ed..abb8420a6 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h @@ -81,7 +81,7 @@ static void run(BufferTOut& bufOut, BufferTIn& bufI, const Eigen::SyclDevice& de }); }; dev.sycl_queue().submit(f); - dev.sycl_queue().throw_asynchronous(); + dev.synchronize(); /* At this point, you could queue::wait_and_throw() to ensure that * errors are caught quickly. However, this would likely impact @@ -173,7 +173,7 @@ struct FullReducer { tmp_global_accessor.get_pointer()[0]+=InnerMostDimReducer::reduce(device_self_evaluator, static_cast(red_factor*(rng)), static_cast(remaining), const_cast(functor)); }); }); - dev.sycl_queue().throw_asynchronous(); + dev.synchronize(); /// This is used to recursively reduce the tmp value to an element of 1; syclGenericBufferReducer::run(out_buffer, temp_global_buffer,dev, GRange, outTileSize); @@ -237,7 +237,7 @@ struct InnerReducer { // } // }); }); - dev.sycl_queue().throw_asynchronous(); + dev.synchronize(); return false; } }; -- cgit v1.2.3