mirror of
https://github.com/paboyle/Grid.git
synced 2024-11-09 23:45:36 +00:00
Force device copyable and tell SYCL to shut it.
This commit is contained in:
parent
a46a0f0882
commit
10116b3be8
@ -404,3 +404,12 @@ NAMESPACE_BEGIN(Grid);
|
|||||||
};
|
};
|
||||||
NAMESPACE_END(Grid);
|
NAMESPACE_END(Grid);
|
||||||
|
|
||||||
|
|
||||||
|
#ifdef GRID_SYCL
|
||||||
|
template<typename T> struct
|
||||||
|
sycl::is_device_copyable<T, typename std::enable_if<
|
||||||
|
Grid::isGridTensor<T>::value && (!std::is_trivially_copyable<T>::value),
|
||||||
|
void>::type>
|
||||||
|
: public std::true_type {};
|
||||||
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user