oneDPL
oneDPL copied to clipboard
[oneDPL][hetero] Re-woring sycl::is_device_copyable trait specializations for oneDPL types
[oneDPL][hetero] Re-woring sycl::is_device_copyable trait specializations for oneDPL types.
- After offline discussed internally in oneDPL team, we decide to keep sycl::is_device_copyable trait specialization next to each oneDPL type definition.
- Also we have to support the previous oneAPI compiler version via special macro
- Also we have to support a case when SYCL backend is not active.
This is a prototype for 3 different oneDPL types: transform_reduce
, __brick_copy_n
and zip_iterator
(The total number of such oneDPL types is about 50.)
Also the prototype introduces a common code stuff to define the is_device_copyable trait specializations.
Based on GoDBolt prototype: https://godbolt.org/z/qx8nTaKsK
UPDATE!!! The prototype was modified: via a special trait in each device copyable oneDPL type