Closed
Description
The sycl_ext_oneapi_complex_algorithms extension adds support for std::complex
to algorithms like reduce
and reduce_over_group
.
During review of #5394, it became clear that adding support for std::complex
to sycl::known_identity
would have two benefits:
- It would simplify the implementation of the group algorithms, since
known_identity
could be used for all supported types - It would enable
std::complex
to be used bysycl::reduction
without the user passing an explicit identity
Opening this issue to gauge interest in the idea, and for discussion with reduction implementers (e.g. @v-klochkov) regarding feasibility of extending known_identity
in this way.