Commit 65c378e
committed
[SYCL] Fix types and transparent functors recognition in reduction
1. Enable operator*, operator+, operator|, operator&, operator^= for
corresponding transparent functors used in reduction.
2. Fixed the case when reduction object is passed to parallel_for
an R-value.
3. Allow identity-less constructors for reductions with transparent functors.
4. Replaced some 'auto' declarations with Reduction::result_type
and added intermediate assignments/casts to avoid type ambiguities
caused by using sycl::half type, and which may also be caused by custom/user
types as well.
Signed-off-by: Vyacheslav N Klochkov <vyacheslav.n.klochkov@intel.com>1 parent 4e6cf6f commit 65c378e
File tree
3 files changed
+204
-82
lines changed- sycl
- include/CL/sycl
- intel
- test/reduction
3 files changed
+204
-82
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
853 | 853 | | |
854 | 854 | | |
855 | 855 | | |
856 | | - | |
| 856 | + | |
857 | 857 | | |
858 | 858 | | |
859 | 859 | | |
| |||
886 | 886 | | |
887 | 887 | | |
888 | 888 | | |
889 | | - | |
| 889 | + | |
890 | 890 | | |
891 | 891 | | |
892 | 892 | | |
| |||
920 | 920 | | |
921 | 921 | | |
922 | 922 | | |
923 | | - | |
| 923 | + | |
924 | 924 | | |
925 | 925 | | |
926 | 926 | | |
| |||
0 commit comments