From 4349fc640ee107ad1833a9f44f312e9becdfc7ed Mon Sep 17 00:00:00 2001 From: Benoit Steiner Date: Thu, 17 Nov 2016 20:27:54 -0800 Subject: Created a test to check that the sycl runtime can successfully report errors (like ivision by 0). Small cleanup --- unsupported/Eigen/CXX11/src/Tensor/TensorDeviceSycl.h | 3 +-- 1 file changed, 1 insertion(+), 2 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 7f0f16de3..19686177e 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceSycl.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceSycl.h @@ -158,10 +158,9 @@ struct SyclDevice { }); }); m_queue.throw_asynchronous(); - } else{ + } else { eigen_assert("no source or destination device memory found."); } - //::memcpy(dst, src, n); } /// The memcpyHostToDevice is used to copy the device only pointer to a host pointer. Using the device -- cgit v1.2.3