reduction_operator.hpp Source File#
reduction_operator.hpp
Go to the documentation of this file.
15// Every binary operator used in reduction is represented by a templated functor class. Each functor
24// 2) IsCompatibleInMemoryDataOperation() -- return true if the reduction task corresponding to this
247 __host__ __device__ inline constexpr void operator()(bhalf_t& a, bhalf_t b, bool& changed) const
371 __host__ __device__ inline constexpr void operator()(bhalf_t& a, bhalf_t b, bool& changed) const
Definition reduction_operator.hpp:13
constexpr T GetIdentityValueForInMemoryDataOperation(InMemoryDataOperationEnum operation)
Definition reduction_operator.hpp:473
Definition ck.hpp:268
__host__ __device__ constexpr Y type_convert(X x)
Definition utility/type_convert.hpp:98
__host__ static __device__ constexpr T Lowest()
Definition numeric_limits.hpp:312
Definition reduction_operator.hpp:409
__host__ __device__ constexpr void operator()(T &a, T b, bool &changed) const
Definition reduction_operator.hpp:445
__host__ __device__ constexpr void operator()(T &a, T b) const
Definition reduction_operator.hpp:424
__host__ static __device__ constexpr bool IsCompatibleInMemoryDataOperation(InMemoryDataOperationEnum operation)
Definition reduction_operator.hpp:417
__host__ __device__ constexpr void operator()(f8_t &a, f8_t b) const
Definition reduction_operator.hpp:435
__host__ __device__ constexpr void operator()(f8_t &a, f8_t b, bool &changed) const
Definition reduction_operator.hpp:459
__host__ static __device__ constexpr T GetIdentityValue()
Definition reduction_operator.hpp:411
Definition reduction_operator.hpp:37
__host__ static __device__ constexpr bool IsCompatibleInMemoryDataOperation(InMemoryDataOperationEnum operation)
Definition reduction_operator.hpp:45
__host__ __device__ constexpr void operator()(bhalf_t &a, bhalf_t b) const
Definition reduction_operator.hpp:77
__host__ __device__ constexpr void operator()(f8_t &a, f8_t b) const
Definition reduction_operator.hpp:61
__host__ static __device__ constexpr T GetIdentityValue()
Definition reduction_operator.hpp:39
__host__ __device__ constexpr void operator()(half_t &a, half_t b) const
Definition reduction_operator.hpp:69
__host__ __device__ constexpr void operator()(T &a, T b) const
Definition reduction_operator.hpp:52
static constexpr bool value
Definition reduction_operator.hpp:506
static constexpr bool value
Definition reduction_operator.hpp:492
static constexpr bool value
Definition reduction_operator.hpp:499
static constexpr bool value
Definition reduction_operator.hpp:516
Definition reduction_operator.hpp:485
static constexpr bool value
Definition reduction_operator.hpp:486
Definition reduction_operator.hpp:163
__host__ static __device__ constexpr T GetIdentityValue()
Definition reduction_operator.hpp:165
__host__ static __device__ constexpr bool IsCompatibleInMemoryDataOperation(InMemoryDataOperationEnum operation)
Definition reduction_operator.hpp:189
__host__ __device__ constexpr void operator()(half_t &a, half_t b, bool &changed) const
Definition reduction_operator.hpp:259
__host__ __device__ constexpr void operator()(f8_t &a, f8_t b, bool &changed) const
Definition reduction_operator.hpp:271
__host__ __device__ constexpr void operator()(T &a, T b) const
Definition reduction_operator.hpp:196
__host__ __device__ constexpr void operator()(half_t &a, half_t b) const
Definition reduction_operator.hpp:215
__host__ __device__ constexpr void operator()(f8_t &a, f8_t b) const
Definition reduction_operator.hpp:224
__host__ __device__ constexpr void operator()(bhalf_t &a, bhalf_t b) const
Definition reduction_operator.hpp:206
__host__ __device__ constexpr void operator()(bhalf_t &a, bhalf_t b, bool &changed) const
Definition reduction_operator.hpp:247
__host__ __device__ constexpr void operator()(T &a, T b, bool &changed) const
Definition reduction_operator.hpp:234
Definition reduction_operator.hpp:285
__host__ __device__ constexpr void operator()(f8_t &a, f8_t b) const
Definition reduction_operator.hpp:347
__host__ __device__ constexpr void operator()(bhalf_t &a, bhalf_t b, bool &changed) const
Definition reduction_operator.hpp:371
__host__ static __device__ constexpr T GetIdentityValue()
Definition reduction_operator.hpp:287
__host__ static __device__ constexpr bool IsCompatibleInMemoryDataOperation(InMemoryDataOperationEnum operation)
Definition reduction_operator.hpp:312
__host__ __device__ constexpr void operator()(T &a, T b) const
Definition reduction_operator.hpp:319
__host__ __device__ constexpr void operator()(f8_t &a, f8_t b, bool &changed) const
Definition reduction_operator.hpp:395
__host__ __device__ constexpr void operator()(half_t &a, half_t b) const
Definition reduction_operator.hpp:338
__host__ __device__ constexpr void operator()(half_t &a, half_t b, bool &changed) const
Definition reduction_operator.hpp:383
__host__ __device__ constexpr void operator()(bhalf_t &a, bhalf_t b) const
Definition reduction_operator.hpp:329
__host__ __device__ constexpr void operator()(T &a, T b, bool &changed) const
Definition reduction_operator.hpp:357
Definition reduction_operator.hpp:114
__host__ __device__ constexpr void operator()(f8_t &a, f8_t b) const
Definition reduction_operator.hpp:137
__host__ __device__ constexpr void operator()(T &a, T b) const
Definition reduction_operator.hpp:128
__host__ static __device__ constexpr T GetIdentityValue()
Definition reduction_operator.hpp:116
__host__ __device__ constexpr void operator()(half_t &a, half_t b) const
Definition reduction_operator.hpp:145
__host__ __device__ constexpr void operator()(bhalf_t &a, bhalf_t b) const
Definition reduction_operator.hpp:153
__host__ static __device__ constexpr bool IsCompatibleInMemoryDataOperation(InMemoryDataOperationEnum operation)
Definition reduction_operator.hpp:122
Definition reduction_operator.hpp:87
__host__ static __device__ constexpr bool IsCompatibleInMemoryDataOperation(InMemoryDataOperationEnum operation)
Definition reduction_operator.hpp:95
__host__ static __device__ constexpr T GetIdentityValue()
Definition reduction_operator.hpp:89
__host__ __device__ constexpr void operator()(T &a, T b) const
Definition reduction_operator.hpp:102