@@ -1001,8 +1001,8 @@ reduAuxCGFunc(handler &CGH, const nd_range<Dims> &Range, size_t NWorkItems,
1001
1001
1002
1002
// / Creates and returns an object implementing the reduction functionality.
1003
1003
// / Accepts 3 arguments: the accessor to buffer to where the computed reduction
1004
- // / must be stored \param Acc, identity value \param Identity, and the
1005
- // / binary operation that must be used in the reduction \param Combiner .
1004
+ // / must be stored \param Acc, identity value \param Identity, and the binary
1005
+ // / operation used in the reduction.
1006
1006
template <typename T, class BinaryOperation , int Dims, access::mode AccMode,
1007
1007
access::placeholder IsPH>
1008
1008
detail::reduction_impl<T, BinaryOperation, Dims, false , AccMode, IsPH>
@@ -1015,8 +1015,7 @@ reduction(accessor<T, Dims, AccMode, access::target::global_buffer, IsPH> &Acc,
1015
1015
1016
1016
// / Creates and returns an object implementing the reduction functionality.
1017
1017
// / Accepts 2 arguments: the accessor to buffer to where the computed reduction
1018
- // / must be stored \param Acc and the binary operation that must be used
1019
- // / in the reduction \param Combiner.
1018
+ // / must be stored \param Acc and the binary operation used in the reduction.
1020
1019
// / The identity value is not passed to this version as it is statically known.
1021
1020
template <typename T, class BinaryOperation , int Dims, access::mode AccMode,
1022
1021
access::placeholder IsPH>
@@ -1032,37 +1031,27 @@ reduction(accessor<T, Dims, AccMode, access::target::global_buffer, IsPH> &Acc,
1032
1031
1033
1032
// / Creates and returns an object implementing the reduction functionality.
1034
1033
// / Accepts 3 arguments: the reference to the reduction variable to where
1035
- // / the computed reduction must be stored \param VarRef, identity value
1036
- // / \param Identity, and the binary operation that must be used
1037
- // / in the reduction \param Combiner.
1034
+ // / the computed reduction must be stored \param VarPtr, identity value
1035
+ // / \param Identity, and the binary operation used in the reduction.
1038
1036
template <typename T, class BinaryOperation >
1039
- detail::reduction_impl<T, BinaryOperation, 0 , true , access::mode::read_write,
1040
- access::placeholder::true_t >
1041
- reduction (T *VarPtr, const T &Identity, BinaryOperation Combiner) {
1042
- // The Combiner argument was needed only to define the BinaryOperation param.
1043
- (void )Combiner;
1037
+ detail::reduction_impl<T, BinaryOperation, 0 , true , access::mode::read_write>
1038
+ reduction (T *VarPtr, const T &Identity, BinaryOperation) {
1044
1039
return detail::reduction_impl<T, BinaryOperation, 0 , true ,
1045
- access::mode::read_write,
1046
- access::placeholder::true_t >(VarPtr, Identity);
1040
+ access::mode::read_write>(VarPtr, Identity);
1047
1041
}
1048
1042
1049
1043
// / Creates and returns an object implementing the reduction functionality.
1050
- // / Accepts 3 arguments: the reference to the reduction variable to where
1051
- // / the computed reduction must be stored \param VarRef, identity value
1052
- // / \param Identity, and the binary operation that must be used
1053
- // / in the reduction \param Combiner.
1044
+ // / Accepts 2 arguments: the reference to the reduction variable, to where
1045
+ // / the computed reduction must be stored \param VarPtr, and the binary
1046
+ // / operation used in the reduction.
1054
1047
// / The identity value is not passed to this version as it is statically known.
1055
1048
template <typename T, class BinaryOperation >
1056
1049
detail::enable_if_t <detail::IsKnownIdentityOp<T, BinaryOperation>::value,
1057
1050
detail::reduction_impl<T, BinaryOperation, 0 , true ,
1058
- access::mode::read_write,
1059
- access::placeholder::true_t >>
1060
- reduction (T *VarPtr, BinaryOperation Combiner) {
1061
- // The Combiner argument was needed only to define the BinaryOperation param.
1062
- (void )Combiner;
1051
+ access::mode::read_write>>
1052
+ reduction (T *VarPtr, BinaryOperation) {
1063
1053
return detail::reduction_impl<T, BinaryOperation, 0 , true ,
1064
- access::mode::read_write,
1065
- access::placeholder::true_t >(VarPtr);
1054
+ access::mode::read_write>(VarPtr);
1066
1055
}
1067
1056
1068
1057
} // namespace intel
0 commit comments