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 by sycl::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.
The sycl_ext_oneapi_complex_algorithms extension adds support for
std::complexto algorithms likereduceandreduce_over_group.During review of #5394, it became clear that adding support for
std::complextosycl::known_identitywould have two benefits:known_identitycould be used for all supported typesstd::complexto be used bysycl::reductionwithout the user passing an explicit identityOpening this issue to gauge interest in the idea, and for discussion with reduction implementers (e.g. @v-klochkov) regarding feasibility of extending
known_identityin this way.