oneDPL icon indicating copy to clipboard operation
oneDPL copied to clipboard

[oneDPL][hetero] Re-woring sycl::is_device_copyable trait specializations for oneDPL types

Open MikeDvorskiy opened this issue 10 months ago • 0 comments

[oneDPL][hetero] Re-woring sycl::is_device_copyable trait specializations for oneDPL types.

  1. After offline discussed internally in oneDPL team, we decide to keep sycl::is_device_copyable trait specialization next to each oneDPL type definition.
  2. Also we have to support the previous oneAPI compiler version via special macro
  3. 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

MikeDvorskiy avatar Apr 18 '24 09:04 MikeDvorskiy