aboutsummaryrefslogtreecommitdiffhomepage
path: root/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceSycl.h
diff options
context:
space:
mode:
authorGravatar Benoit Steiner <benoit.steiner.goog@gmail.com>2016-11-17 20:27:54 -0800
committerGravatar Benoit Steiner <benoit.steiner.goog@gmail.com>2016-11-17 20:27:54 -0800
commit4349fc640ee107ad1833a9f44f312e9becdfc7ed (patch)
tree34c18bb9a2348ee2a9d930931303d0ff35fc9d01 /unsupported/Eigen/CXX11/src/Tensor/TensorDeviceSycl.h
parent004344cf5447f40166043c5003c7dbf097ff1a7c (diff)
Created a test to check that the sycl runtime can successfully report errors (like ivision by 0).
Small cleanup
Diffstat (limited to 'unsupported/Eigen/CXX11/src/Tensor/TensorDeviceSycl.h')
-rw-r--r--unsupported/Eigen/CXX11/src/Tensor/TensorDeviceSycl.h3
1 files changed, 1 insertions, 2 deletions
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