cub::ForPolicy#

struct ForPolicy#

The tuning policy for all algorithms in DeviceFor.

Public Members

int threads_per_block#

Number of threads in a CUDA block.

If smaller than 1, this number will be determined at runtime based on the maximum occupancy of the kernel.

int items_per_thread#

Number of items processed per thread.

Friends

inline friend constexpr bool operator==(
const ForPolicy &lhs,
const ForPolicy &rhs
) noexcept#
inline friend constexpr bool operator!=(
const ForPolicy &lhs,
const ForPolicy &rhs
) noexcept#
template<class CharT, class Traits>
inline friend ::std::basic_ostream<CharT, Traits> &operator<<(
::std::basic_ostream<CharT, Traits> &os,
const ForPolicy &policy
)#