|
template<typename _T = T, int _Dims = Dims> |
enable_if_t<(_Dims==0) &&sycl::detail::IsPlus< _T, BinaryOperation >::value &&sycl::detail::is_geninteger< _T >::value > | operator++ () |
|
template<typename _T = T, int _Dims = Dims> |
enable_if_t<(_Dims==0) &&sycl::detail::IsPlus< _T, BinaryOperation >::value &&sycl::detail::is_geninteger< _T >::value > | operator++ (int) |
|
template<typename _T = T, int _Dims = Dims> |
enable_if_t<(_Dims==0) &&sycl::detail::IsPlus< _T, BinaryOperation >::value > | operator+= (const _T &Partial) |
|
template<typename _T = T, int _Dims = Dims> |
enable_if_t<(_Dims==0) &&sycl::detail::IsMultiplies< _T, BinaryOperation >::value > | operator*= (const _T &Partial) |
|
template<typename _T = T, int _Dims = Dims> |
enable_if_t<(_Dims==0) &&sycl::detail::IsBitOR< _T, BinaryOperation >::value > | operator|= (const _T &Partial) |
|
template<typename _T = T, int _Dims = Dims> |
enable_if_t<(_Dims==0) &&sycl::detail::IsBitXOR< _T, BinaryOperation >::value > | operator^= (const _T &Partial) |
|
template<typename _T = T, int _Dims = Dims> |
enable_if_t<(_Dims==0) &&sycl::detail::IsBitAND< _T, BinaryOperation >::value > | operator&= (const _T &Partial) |
|
template<access::address_space Space = access::address_space::global_space, typename _T = T, class _BinaryOperation = BinaryOperation> |
enable_if_t< BasicCheck< _T, Space, _BinaryOperation > &&(IsReduOptForFastAtomicFetch< T, _BinaryOperation >::value||IsReduOptForAtomic64Add< T, _BinaryOperation >::value) &&sycl::detail::IsPlus< T, _BinaryOperation >::value > | atomic_combine (_T *ReduVarPtr) const |
| Atomic ADD operation: *ReduVarPtr += MValue;. More...
|
|
template<access::address_space Space = access::address_space::global_space, typename _T = T, class _BinaryOperation = BinaryOperation> |
enable_if_t< BasicCheck< _T, Space, _BinaryOperation > &&IsReduOptForFastAtomicFetch< T, _BinaryOperation >::value &&sycl::detail::IsBitOR< T, _BinaryOperation >::value > | atomic_combine (_T *ReduVarPtr) const |
| Atomic BITWISE OR operation: *ReduVarPtr |= MValue;. More...
|
|
template<access::address_space Space = access::address_space::global_space, typename _T = T, class _BinaryOperation = BinaryOperation> |
enable_if_t< BasicCheck< _T, Space, _BinaryOperation > &&IsReduOptForFastAtomicFetch< T, _BinaryOperation >::value &&sycl::detail::IsBitXOR< T, _BinaryOperation >::value > | atomic_combine (_T *ReduVarPtr) const |
| Atomic BITWISE XOR operation: *ReduVarPtr ^= MValue;. More...
|
|
template<access::address_space Space = access::address_space::global_space, typename _T = T, class _BinaryOperation = BinaryOperation> |
enable_if_t< std::is_same< typename remove_AS< _T >::type, T >::value &&IsReduOptForFastAtomicFetch< T, _BinaryOperation >::value &&sycl::detail::IsBitAND< T, _BinaryOperation >::value &&(Space==access::address_space::global_space||Space==access::address_space::local_space)> | atomic_combine (_T *ReduVarPtr) const |
| Atomic BITWISE AND operation: *ReduVarPtr &= MValue;. More...
|
|
template<access::address_space Space = access::address_space::global_space, typename _T = T, class _BinaryOperation = BinaryOperation> |
enable_if_t< BasicCheck< _T, Space, _BinaryOperation > &&IsReduOptForFastAtomicFetch< T, _BinaryOperation >::value &&sycl::detail::IsMinimum< T, _BinaryOperation >::value > | atomic_combine (_T *ReduVarPtr) const |
| Atomic MIN operation: *ReduVarPtr = sycl::minimum(*ReduVarPtr, MValue);. More...
|
|
template<access::address_space Space = access::address_space::global_space, typename _T = T, class _BinaryOperation = BinaryOperation> |
enable_if_t< BasicCheck< _T, Space, _BinaryOperation > &&IsReduOptForFastAtomicFetch< T, _BinaryOperation >::value &&sycl::detail::IsMaximum< T, _BinaryOperation >::value > | atomic_combine (_T *ReduVarPtr) const |
| Atomic MAX operation: *ReduVarPtr = sycl::maximum(*ReduVarPtr, MValue);. More...
|
|
template<class Reducer>
class cl::sycl::ext::oneapi::detail::combiner< Reducer >
Use CRTP to avoid redefining shorthand operators in terms of combine.
Also, for many types with known identity the operation 'atomic_combine()' is implemented here, which allows to use more efficient version of kernels using those operations, which are based on functionality provided by sycl::atomic class.
For example, it is known that 0 is identity for sycl::plus operations accepting native scalar types to which scalar 0 is convertible. Also, for int32/64 types the atomic_combine() is lowered to sycl::atomic::fetch_add().
Definition at line 153 of file reduction.hpp.