From 10116b3be8730507876336b92490a82d39000f50 Mon Sep 17 00:00:00 2001 From: Peter Boyle Date: Wed, 6 Mar 2024 01:13:27 +0000 Subject: [PATCH] Force device copyable and tell SYCL to shut it. --- Grid/tensors/Tensor_traits.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Grid/tensors/Tensor_traits.h b/Grid/tensors/Tensor_traits.h index 98bc3986..536e17f1 100644 --- a/Grid/tensors/Tensor_traits.h +++ b/Grid/tensors/Tensor_traits.h @@ -404,3 +404,12 @@ NAMESPACE_BEGIN(Grid); }; NAMESPACE_END(Grid); + +#ifdef GRID_SYCL +template struct +sycl::is_device_copyable::value && (!std::is_trivially_copyable::value), + void>::type> + : public std::true_type {}; +#endif +