cub::TransformPolicy#

struct TransformPolicy#

The tuning policy for all algorithms in DeviceTransform.

Public Functions

inline friend ::std::ostream &operator<<(
::std::ostream &os,
const TransformPolicy &policy
)#

Public Members

int min_bytes_in_flight#

Minimum number of bytes in flight per SM to reach by scaling the items per thread.

Has no effect if algorithm is vectorized.

TransformAlgorithm algorithm#

The transform algorithm to use by the kernel.

TransformPrefetchPolicy prefetch#

Sub-policy for the prefetch algorithm.

Only used when algorithm is prefetch or when algorithm is vectorized and the input pointers are not sufficiently aligned.

TransformVectorizedPolicy vectorized#

Sub-policy for the vectorized algorithm.

Only used when algorithm is vectorized.

TransformAsyncCopyPolicy async_copy#

Sub-policy for the async copy algorithms.

Only used when algorithm is ldgsts or ublkcp.

Friends

inline friend constexpr bool operator==(
const TransformPolicy &lhs,
const TransformPolicy &rhs
) noexcept#
inline friend constexpr bool operator!=(
const TransformPolicy &lhs,
const TransformPolicy &rhs
) noexcept#