How to explicitly mark a struct device_copiable #8734
-
Hello,
In DPC++ this define exists, but I'm not able to extend it without having the compiler complain. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @Luigi-Crisci, You can find an example in our tests: basic_tests/is_device_copyable.cpp. Let's say you have your llvm/sycl/test/basic_tests/is_device_copyable.cpp Lines 21 to 26 in 10e07a3 Specializing You can also find examples in 3rd-party repos, such as kokkos/kokkos, for example. |
Beta Was this translation helpful? Give feedback.
Hi @Luigi-Crisci,
You can find an example in our tests: basic_tests/is_device_copyable.cpp.
Let's say you have your
struct
:llvm/sycl/test/basic_tests/is_device_copyable.cpp
Lines 21 to 26 in 10e07a3
Specializing
is_device_copyable
trait for it would look like:llvm/sycl/test/basic_tests/is_device_copyable.cpp
Line 63 in 10e07a3
You can also find examples in 3rd-party repos, such as kokkos/kokkos,…