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 and the vectorized code path is eligible at runtime.

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 vectorized code path is not eligible at runtime.

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#