// Copyright (c) 2022-2025 Advanced Micro Devices, Inc. All rights reserved.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.

#ifndef ROCPRIM_DEVICE_DETAIL_CONFIG_DEVICE_SELECT_PREDICATED_FLAG_HPP_
#define ROCPRIM_DEVICE_DETAIL_CONFIG_DEVICE_SELECT_PREDICATED_FLAG_HPP_

#include "../../../config.hpp"
#include "../../../type_traits.hpp"
#include "../../config_types.hpp"
#include "../device_config_helper.hpp"

#include <type_traits>

/* DO NOT EDIT THIS FILE
 * This file is automatically generated by `/scripts/autotune/create_optimization.py`.
 * so most likely you want to edit rocprim/device/device_(algo)_config.hpp
 */

/// \addtogroup primitivesmodule_deviceconfigs
/// @{

BEGIN_ROCPRIM_NAMESPACE

namespace detail
{

template<unsigned int arch, class data_type, class flag_type, class enable = void>
struct default_select_predicated_flag_config : default_partition_config_base<data_type, false>::type
{};

// Based on data_type = double, flag_type = rocprim::int128_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx1030),
    data_type,
    flag_type,
    std::enable_if_t<(bool(rocprim::is_floating_point<data_type>::value) && (sizeof(data_type) <= 8)
                      && (sizeof(data_type) > 4) && (sizeof(flag_type) <= 16)
                      && (sizeof(flag_type) > 8))>> : select_config<256, 4>
{};

// Based on data_type = double, flag_type = int64_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx1030),
    data_type,
    flag_type,
    std::enable_if_t<(bool(rocprim::is_floating_point<data_type>::value) && (sizeof(data_type) <= 8)
                      && (sizeof(data_type) > 4) && (sizeof(flag_type) <= 8)
                      && (sizeof(flag_type) > 4))>> : select_config<512, 4>
{};

// Based on data_type = double, flag_type = int
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx1030),
    data_type,
    flag_type,
    std::enable_if_t<(bool(rocprim::is_floating_point<data_type>::value) && (sizeof(data_type) <= 8)
                      && (sizeof(data_type) > 4) && (sizeof(flag_type) <= 4)
                      && (sizeof(flag_type) > 2))>> : select_config<512, 4>
{};

// Based on data_type = double, flag_type = short
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx1030),
    data_type,
    flag_type,
    std::enable_if_t<(bool(rocprim::is_floating_point<data_type>::value) && (sizeof(data_type) <= 8)
                      && (sizeof(data_type) > 4) && (sizeof(flag_type) <= 2)
                      && (sizeof(flag_type) > 1))>> : select_config<512, 4>
{};

// Based on data_type = double, flag_type = int8_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx1030),
    data_type,
    flag_type,
    std::enable_if_t<(bool(rocprim::is_floating_point<data_type>::value) && (sizeof(data_type) <= 8)
                      && (sizeof(data_type) > 4) && (sizeof(flag_type) <= 1))>>
    : select_config<512, 4>
{};

// Based on data_type = float, flag_type = rocprim::int128_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx1030),
    data_type,
    flag_type,
    std::enable_if_t<(bool(rocprim::is_floating_point<data_type>::value) && (sizeof(data_type) <= 4)
                      && (sizeof(data_type) > 2) && (sizeof(flag_type) <= 16)
                      && (sizeof(flag_type) > 8))>> : select_config<256, 4>
{};

// Based on data_type = float, flag_type = int64_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx1030),
    data_type,
    flag_type,
    std::enable_if_t<(bool(rocprim::is_floating_point<data_type>::value) && (sizeof(data_type) <= 4)
                      && (sizeof(data_type) > 2) && (sizeof(flag_type) <= 8)
                      && (sizeof(flag_type) > 4))>> : select_config<512, 4>
{};

// Based on data_type = float, flag_type = int
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx1030),
    data_type,
    flag_type,
    std::enable_if_t<(bool(rocprim::is_floating_point<data_type>::value) && (sizeof(data_type) <= 4)
                      && (sizeof(data_type) > 2) && (sizeof(flag_type) <= 4)
                      && (sizeof(flag_type) > 2))>> : select_config<512, 4>
{};

// Based on data_type = float, flag_type = short
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx1030),
    data_type,
    flag_type,
    std::enable_if_t<(bool(rocprim::is_floating_point<data_type>::value) && (sizeof(data_type) <= 4)
                      && (sizeof(data_type) > 2) && (sizeof(flag_type) <= 2)
                      && (sizeof(flag_type) > 1))>> : select_config<512, 4>
{};

// Based on data_type = float, flag_type = int8_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx1030),
    data_type,
    flag_type,
    std::enable_if_t<(bool(rocprim::is_floating_point<data_type>::value) && (sizeof(data_type) <= 4)
                      && (sizeof(data_type) > 2) && (sizeof(flag_type) <= 1))>>
    : select_config<512, 4>
{};

// Based on data_type = rocprim::half, flag_type = rocprim::int128_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx1030),
    data_type,
    flag_type,
    std::enable_if_t<(bool(rocprim::is_floating_point<data_type>::value) && (sizeof(data_type) <= 2)
                      && (sizeof(flag_type) <= 16) && (sizeof(flag_type) > 8))>>
    : select_config<256, 4>
{};

// Based on data_type = rocprim::half, flag_type = int64_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx1030),
    data_type,
    flag_type,
    std::enable_if_t<(bool(rocprim::is_floating_point<data_type>::value) && (sizeof(data_type) <= 2)
                      && (sizeof(flag_type) <= 8) && (sizeof(flag_type) > 4))>>
    : select_config<512, 8>
{};

// Based on data_type = rocprim::half, flag_type = int
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx1030),
    data_type,
    flag_type,
    std::enable_if_t<(bool(rocprim::is_floating_point<data_type>::value) && (sizeof(data_type) <= 2)
                      && (sizeof(flag_type) <= 4) && (sizeof(flag_type) > 2))>>
    : select_config<512, 8>
{};

// Based on data_type = rocprim::half, flag_type = short
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx1030),
    data_type,
    flag_type,
    std::enable_if_t<(bool(rocprim::is_floating_point<data_type>::value) && (sizeof(data_type) <= 2)
                      && (sizeof(flag_type) <= 2) && (sizeof(flag_type) > 1))>>
    : select_config<192, 25>
{};

// Based on data_type = rocprim::half, flag_type = int8_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx1030),
    data_type,
    flag_type,
    std::enable_if_t<(bool(rocprim::is_floating_point<data_type>::value) && (sizeof(data_type) <= 2)
                      && (sizeof(flag_type) <= 1))>> : select_config<512, 16>
{};

// Based on data_type = rocprim::int128_t, flag_type = rocprim::int128_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx1030),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 16) && (sizeof(data_type) > 8)
                      && (sizeof(flag_type) <= 16) && (sizeof(flag_type) > 8))>>
    : select_config<256, 4>
{};

// Based on data_type = rocprim::int128_t, flag_type = int64_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx1030),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 16) && (sizeof(data_type) > 8)
                      && (sizeof(flag_type) <= 8) && (sizeof(flag_type) > 4))>>
    : select_config<256, 4>
{};

// Based on data_type = rocprim::int128_t, flag_type = int
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx1030),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 16) && (sizeof(data_type) > 8)
                      && (sizeof(flag_type) <= 4) && (sizeof(flag_type) > 2))>>
    : select_config<256, 4>
{};

// Based on data_type = rocprim::int128_t, flag_type = short
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx1030),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 16) && (sizeof(data_type) > 8)
                      && (sizeof(flag_type) <= 2) && (sizeof(flag_type) > 1))>>
    : select_config<256, 4>
{};

// Based on data_type = rocprim::int128_t, flag_type = int8_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx1030),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 16) && (sizeof(data_type) > 8)
                      && (sizeof(flag_type) <= 1))>> : select_config<256, 4>
{};

// Based on data_type = int64_t, flag_type = rocprim::int128_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx1030),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 8) && (sizeof(data_type) > 4)
                      && (sizeof(flag_type) <= 16) && (sizeof(flag_type) > 8))>>
    : select_config<256, 4>
{};

// Based on data_type = int64_t, flag_type = int64_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx1030),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 8) && (sizeof(data_type) > 4)
                      && (sizeof(flag_type) <= 8) && (sizeof(flag_type) > 4))>>
    : select_config<512, 4>
{};

// Based on data_type = int64_t, flag_type = int
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx1030),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 8) && (sizeof(data_type) > 4)
                      && (sizeof(flag_type) <= 4) && (sizeof(flag_type) > 2))>>
    : select_config<512, 4>
{};

// Based on data_type = int64_t, flag_type = short
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx1030),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 8) && (sizeof(data_type) > 4)
                      && (sizeof(flag_type) <= 2) && (sizeof(flag_type) > 1))>>
    : select_config<512, 4>
{};

// Based on data_type = int64_t, flag_type = int8_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx1030),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 8) && (sizeof(data_type) > 4)
                      && (sizeof(flag_type) <= 1))>> : select_config<512, 4>
{};

// Based on data_type = int, flag_type = rocprim::int128_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx1030),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 4) && (sizeof(data_type) > 2)
                      && (sizeof(flag_type) <= 16) && (sizeof(flag_type) > 8))>>
    : select_config<256, 4>
{};

// Based on data_type = int, flag_type = int64_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx1030),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 4) && (sizeof(data_type) > 2)
                      && (sizeof(flag_type) <= 8) && (sizeof(flag_type) > 4))>>
    : select_config<512, 4>
{};

// Based on data_type = int, flag_type = int
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx1030),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 4) && (sizeof(data_type) > 2)
                      && (sizeof(flag_type) <= 4) && (sizeof(flag_type) > 2))>>
    : select_config<512, 4>
{};

// Based on data_type = int, flag_type = short
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx1030),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 4) && (sizeof(data_type) > 2)
                      && (sizeof(flag_type) <= 2) && (sizeof(flag_type) > 1))>>
    : select_config<512, 4>
{};

// Based on data_type = int, flag_type = int8_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx1030),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 4) && (sizeof(data_type) > 2)
                      && (sizeof(flag_type) <= 1))>> : select_config<512, 4>
{};

// Based on data_type = short, flag_type = rocprim::int128_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx1030),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 2) && (sizeof(data_type) > 1)
                      && (sizeof(flag_type) <= 16) && (sizeof(flag_type) > 8))>>
    : select_config<256, 4>
{};

// Based on data_type = short, flag_type = int64_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx1030),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 2) && (sizeof(data_type) > 1)
                      && (sizeof(flag_type) <= 8) && (sizeof(flag_type) > 4))>>
    : select_config<512, 4>
{};

// Based on data_type = short, flag_type = int
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx1030),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 2) && (sizeof(data_type) > 1)
                      && (sizeof(flag_type) <= 4) && (sizeof(flag_type) > 2))>>
    : select_config<512, 8>
{};

// Based on data_type = short, flag_type = short
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx1030),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 2) && (sizeof(data_type) > 1)
                      && (sizeof(flag_type) <= 2) && (sizeof(flag_type) > 1))>>
    : select_config<512, 8>
{};

// Based on data_type = short, flag_type = int8_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx1030),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 2) && (sizeof(data_type) > 1)
                      && (sizeof(flag_type) <= 1))>> : select_config<512, 16>
{};

// Based on data_type = int8_t, flag_type = rocprim::int128_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx1030),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 1) && (sizeof(flag_type) <= 16)
                      && (sizeof(flag_type) > 8))>> : select_config<256, 4>
{};

// Based on data_type = int8_t, flag_type = int64_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx1030),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 1) && (sizeof(flag_type) <= 8)
                      && (sizeof(flag_type) > 4))>> : select_config<512, 4>
{};

// Based on data_type = int8_t, flag_type = int
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx1030),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 1) && (sizeof(flag_type) <= 4)
                      && (sizeof(flag_type) > 2))>> : select_config<512, 8>
{};

// Based on data_type = int8_t, flag_type = short
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx1030),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 1) && (sizeof(flag_type) <= 2)
                      && (sizeof(flag_type) > 1))>> : select_config<512, 16>
{};

// Based on data_type = int8_t, flag_type = int8_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx1030),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 1) && (sizeof(flag_type) <= 1))>>
    : select_config<512, 16>
{};

// Based on data_type = double, flag_type = rocprim::int128_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx1100),
    data_type,
    flag_type,
    std::enable_if_t<(bool(rocprim::is_floating_point<data_type>::value) && (sizeof(data_type) <= 8)
                      && (sizeof(data_type) > 4) && (sizeof(flag_type) <= 16)
                      && (sizeof(flag_type) > 8))>> : select_config<512, 4>
{};

// Based on data_type = double, flag_type = int64_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx1100),
    data_type,
    flag_type,
    std::enable_if_t<(bool(rocprim::is_floating_point<data_type>::value) && (sizeof(data_type) <= 8)
                      && (sizeof(data_type) > 4) && (sizeof(flag_type) <= 8)
                      && (sizeof(flag_type) > 4))>> : select_config<512, 4>
{};

// Based on data_type = double, flag_type = int
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx1100),
    data_type,
    flag_type,
    std::enable_if_t<(bool(rocprim::is_floating_point<data_type>::value) && (sizeof(data_type) <= 8)
                      && (sizeof(data_type) > 4) && (sizeof(flag_type) <= 4)
                      && (sizeof(flag_type) > 2))>> : select_config<192, 4>
{};

// Based on data_type = double, flag_type = short
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx1100),
    data_type,
    flag_type,
    std::enable_if_t<(bool(rocprim::is_floating_point<data_type>::value) && (sizeof(data_type) <= 8)
                      && (sizeof(data_type) > 4) && (sizeof(flag_type) <= 2)
                      && (sizeof(flag_type) > 1))>> : select_config<512, 8>
{};

// Based on data_type = double, flag_type = int8_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx1100),
    data_type,
    flag_type,
    std::enable_if_t<(bool(rocprim::is_floating_point<data_type>::value) && (sizeof(data_type) <= 8)
                      && (sizeof(data_type) > 4) && (sizeof(flag_type) <= 1))>>
    : select_config<512, 8>
{};

// Based on data_type = float, flag_type = rocprim::int128_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx1100),
    data_type,
    flag_type,
    std::enable_if_t<(bool(rocprim::is_floating_point<data_type>::value) && (sizeof(data_type) <= 4)
                      && (sizeof(data_type) > 2) && (sizeof(flag_type) <= 16)
                      && (sizeof(flag_type) > 8))>> : select_config<512, 4>
{};

// Based on data_type = float, flag_type = int64_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx1100),
    data_type,
    flag_type,
    std::enable_if_t<(bool(rocprim::is_floating_point<data_type>::value) && (sizeof(data_type) <= 4)
                      && (sizeof(data_type) > 2) && (sizeof(flag_type) <= 8)
                      && (sizeof(flag_type) > 4))>> : select_config<512, 8>
{};

// Based on data_type = float, flag_type = int
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx1100),
    data_type,
    flag_type,
    std::enable_if_t<(bool(rocprim::is_floating_point<data_type>::value) && (sizeof(data_type) <= 4)
                      && (sizeof(data_type) > 2) && (sizeof(flag_type) <= 4)
                      && (sizeof(flag_type) > 2))>> : select_config<192, 6>
{};

// Based on data_type = float, flag_type = short
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx1100),
    data_type,
    flag_type,
    std::enable_if_t<(bool(rocprim::is_floating_point<data_type>::value) && (sizeof(data_type) <= 4)
                      && (sizeof(data_type) > 2) && (sizeof(flag_type) <= 2)
                      && (sizeof(flag_type) > 1))>> : select_config<192, 8>
{};

// Based on data_type = float, flag_type = int8_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx1100),
    data_type,
    flag_type,
    std::enable_if_t<(bool(rocprim::is_floating_point<data_type>::value) && (sizeof(data_type) <= 4)
                      && (sizeof(data_type) > 2) && (sizeof(flag_type) <= 1))>>
    : select_config<192, 12>
{};

// Based on data_type = rocprim::half, flag_type = rocprim::int128_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx1100),
    data_type,
    flag_type,
    std::enable_if_t<(bool(rocprim::is_floating_point<data_type>::value) && (sizeof(data_type) <= 2)
                      && (sizeof(flag_type) <= 16) && (sizeof(flag_type) > 8))>>
    : select_config<512, 4>
{};

// Based on data_type = rocprim::half, flag_type = int64_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx1100),
    data_type,
    flag_type,
    std::enable_if_t<(bool(rocprim::is_floating_point<data_type>::value) && (sizeof(data_type) <= 2)
                      && (sizeof(flag_type) <= 8) && (sizeof(flag_type) > 4))>>
    : select_config<512, 8>
{};

// Based on data_type = rocprim::half, flag_type = int
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx1100),
    data_type,
    flag_type,
    std::enable_if_t<(bool(rocprim::is_floating_point<data_type>::value) && (sizeof(data_type) <= 2)
                      && (sizeof(flag_type) <= 4) && (sizeof(flag_type) > 2))>>
    : select_config<512, 16>
{};

// Based on data_type = rocprim::half, flag_type = short
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx1100),
    data_type,
    flag_type,
    std::enable_if_t<(bool(rocprim::is_floating_point<data_type>::value) && (sizeof(data_type) <= 2)
                      && (sizeof(flag_type) <= 2) && (sizeof(flag_type) > 1))>>
    : select_config<512, 16>
{};

// Based on data_type = rocprim::half, flag_type = int8_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx1100),
    data_type,
    flag_type,
    std::enable_if_t<(bool(rocprim::is_floating_point<data_type>::value) && (sizeof(data_type) <= 2)
                      && (sizeof(flag_type) <= 1))>> : select_config<192, 22>
{};

// Based on data_type = rocprim::int128_t, flag_type = rocprim::int128_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx1100),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 16) && (sizeof(data_type) > 8)
                      && (sizeof(flag_type) <= 16) && (sizeof(flag_type) > 8))>>
    : select_config<512, 4>
{};

// Based on data_type = rocprim::int128_t, flag_type = int64_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx1100),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 16) && (sizeof(data_type) > 8)
                      && (sizeof(flag_type) <= 8) && (sizeof(flag_type) > 4))>>
    : select_config<512, 4>
{};

// Based on data_type = rocprim::int128_t, flag_type = int
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx1100),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 16) && (sizeof(data_type) > 8)
                      && (sizeof(flag_type) <= 4) && (sizeof(flag_type) > 2))>>
    : select_config<512, 4>
{};

// Based on data_type = rocprim::int128_t, flag_type = short
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx1100),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 16) && (sizeof(data_type) > 8)
                      && (sizeof(flag_type) <= 2) && (sizeof(flag_type) > 1))>>
    : select_config<512, 4>
{};

// Based on data_type = rocprim::int128_t, flag_type = int8_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx1100),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 16) && (sizeof(data_type) > 8)
                      && (sizeof(flag_type) <= 1))>> : select_config<512, 4>
{};

// Based on data_type = int64_t, flag_type = rocprim::int128_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx1100),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 8) && (sizeof(data_type) > 4)
                      && (sizeof(flag_type) <= 16) && (sizeof(flag_type) > 8))>>
    : select_config<512, 4>
{};

// Based on data_type = int64_t, flag_type = int64_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx1100),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 8) && (sizeof(data_type) > 4)
                      && (sizeof(flag_type) <= 8) && (sizeof(flag_type) > 4))>>
    : select_config<512, 4>
{};

// Based on data_type = int64_t, flag_type = int
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx1100),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 8) && (sizeof(data_type) > 4)
                      && (sizeof(flag_type) <= 4) && (sizeof(flag_type) > 2))>>
    : select_config<192, 4>
{};

// Based on data_type = int64_t, flag_type = short
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx1100),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 8) && (sizeof(data_type) > 4)
                      && (sizeof(flag_type) <= 2) && (sizeof(flag_type) > 1))>>
    : select_config<512, 8>
{};

// Based on data_type = int64_t, flag_type = int8_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx1100),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 8) && (sizeof(data_type) > 4)
                      && (sizeof(flag_type) <= 1))>> : select_config<512, 8>
{};

// Based on data_type = int, flag_type = rocprim::int128_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx1100),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 4) && (sizeof(data_type) > 2)
                      && (sizeof(flag_type) <= 16) && (sizeof(flag_type) > 8))>>
    : select_config<512, 4>
{};

// Based on data_type = int, flag_type = int64_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx1100),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 4) && (sizeof(data_type) > 2)
                      && (sizeof(flag_type) <= 8) && (sizeof(flag_type) > 4))>>
    : select_config<512, 8>
{};

// Based on data_type = int, flag_type = int
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx1100),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 4) && (sizeof(data_type) > 2)
                      && (sizeof(flag_type) <= 4) && (sizeof(flag_type) > 2))>>
    : select_config<192, 6>
{};

// Based on data_type = int, flag_type = short
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx1100),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 4) && (sizeof(data_type) > 2)
                      && (sizeof(flag_type) <= 2) && (sizeof(flag_type) > 1))>>
    : select_config<192, 8>
{};

// Based on data_type = int, flag_type = int8_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx1100),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 4) && (sizeof(data_type) > 2)
                      && (sizeof(flag_type) <= 1))>> : select_config<192, 12>
{};

// Based on data_type = short, flag_type = rocprim::int128_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx1100),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 2) && (sizeof(data_type) > 1)
                      && (sizeof(flag_type) <= 16) && (sizeof(flag_type) > 8))>>
    : select_config<512, 4>
{};

// Based on data_type = short, flag_type = int64_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx1100),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 2) && (sizeof(data_type) > 1)
                      && (sizeof(flag_type) <= 8) && (sizeof(flag_type) > 4))>>
    : select_config<512, 8>
{};

// Based on data_type = short, flag_type = int
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx1100),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 2) && (sizeof(data_type) > 1)
                      && (sizeof(flag_type) <= 4) && (sizeof(flag_type) > 2))>>
    : select_config<512, 16>
{};

// Based on data_type = short, flag_type = short
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx1100),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 2) && (sizeof(data_type) > 1)
                      && (sizeof(flag_type) <= 2) && (sizeof(flag_type) > 1))>>
    : select_config<384, 18>
{};

// Based on data_type = short, flag_type = int8_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx1100),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 2) && (sizeof(data_type) > 1)
                      && (sizeof(flag_type) <= 1))>> : select_config<512, 20>
{};

// Based on data_type = int8_t, flag_type = rocprim::int128_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx1100),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 1) && (sizeof(flag_type) <= 16)
                      && (sizeof(flag_type) > 8))>> : select_config<512, 4>
{};

// Based on data_type = int8_t, flag_type = int64_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx1100),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 1) && (sizeof(flag_type) <= 8)
                      && (sizeof(flag_type) > 4))>> : select_config<512, 8>
{};

// Based on data_type = int8_t, flag_type = int
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx1100),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 1) && (sizeof(flag_type) <= 4)
                      && (sizeof(flag_type) > 2))>> : select_config<512, 16>
{};

// Based on data_type = int8_t, flag_type = short
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx1100),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 1) && (sizeof(flag_type) <= 2)
                      && (sizeof(flag_type) > 1))>> : select_config<512, 20>
{};

// Based on data_type = int8_t, flag_type = int8_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx1100),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 1) && (sizeof(flag_type) <= 1))>>
    : select_config<512, 20>
{};

// Based on data_type = double, flag_type = int64_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx1200),
    data_type,
    flag_type,
    std::enable_if_t<(bool(rocprim::is_floating_point<data_type>::value) && (sizeof(data_type) <= 8)
                      && (sizeof(data_type) > 4) && (sizeof(flag_type) <= 8)
                      && (sizeof(flag_type) > 4))>> : select_config<192, 4>
{};

// Based on data_type = double, flag_type = int
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx1200),
    data_type,
    flag_type,
    std::enable_if_t<(bool(rocprim::is_floating_point<data_type>::value) && (sizeof(data_type) <= 8)
                      && (sizeof(data_type) > 4) && (sizeof(flag_type) <= 4)
                      && (sizeof(flag_type) > 2))>> : select_config<256, 4>
{};

// Based on data_type = double, flag_type = short
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx1200),
    data_type,
    flag_type,
    std::enable_if_t<(bool(rocprim::is_floating_point<data_type>::value) && (sizeof(data_type) <= 8)
                      && (sizeof(data_type) > 4) && (sizeof(flag_type) <= 2)
                      && (sizeof(flag_type) > 1))>> : select_config<256, 4>
{};

// Based on data_type = double, flag_type = int8_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx1200),
    data_type,
    flag_type,
    std::enable_if_t<(bool(rocprim::is_floating_point<data_type>::value) && (sizeof(data_type) <= 8)
                      && (sizeof(data_type) > 4) && (sizeof(flag_type) <= 1))>>
    : select_config<256, 4>
{};

// Based on data_type = float, flag_type = int64_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx1200),
    data_type,
    flag_type,
    std::enable_if_t<(bool(rocprim::is_floating_point<data_type>::value) && (sizeof(data_type) <= 4)
                      && (sizeof(data_type) > 2) && (sizeof(flag_type) <= 8)
                      && (sizeof(flag_type) > 4))>> : select_config<384, 4>
{};

// Based on data_type = float, flag_type = int
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx1200),
    data_type,
    flag_type,
    std::enable_if_t<(bool(rocprim::is_floating_point<data_type>::value) && (sizeof(data_type) <= 4)
                      && (sizeof(data_type) > 2) && (sizeof(flag_type) <= 4)
                      && (sizeof(flag_type) > 2))>> : select_config<384, 4>
{};

// Based on data_type = float, flag_type = short
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx1200),
    data_type,
    flag_type,
    std::enable_if_t<(bool(rocprim::is_floating_point<data_type>::value) && (sizeof(data_type) <= 4)
                      && (sizeof(data_type) > 2) && (sizeof(flag_type) <= 2)
                      && (sizeof(flag_type) > 1))>> : select_config<384, 6>
{};

// Based on data_type = float, flag_type = int8_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx1200),
    data_type,
    flag_type,
    std::enable_if_t<(bool(rocprim::is_floating_point<data_type>::value) && (sizeof(data_type) <= 4)
                      && (sizeof(data_type) > 2) && (sizeof(flag_type) <= 1))>>
    : select_config<384, 7>
{};

// Based on data_type = rocprim::half, flag_type = int64_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx1200),
    data_type,
    flag_type,
    std::enable_if_t<(bool(rocprim::is_floating_point<data_type>::value) && (sizeof(data_type) <= 2)
                      && (sizeof(flag_type) <= 8) && (sizeof(flag_type) > 4))>>
    : select_config<256, 4>
{};

// Based on data_type = rocprim::half, flag_type = int
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx1200),
    data_type,
    flag_type,
    std::enable_if_t<(bool(rocprim::is_floating_point<data_type>::value) && (sizeof(data_type) <= 2)
                      && (sizeof(flag_type) <= 4) && (sizeof(flag_type) > 2))>>
    : select_config<384, 8>
{};

// Based on data_type = rocprim::half, flag_type = short
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx1200),
    data_type,
    flag_type,
    std::enable_if_t<(bool(rocprim::is_floating_point<data_type>::value) && (sizeof(data_type) <= 2)
                      && (sizeof(flag_type) <= 2) && (sizeof(flag_type) > 1))>>
    : select_config<384, 12>
{};

// Based on data_type = rocprim::half, flag_type = int8_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx1200),
    data_type,
    flag_type,
    std::enable_if_t<(bool(rocprim::is_floating_point<data_type>::value) && (sizeof(data_type) <= 2)
                      && (sizeof(flag_type) <= 1))>> : select_config<384, 18>
{};

// Based on data_type = int64_t, flag_type = int64_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx1200),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 8) && (sizeof(data_type) > 4)
                      && (sizeof(flag_type) <= 8) && (sizeof(flag_type) > 4))>>
    : select_config<192, 4>
{};

// Based on data_type = int64_t, flag_type = int
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx1200),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 8) && (sizeof(data_type) > 4)
                      && (sizeof(flag_type) <= 4) && (sizeof(flag_type) > 2))>>
    : select_config<256, 4>
{};

// Based on data_type = int64_t, flag_type = short
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx1200),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 8) && (sizeof(data_type) > 4)
                      && (sizeof(flag_type) <= 2) && (sizeof(flag_type) > 1))>>
    : select_config<256, 4>
{};

// Based on data_type = int64_t, flag_type = int8_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx1200),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 8) && (sizeof(data_type) > 4)
                      && (sizeof(flag_type) <= 1))>> : select_config<256, 4>
{};

// Based on data_type = int, flag_type = int64_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx1200),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 4) && (sizeof(data_type) > 2)
                      && (sizeof(flag_type) <= 8) && (sizeof(flag_type) > 4))>>
    : select_config<384, 4>
{};

// Based on data_type = int, flag_type = int
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx1200),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 4) && (sizeof(data_type) > 2)
                      && (sizeof(flag_type) <= 4) && (sizeof(flag_type) > 2))>>
    : select_config<384, 4>
{};

// Based on data_type = int, flag_type = short
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx1200),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 4) && (sizeof(data_type) > 2)
                      && (sizeof(flag_type) <= 2) && (sizeof(flag_type) > 1))>>
    : select_config<384, 6>
{};

// Based on data_type = int, flag_type = int8_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx1200),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 4) && (sizeof(data_type) > 2)
                      && (sizeof(flag_type) <= 1))>> : select_config<384, 7>
{};

// Based on data_type = short, flag_type = int64_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx1200),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 2) && (sizeof(data_type) > 1)
                      && (sizeof(flag_type) <= 8) && (sizeof(flag_type) > 4))>>
    : select_config<256, 4>
{};

// Based on data_type = short, flag_type = int
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx1200),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 2) && (sizeof(data_type) > 1)
                      && (sizeof(flag_type) <= 4) && (sizeof(flag_type) > 2))>>
    : select_config<384, 8>
{};

// Based on data_type = short, flag_type = short
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx1200),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 2) && (sizeof(data_type) > 1)
                      && (sizeof(flag_type) <= 2) && (sizeof(flag_type) > 1))>>
    : select_config<384, 12>
{};

// Based on data_type = short, flag_type = int8_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx1200),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 2) && (sizeof(data_type) > 1)
                      && (sizeof(flag_type) <= 1))>> : select_config<384, 18>
{};

// Based on data_type = int8_t, flag_type = int64_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx1200),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 1) && (sizeof(flag_type) <= 8)
                      && (sizeof(flag_type) > 4))>> : select_config<256, 8>
{};

// Based on data_type = int8_t, flag_type = int
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx1200),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 1) && (sizeof(flag_type) <= 4)
                      && (sizeof(flag_type) > 2))>> : select_config<512, 16>
{};

// Based on data_type = int8_t, flag_type = short
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx1200),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 1) && (sizeof(flag_type) <= 2)
                      && (sizeof(flag_type) > 1))>> : select_config<512, 16>
{};

// Based on data_type = int8_t, flag_type = int8_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx1200),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 1) && (sizeof(flag_type) <= 1))>>
    : select_config<256, 24>
{};

// Based on data_type = double, flag_type = rocprim::int128_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx906),
    data_type,
    flag_type,
    std::enable_if_t<(bool(rocprim::is_floating_point<data_type>::value) && (sizeof(data_type) <= 8)
                      && (sizeof(data_type) > 4) && (sizeof(flag_type) <= 16)
                      && (sizeof(flag_type) > 8))>> : select_config<192, 4>
{};

// Based on data_type = double, flag_type = int64_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx906),
    data_type,
    flag_type,
    std::enable_if_t<(bool(rocprim::is_floating_point<data_type>::value) && (sizeof(data_type) <= 8)
                      && (sizeof(data_type) > 4) && (sizeof(flag_type) <= 8)
                      && (sizeof(flag_type) > 4))>> : select_config<192, 7>
{};

// Based on data_type = double, flag_type = int
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx906),
    data_type,
    flag_type,
    std::enable_if_t<(bool(rocprim::is_floating_point<data_type>::value) && (sizeof(data_type) <= 8)
                      && (sizeof(data_type) > 4) && (sizeof(flag_type) <= 4)
                      && (sizeof(flag_type) > 2))>> : select_config<192, 7>
{};

// Based on data_type = double, flag_type = short
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx906),
    data_type,
    flag_type,
    std::enable_if_t<(bool(rocprim::is_floating_point<data_type>::value) && (sizeof(data_type) <= 8)
                      && (sizeof(data_type) > 4) && (sizeof(flag_type) <= 2)
                      && (sizeof(flag_type) > 1))>> : select_config<256, 7>
{};

// Based on data_type = double, flag_type = int8_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx906),
    data_type,
    flag_type,
    std::enable_if_t<(bool(rocprim::is_floating_point<data_type>::value) && (sizeof(data_type) <= 8)
                      && (sizeof(data_type) > 4) && (sizeof(flag_type) <= 1))>>
    : select_config<256, 7>
{};

// Based on data_type = float, flag_type = rocprim::int128_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx906),
    data_type,
    flag_type,
    std::enable_if_t<(bool(rocprim::is_floating_point<data_type>::value) && (sizeof(data_type) <= 4)
                      && (sizeof(data_type) > 2) && (sizeof(flag_type) <= 16)
                      && (sizeof(flag_type) > 8))>> : select_config<192, 4>
{};

// Based on data_type = float, flag_type = int64_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx906),
    data_type,
    flag_type,
    std::enable_if_t<(bool(rocprim::is_floating_point<data_type>::value) && (sizeof(data_type) <= 4)
                      && (sizeof(data_type) > 2) && (sizeof(flag_type) <= 8)
                      && (sizeof(flag_type) > 4))>> : select_config<256, 6>
{};

// Based on data_type = float, flag_type = int
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx906),
    data_type,
    flag_type,
    std::enable_if_t<(bool(rocprim::is_floating_point<data_type>::value) && (sizeof(data_type) <= 4)
                      && (sizeof(data_type) > 2) && (sizeof(flag_type) <= 4)
                      && (sizeof(flag_type) > 2))>> : select_config<256, 11>
{};

// Based on data_type = float, flag_type = short
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx906),
    data_type,
    flag_type,
    std::enable_if_t<(bool(rocprim::is_floating_point<data_type>::value) && (sizeof(data_type) <= 4)
                      && (sizeof(data_type) > 2) && (sizeof(flag_type) <= 2)
                      && (sizeof(flag_type) > 1))>> : select_config<256, 10>
{};

// Based on data_type = float, flag_type = int8_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx906),
    data_type,
    flag_type,
    std::enable_if_t<(bool(rocprim::is_floating_point<data_type>::value) && (sizeof(data_type) <= 4)
                      && (sizeof(data_type) > 2) && (sizeof(flag_type) <= 1))>>
    : select_config<256, 11>
{};

// Based on data_type = rocprim::half, flag_type = rocprim::int128_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx906),
    data_type,
    flag_type,
    std::enable_if_t<(bool(rocprim::is_floating_point<data_type>::value) && (sizeof(data_type) <= 2)
                      && (sizeof(flag_type) <= 16) && (sizeof(flag_type) > 8))>>
    : select_config<192, 4>
{};

// Based on data_type = rocprim::half, flag_type = int64_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx906),
    data_type,
    flag_type,
    std::enable_if_t<(bool(rocprim::is_floating_point<data_type>::value) && (sizeof(data_type) <= 2)
                      && (sizeof(flag_type) <= 8) && (sizeof(flag_type) > 4))>>
    : select_config<256, 6>
{};

// Based on data_type = rocprim::half, flag_type = int
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx906),
    data_type,
    flag_type,
    std::enable_if_t<(bool(rocprim::is_floating_point<data_type>::value) && (sizeof(data_type) <= 2)
                      && (sizeof(flag_type) <= 4) && (sizeof(flag_type) > 2))>>
    : select_config<256, 12>
{};

// Based on data_type = rocprim::half, flag_type = short
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx906),
    data_type,
    flag_type,
    std::enable_if_t<(bool(rocprim::is_floating_point<data_type>::value) && (sizeof(data_type) <= 2)
                      && (sizeof(flag_type) <= 2) && (sizeof(flag_type) > 1))>>
    : select_config<256, 18>
{};

// Based on data_type = rocprim::half, flag_type = int8_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx906),
    data_type,
    flag_type,
    std::enable_if_t<(bool(rocprim::is_floating_point<data_type>::value) && (sizeof(data_type) <= 2)
                      && (sizeof(flag_type) <= 1))>> : select_config<256, 18>
{};

// Based on data_type = rocprim::int128_t, flag_type = rocprim::int128_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx906),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 16) && (sizeof(data_type) > 8)
                      && (sizeof(flag_type) <= 16) && (sizeof(flag_type) > 8))>>
    : select_config<256, 4>
{};

// Based on data_type = rocprim::int128_t, flag_type = int64_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx906),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 16) && (sizeof(data_type) > 8)
                      && (sizeof(flag_type) <= 8) && (sizeof(flag_type) > 4))>>
    : select_config<128, 4>
{};

// Based on data_type = rocprim::int128_t, flag_type = int
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx906),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 16) && (sizeof(data_type) > 8)
                      && (sizeof(flag_type) <= 4) && (sizeof(flag_type) > 2))>>
    : select_config<192, 4>
{};

// Based on data_type = rocprim::int128_t, flag_type = short
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx906),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 16) && (sizeof(data_type) > 8)
                      && (sizeof(flag_type) <= 2) && (sizeof(flag_type) > 1))>>
    : select_config<192, 4>
{};

// Based on data_type = rocprim::int128_t, flag_type = int8_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx906),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 16) && (sizeof(data_type) > 8)
                      && (sizeof(flag_type) <= 1))>> : select_config<256, 3>
{};

// Based on data_type = int64_t, flag_type = rocprim::int128_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx906),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 8) && (sizeof(data_type) > 4)
                      && (sizeof(flag_type) <= 16) && (sizeof(flag_type) > 8))>>
    : select_config<192, 4>
{};

// Based on data_type = int64_t, flag_type = int64_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx906),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 8) && (sizeof(data_type) > 4)
                      && (sizeof(flag_type) <= 8) && (sizeof(flag_type) > 4))>>
    : select_config<192, 7>
{};

// Based on data_type = int64_t, flag_type = int
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx906),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 8) && (sizeof(data_type) > 4)
                      && (sizeof(flag_type) <= 4) && (sizeof(flag_type) > 2))>>
    : select_config<192, 7>
{};

// Based on data_type = int64_t, flag_type = short
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx906),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 8) && (sizeof(data_type) > 4)
                      && (sizeof(flag_type) <= 2) && (sizeof(flag_type) > 1))>>
    : select_config<256, 7>
{};

// Based on data_type = int64_t, flag_type = int8_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx906),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 8) && (sizeof(data_type) > 4)
                      && (sizeof(flag_type) <= 1))>> : select_config<256, 7>
{};

// Based on data_type = int, flag_type = rocprim::int128_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx906),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 4) && (sizeof(data_type) > 2)
                      && (sizeof(flag_type) <= 16) && (sizeof(flag_type) > 8))>>
    : select_config<192, 4>
{};

// Based on data_type = int, flag_type = int64_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx906),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 4) && (sizeof(data_type) > 2)
                      && (sizeof(flag_type) <= 8) && (sizeof(flag_type) > 4))>>
    : select_config<256, 6>
{};

// Based on data_type = int, flag_type = int
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx906),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 4) && (sizeof(data_type) > 2)
                      && (sizeof(flag_type) <= 4) && (sizeof(flag_type) > 2))>>
    : select_config<256, 11>
{};

// Based on data_type = int, flag_type = short
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx906),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 4) && (sizeof(data_type) > 2)
                      && (sizeof(flag_type) <= 2) && (sizeof(flag_type) > 1))>>
    : select_config<256, 10>
{};

// Based on data_type = int, flag_type = int8_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx906),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 4) && (sizeof(data_type) > 2)
                      && (sizeof(flag_type) <= 1))>> : select_config<256, 11>
{};

// Based on data_type = short, flag_type = rocprim::int128_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx906),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 2) && (sizeof(data_type) > 1)
                      && (sizeof(flag_type) <= 16) && (sizeof(flag_type) > 8))>>
    : select_config<192, 4>
{};

// Based on data_type = short, flag_type = int64_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx906),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 2) && (sizeof(data_type) > 1)
                      && (sizeof(flag_type) <= 8) && (sizeof(flag_type) > 4))>>
    : select_config<256, 6>
{};

// Based on data_type = short, flag_type = int
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx906),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 2) && (sizeof(data_type) > 1)
                      && (sizeof(flag_type) <= 4) && (sizeof(flag_type) > 2))>>
    : select_config<256, 12>
{};

// Based on data_type = short, flag_type = short
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx906),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 2) && (sizeof(data_type) > 1)
                      && (sizeof(flag_type) <= 2) && (sizeof(flag_type) > 1))>>
    : select_config<256, 18>
{};

// Based on data_type = short, flag_type = int8_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx906),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 2) && (sizeof(data_type) > 1)
                      && (sizeof(flag_type) <= 1))>> : select_config<256, 18>
{};

// Based on data_type = int8_t, flag_type = rocprim::int128_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx906),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 1) && (sizeof(flag_type) <= 16)
                      && (sizeof(flag_type) > 8))>> : select_config<192, 4>
{};

// Based on data_type = int8_t, flag_type = int64_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx906),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 1) && (sizeof(flag_type) <= 8)
                      && (sizeof(flag_type) > 4))>> : select_config<256, 6>
{};

// Based on data_type = int8_t, flag_type = int
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx906),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 1) && (sizeof(flag_type) <= 4)
                      && (sizeof(flag_type) > 2))>> : select_config<256, 11>
{};

// Based on data_type = int8_t, flag_type = short
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx906),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 1) && (sizeof(flag_type) <= 2)
                      && (sizeof(flag_type) > 1))>> : select_config<256, 24>
{};

// Based on data_type = int8_t, flag_type = int8_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx906),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 1) && (sizeof(flag_type) <= 1))>>
    : select_config<192, 24>
{};

// Based on data_type = double, flag_type = rocprim::int128_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx908),
    data_type,
    flag_type,
    std::enable_if_t<(bool(rocprim::is_floating_point<data_type>::value) && (sizeof(data_type) <= 8)
                      && (sizeof(data_type) > 4) && (sizeof(flag_type) <= 16)
                      && (sizeof(flag_type) > 8))>> : select_config<192, 4>
{};

// Based on data_type = double, flag_type = int64_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx908),
    data_type,
    flag_type,
    std::enable_if_t<(bool(rocprim::is_floating_point<data_type>::value) && (sizeof(data_type) <= 8)
                      && (sizeof(data_type) > 4) && (sizeof(flag_type) <= 8)
                      && (sizeof(flag_type) > 4))>> : select_config<128, 6>
{};

// Based on data_type = double, flag_type = int
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx908),
    data_type,
    flag_type,
    std::enable_if_t<(bool(rocprim::is_floating_point<data_type>::value) && (sizeof(data_type) <= 8)
                      && (sizeof(data_type) > 4) && (sizeof(flag_type) <= 4)
                      && (sizeof(flag_type) > 2))>> : select_config<128, 6>
{};

// Based on data_type = double, flag_type = short
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx908),
    data_type,
    flag_type,
    std::enable_if_t<(bool(rocprim::is_floating_point<data_type>::value) && (sizeof(data_type) <= 8)
                      && (sizeof(data_type) > 4) && (sizeof(flag_type) <= 2)
                      && (sizeof(flag_type) > 1))>> : select_config<128, 6>
{};

// Based on data_type = double, flag_type = int8_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx908),
    data_type,
    flag_type,
    std::enable_if_t<(bool(rocprim::is_floating_point<data_type>::value) && (sizeof(data_type) <= 8)
                      && (sizeof(data_type) > 4) && (sizeof(flag_type) <= 1))>>
    : select_config<128, 7>
{};

// Based on data_type = float, flag_type = rocprim::int128_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx908),
    data_type,
    flag_type,
    std::enable_if_t<(bool(rocprim::is_floating_point<data_type>::value) && (sizeof(data_type) <= 4)
                      && (sizeof(data_type) > 2) && (sizeof(flag_type) <= 16)
                      && (sizeof(flag_type) > 8))>> : select_config<192, 4>
{};

// Based on data_type = float, flag_type = int64_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx908),
    data_type,
    flag_type,
    std::enable_if_t<(bool(rocprim::is_floating_point<data_type>::value) && (sizeof(data_type) <= 4)
                      && (sizeof(data_type) > 2) && (sizeof(flag_type) <= 8)
                      && (sizeof(flag_type) > 4))>> : select_config<256, 6>
{};

// Based on data_type = float, flag_type = int
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx908),
    data_type,
    flag_type,
    std::enable_if_t<(bool(rocprim::is_floating_point<data_type>::value) && (sizeof(data_type) <= 4)
                      && (sizeof(data_type) > 2) && (sizeof(flag_type) <= 4)
                      && (sizeof(flag_type) > 2))>> : select_config<128, 11>
{};

// Based on data_type = float, flag_type = short
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx908),
    data_type,
    flag_type,
    std::enable_if_t<(bool(rocprim::is_floating_point<data_type>::value) && (sizeof(data_type) <= 4)
                      && (sizeof(data_type) > 2) && (sizeof(flag_type) <= 2)
                      && (sizeof(flag_type) > 1))>> : select_config<256, 10>
{};

// Based on data_type = float, flag_type = int8_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx908),
    data_type,
    flag_type,
    std::enable_if_t<(bool(rocprim::is_floating_point<data_type>::value) && (sizeof(data_type) <= 4)
                      && (sizeof(data_type) > 2) && (sizeof(flag_type) <= 1))>>
    : select_config<256, 11>
{};

// Based on data_type = rocprim::half, flag_type = rocprim::int128_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx908),
    data_type,
    flag_type,
    std::enable_if_t<(bool(rocprim::is_floating_point<data_type>::value) && (sizeof(data_type) <= 2)
                      && (sizeof(flag_type) <= 16) && (sizeof(flag_type) > 8))>>
    : select_config<192, 4>
{};

// Based on data_type = rocprim::half, flag_type = int64_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx908),
    data_type,
    flag_type,
    std::enable_if_t<(bool(rocprim::is_floating_point<data_type>::value) && (sizeof(data_type) <= 2)
                      && (sizeof(flag_type) <= 8) && (sizeof(flag_type) > 4))>>
    : select_config<256, 6>
{};

// Based on data_type = rocprim::half, flag_type = int
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx908),
    data_type,
    flag_type,
    std::enable_if_t<(bool(rocprim::is_floating_point<data_type>::value) && (sizeof(data_type) <= 2)
                      && (sizeof(flag_type) <= 4) && (sizeof(flag_type) > 2))>>
    : select_config<256, 12>
{};

// Based on data_type = rocprim::half, flag_type = short
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx908),
    data_type,
    flag_type,
    std::enable_if_t<(bool(rocprim::is_floating_point<data_type>::value) && (sizeof(data_type) <= 2)
                      && (sizeof(flag_type) <= 2) && (sizeof(flag_type) > 1))>>
    : select_config<512, 18>
{};

// Based on data_type = rocprim::half, flag_type = int8_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx908),
    data_type,
    flag_type,
    std::enable_if_t<(bool(rocprim::is_floating_point<data_type>::value) && (sizeof(data_type) <= 2)
                      && (sizeof(flag_type) <= 1))>> : select_config<256, 24>
{};

// Based on data_type = rocprim::int128_t, flag_type = rocprim::int128_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx908),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 16) && (sizeof(data_type) > 8)
                      && (sizeof(flag_type) <= 16) && (sizeof(flag_type) > 8))>>
    : select_config<256, 4>
{};

// Based on data_type = rocprim::int128_t, flag_type = int64_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx908),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 16) && (sizeof(data_type) > 8)
                      && (sizeof(flag_type) <= 8) && (sizeof(flag_type) > 4))>>
    : select_config<128, 4>
{};

// Based on data_type = rocprim::int128_t, flag_type = int
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx908),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 16) && (sizeof(data_type) > 8)
                      && (sizeof(flag_type) <= 4) && (sizeof(flag_type) > 2))>>
    : select_config<128, 4>
{};

// Based on data_type = rocprim::int128_t, flag_type = short
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx908),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 16) && (sizeof(data_type) > 8)
                      && (sizeof(flag_type) <= 2) && (sizeof(flag_type) > 1))>>
    : select_config<128, 4>
{};

// Based on data_type = rocprim::int128_t, flag_type = int8_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx908),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 16) && (sizeof(data_type) > 8)
                      && (sizeof(flag_type) <= 1))>> : select_config<128, 4>
{};

// Based on data_type = int64_t, flag_type = rocprim::int128_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx908),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 8) && (sizeof(data_type) > 4)
                      && (sizeof(flag_type) <= 16) && (sizeof(flag_type) > 8))>>
    : select_config<192, 4>
{};

// Based on data_type = int64_t, flag_type = int64_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx908),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 8) && (sizeof(data_type) > 4)
                      && (sizeof(flag_type) <= 8) && (sizeof(flag_type) > 4))>>
    : select_config<128, 6>
{};

// Based on data_type = int64_t, flag_type = int
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx908),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 8) && (sizeof(data_type) > 4)
                      && (sizeof(flag_type) <= 4) && (sizeof(flag_type) > 2))>>
    : select_config<128, 6>
{};

// Based on data_type = int64_t, flag_type = short
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx908),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 8) && (sizeof(data_type) > 4)
                      && (sizeof(flag_type) <= 2) && (sizeof(flag_type) > 1))>>
    : select_config<128, 6>
{};

// Based on data_type = int64_t, flag_type = int8_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx908),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 8) && (sizeof(data_type) > 4)
                      && (sizeof(flag_type) <= 1))>> : select_config<128, 7>
{};

// Based on data_type = int, flag_type = rocprim::int128_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx908),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 4) && (sizeof(data_type) > 2)
                      && (sizeof(flag_type) <= 16) && (sizeof(flag_type) > 8))>>
    : select_config<192, 4>
{};

// Based on data_type = int, flag_type = int64_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx908),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 4) && (sizeof(data_type) > 2)
                      && (sizeof(flag_type) <= 8) && (sizeof(flag_type) > 4))>>
    : select_config<256, 6>
{};

// Based on data_type = int, flag_type = int
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx908),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 4) && (sizeof(data_type) > 2)
                      && (sizeof(flag_type) <= 4) && (sizeof(flag_type) > 2))>>
    : select_config<128, 11>
{};

// Based on data_type = int, flag_type = short
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx908),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 4) && (sizeof(data_type) > 2)
                      && (sizeof(flag_type) <= 2) && (sizeof(flag_type) > 1))>>
    : select_config<256, 10>
{};

// Based on data_type = int, flag_type = int8_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx908),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 4) && (sizeof(data_type) > 2)
                      && (sizeof(flag_type) <= 1))>> : select_config<256, 11>
{};

// Based on data_type = short, flag_type = rocprim::int128_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx908),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 2) && (sizeof(data_type) > 1)
                      && (sizeof(flag_type) <= 16) && (sizeof(flag_type) > 8))>>
    : select_config<192, 4>
{};

// Based on data_type = short, flag_type = int64_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx908),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 2) && (sizeof(data_type) > 1)
                      && (sizeof(flag_type) <= 8) && (sizeof(flag_type) > 4))>>
    : select_config<256, 6>
{};

// Based on data_type = short, flag_type = int
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx908),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 2) && (sizeof(data_type) > 1)
                      && (sizeof(flag_type) <= 4) && (sizeof(flag_type) > 2))>>
    : select_config<256, 12>
{};

// Based on data_type = short, flag_type = short
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx908),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 2) && (sizeof(data_type) > 1)
                      && (sizeof(flag_type) <= 2) && (sizeof(flag_type) > 1))>>
    : select_config<512, 18>
{};

// Based on data_type = short, flag_type = int8_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx908),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 2) && (sizeof(data_type) > 1)
                      && (sizeof(flag_type) <= 1))>> : select_config<256, 18>
{};

// Based on data_type = int8_t, flag_type = rocprim::int128_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx908),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 1) && (sizeof(flag_type) <= 16)
                      && (sizeof(flag_type) > 8))>> : select_config<192, 4>
{};

// Based on data_type = int8_t, flag_type = int64_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx908),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 1) && (sizeof(flag_type) <= 8)
                      && (sizeof(flag_type) > 4))>> : select_config<256, 6>
{};

// Based on data_type = int8_t, flag_type = int
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx908),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 1) && (sizeof(flag_type) <= 4)
                      && (sizeof(flag_type) > 2))>> : select_config<256, 11>
{};

// Based on data_type = int8_t, flag_type = short
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx908),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 1) && (sizeof(flag_type) <= 2)
                      && (sizeof(flag_type) > 1))>> : select_config<256, 24>
{};

// Based on data_type = int8_t, flag_type = int8_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx908),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 1) && (sizeof(flag_type) <= 1))>>
    : select_config<256, 24>
{};

// Based on data_type = double, flag_type = rocprim::int128_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx90a),
    data_type,
    flag_type,
    std::enable_if_t<(bool(rocprim::is_floating_point<data_type>::value) && (sizeof(data_type) <= 8)
                      && (sizeof(data_type) > 4) && (sizeof(flag_type) <= 16)
                      && (sizeof(flag_type) > 8))>> : select_config<128, 4>
{};

// Based on data_type = double, flag_type = int64_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx90a),
    data_type,
    flag_type,
    std::enable_if_t<(bool(rocprim::is_floating_point<data_type>::value) && (sizeof(data_type) <= 8)
                      && (sizeof(data_type) > 4) && (sizeof(flag_type) <= 8)
                      && (sizeof(flag_type) > 4))>> : select_config<192, 4>
{};

// Based on data_type = double, flag_type = int
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx90a),
    data_type,
    flag_type,
    std::enable_if_t<(bool(rocprim::is_floating_point<data_type>::value) && (sizeof(data_type) <= 8)
                      && (sizeof(data_type) > 4) && (sizeof(flag_type) <= 4)
                      && (sizeof(flag_type) > 2))>> : select_config<512, 5>
{};

// Based on data_type = double, flag_type = short
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx90a),
    data_type,
    flag_type,
    std::enable_if_t<(bool(rocprim::is_floating_point<data_type>::value) && (sizeof(data_type) <= 8)
                      && (sizeof(data_type) > 4) && (sizeof(flag_type) <= 2)
                      && (sizeof(flag_type) > 1))>> : select_config<192, 4>
{};

// Based on data_type = double, flag_type = int8_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx90a),
    data_type,
    flag_type,
    std::enable_if_t<(bool(rocprim::is_floating_point<data_type>::value) && (sizeof(data_type) <= 8)
                      && (sizeof(data_type) > 4) && (sizeof(flag_type) <= 1))>>
    : select_config<192, 4>
{};

// Based on data_type = float, flag_type = rocprim::int128_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx90a),
    data_type,
    flag_type,
    std::enable_if_t<(bool(rocprim::is_floating_point<data_type>::value) && (sizeof(data_type) <= 4)
                      && (sizeof(data_type) > 2) && (sizeof(flag_type) <= 16)
                      && (sizeof(flag_type) > 8))>> : select_config<192, 4>
{};

// Based on data_type = float, flag_type = int64_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx90a),
    data_type,
    flag_type,
    std::enable_if_t<(bool(rocprim::is_floating_point<data_type>::value) && (sizeof(data_type) <= 4)
                      && (sizeof(data_type) > 2) && (sizeof(flag_type) <= 8)
                      && (sizeof(flag_type) > 4))>> : select_config<192, 5>
{};

// Based on data_type = float, flag_type = int
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx90a),
    data_type,
    flag_type,
    std::enable_if_t<(bool(rocprim::is_floating_point<data_type>::value) && (sizeof(data_type) <= 4)
                      && (sizeof(data_type) > 2) && (sizeof(flag_type) <= 4)
                      && (sizeof(flag_type) > 2))>> : select_config<256, 6>
{};

// Based on data_type = float, flag_type = short
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx90a),
    data_type,
    flag_type,
    std::enable_if_t<(bool(rocprim::is_floating_point<data_type>::value) && (sizeof(data_type) <= 4)
                      && (sizeof(data_type) > 2) && (sizeof(flag_type) <= 2)
                      && (sizeof(flag_type) > 1))>> : select_config<192, 10>
{};

// Based on data_type = float, flag_type = int8_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx90a),
    data_type,
    flag_type,
    std::enable_if_t<(bool(rocprim::is_floating_point<data_type>::value) && (sizeof(data_type) <= 4)
                      && (sizeof(data_type) > 2) && (sizeof(flag_type) <= 1))>>
    : select_config<256, 7>
{};

// Based on data_type = rocprim::half, flag_type = rocprim::int128_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx90a),
    data_type,
    flag_type,
    std::enable_if_t<(bool(rocprim::is_floating_point<data_type>::value) && (sizeof(data_type) <= 2)
                      && (sizeof(flag_type) <= 16) && (sizeof(flag_type) > 8))>>
    : select_config<192, 4>
{};

// Based on data_type = rocprim::half, flag_type = int64_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx90a),
    data_type,
    flag_type,
    std::enable_if_t<(bool(rocprim::is_floating_point<data_type>::value) && (sizeof(data_type) <= 2)
                      && (sizeof(flag_type) <= 8) && (sizeof(flag_type) > 4))>>
    : select_config<256, 6>
{};

// Based on data_type = rocprim::half, flag_type = int
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx90a),
    data_type,
    flag_type,
    std::enable_if_t<(bool(rocprim::is_floating_point<data_type>::value) && (sizeof(data_type) <= 2)
                      && (sizeof(flag_type) <= 4) && (sizeof(flag_type) > 2))>>
    : select_config<256, 10>
{};

// Based on data_type = rocprim::half, flag_type = short
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx90a),
    data_type,
    flag_type,
    std::enable_if_t<(bool(rocprim::is_floating_point<data_type>::value) && (sizeof(data_type) <= 2)
                      && (sizeof(flag_type) <= 2) && (sizeof(flag_type) > 1))>>
    : select_config<256, 20>
{};

// Based on data_type = rocprim::half, flag_type = int8_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx90a),
    data_type,
    flag_type,
    std::enable_if_t<(bool(rocprim::is_floating_point<data_type>::value) && (sizeof(data_type) <= 2)
                      && (sizeof(flag_type) <= 1))>> : select_config<256, 20>
{};

// Based on data_type = rocprim::int128_t, flag_type = rocprim::int128_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx90a),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 16) && (sizeof(data_type) > 8)
                      && (sizeof(flag_type) <= 16) && (sizeof(flag_type) > 8))>>
    : select_config<128, 4>
{};

// Based on data_type = rocprim::int128_t, flag_type = int64_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx90a),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 16) && (sizeof(data_type) > 8)
                      && (sizeof(flag_type) <= 8) && (sizeof(flag_type) > 4))>>
    : select_config<128, 4>
{};

// Based on data_type = rocprim::int128_t, flag_type = int
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx90a),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 16) && (sizeof(data_type) > 8)
                      && (sizeof(flag_type) <= 4) && (sizeof(flag_type) > 2))>>
    : select_config<128, 4>
{};

// Based on data_type = rocprim::int128_t, flag_type = short
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx90a),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 16) && (sizeof(data_type) > 8)
                      && (sizeof(flag_type) <= 2) && (sizeof(flag_type) > 1))>>
    : select_config<128, 4>
{};

// Based on data_type = rocprim::int128_t, flag_type = int8_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx90a),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 16) && (sizeof(data_type) > 8)
                      && (sizeof(flag_type) <= 1))>> : select_config<128, 4>
{};

// Based on data_type = int64_t, flag_type = rocprim::int128_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx90a),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 8) && (sizeof(data_type) > 4)
                      && (sizeof(flag_type) <= 16) && (sizeof(flag_type) > 8))>>
    : select_config<128, 4>
{};

// Based on data_type = int64_t, flag_type = int64_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx90a),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 8) && (sizeof(data_type) > 4)
                      && (sizeof(flag_type) <= 8) && (sizeof(flag_type) > 4))>>
    : select_config<192, 4>
{};

// Based on data_type = int64_t, flag_type = int
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx90a),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 8) && (sizeof(data_type) > 4)
                      && (sizeof(flag_type) <= 4) && (sizeof(flag_type) > 2))>>
    : select_config<192, 4>
{};

// Based on data_type = int64_t, flag_type = short
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx90a),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 8) && (sizeof(data_type) > 4)
                      && (sizeof(flag_type) <= 2) && (sizeof(flag_type) > 1))>>
    : select_config<192, 4>
{};

// Based on data_type = int64_t, flag_type = int8_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx90a),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 8) && (sizeof(data_type) > 4)
                      && (sizeof(flag_type) <= 1))>> : select_config<192, 5>
{};

// Based on data_type = int, flag_type = rocprim::int128_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx90a),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 4) && (sizeof(data_type) > 2)
                      && (sizeof(flag_type) <= 16) && (sizeof(flag_type) > 8))>>
    : select_config<192, 4>
{};

// Based on data_type = int, flag_type = int64_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx90a),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 4) && (sizeof(data_type) > 2)
                      && (sizeof(flag_type) <= 8) && (sizeof(flag_type) > 4))>>
    : select_config<192, 5>
{};

// Based on data_type = int, flag_type = int
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx90a),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 4) && (sizeof(data_type) > 2)
                      && (sizeof(flag_type) <= 4) && (sizeof(flag_type) > 2))>>
    : select_config<256, 6>
{};

// Based on data_type = int, flag_type = short
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx90a),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 4) && (sizeof(data_type) > 2)
                      && (sizeof(flag_type) <= 2) && (sizeof(flag_type) > 1))>>
    : select_config<192, 10>
{};

// Based on data_type = int, flag_type = int8_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx90a),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 4) && (sizeof(data_type) > 2)
                      && (sizeof(flag_type) <= 1))>> : select_config<192, 10>
{};

// Based on data_type = short, flag_type = rocprim::int128_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx90a),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 2) && (sizeof(data_type) > 1)
                      && (sizeof(flag_type) <= 16) && (sizeof(flag_type) > 8))>>
    : select_config<192, 4>
{};

// Based on data_type = short, flag_type = int64_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx90a),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 2) && (sizeof(data_type) > 1)
                      && (sizeof(flag_type) <= 8) && (sizeof(flag_type) > 4))>>
    : select_config<256, 6>
{};

// Based on data_type = short, flag_type = int
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx90a),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 2) && (sizeof(data_type) > 1)
                      && (sizeof(flag_type) <= 4) && (sizeof(flag_type) > 2))>>
    : select_config<256, 10>
{};

// Based on data_type = short, flag_type = short
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx90a),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 2) && (sizeof(data_type) > 1)
                      && (sizeof(flag_type) <= 2) && (sizeof(flag_type) > 1))>>
    : select_config<256, 20>
{};

// Based on data_type = short, flag_type = int8_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx90a),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 2) && (sizeof(data_type) > 1)
                      && (sizeof(flag_type) <= 1))>> : select_config<256, 20>
{};

// Based on data_type = int8_t, flag_type = rocprim::int128_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx90a),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 1) && (sizeof(flag_type) <= 16)
                      && (sizeof(flag_type) > 8))>> : select_config<192, 4>
{};

// Based on data_type = int8_t, flag_type = int64_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx90a),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 1) && (sizeof(flag_type) <= 8)
                      && (sizeof(flag_type) > 4))>> : select_config<192, 5>
{};

// Based on data_type = int8_t, flag_type = int
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx90a),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 1) && (sizeof(flag_type) <= 4)
                      && (sizeof(flag_type) > 2))>> : select_config<256, 12>
{};

// Based on data_type = int8_t, flag_type = short
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx90a),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 1) && (sizeof(flag_type) <= 2)
                      && (sizeof(flag_type) > 1))>> : select_config<192, 20>
{};

// Based on data_type = int8_t, flag_type = int8_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx90a),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 1) && (sizeof(flag_type) <= 1))>>
    : select_config<256, 24>
{};

// Based on data_type = double, flag_type = rocprim::int128_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::unknown),
    data_type,
    flag_type,
    std::enable_if_t<(bool(rocprim::is_floating_point<data_type>::value) && (sizeof(data_type) <= 8)
                      && (sizeof(data_type) > 4) && (sizeof(flag_type) <= 16)
                      && (sizeof(flag_type) > 8))>> : select_config<192, 4>
{};

// Based on data_type = double, flag_type = int64_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::unknown),
    data_type,
    flag_type,
    std::enable_if_t<(bool(rocprim::is_floating_point<data_type>::value) && (sizeof(data_type) <= 8)
                      && (sizeof(data_type) > 4) && (sizeof(flag_type) <= 8)
                      && (sizeof(flag_type) > 4))>> : select_config<128, 6>
{};

// Based on data_type = double, flag_type = int
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::unknown),
    data_type,
    flag_type,
    std::enable_if_t<(bool(rocprim::is_floating_point<data_type>::value) && (sizeof(data_type) <= 8)
                      && (sizeof(data_type) > 4) && (sizeof(flag_type) <= 4)
                      && (sizeof(flag_type) > 2))>> : select_config<128, 6>
{};

// Based on data_type = double, flag_type = short
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::unknown),
    data_type,
    flag_type,
    std::enable_if_t<(bool(rocprim::is_floating_point<data_type>::value) && (sizeof(data_type) <= 8)
                      && (sizeof(data_type) > 4) && (sizeof(flag_type) <= 2)
                      && (sizeof(flag_type) > 1))>> : select_config<128, 6>
{};

// Based on data_type = double, flag_type = int8_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::unknown),
    data_type,
    flag_type,
    std::enable_if_t<(bool(rocprim::is_floating_point<data_type>::value) && (sizeof(data_type) <= 8)
                      && (sizeof(data_type) > 4) && (sizeof(flag_type) <= 1))>>
    : select_config<128, 7>
{};

// Based on data_type = float, flag_type = rocprim::int128_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::unknown),
    data_type,
    flag_type,
    std::enable_if_t<(bool(rocprim::is_floating_point<data_type>::value) && (sizeof(data_type) <= 4)
                      && (sizeof(data_type) > 2) && (sizeof(flag_type) <= 16)
                      && (sizeof(flag_type) > 8))>> : select_config<192, 4>
{};

// Based on data_type = float, flag_type = int64_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::unknown),
    data_type,
    flag_type,
    std::enable_if_t<(bool(rocprim::is_floating_point<data_type>::value) && (sizeof(data_type) <= 4)
                      && (sizeof(data_type) > 2) && (sizeof(flag_type) <= 8)
                      && (sizeof(flag_type) > 4))>> : select_config<256, 6>
{};

// Based on data_type = float, flag_type = int
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::unknown),
    data_type,
    flag_type,
    std::enable_if_t<(bool(rocprim::is_floating_point<data_type>::value) && (sizeof(data_type) <= 4)
                      && (sizeof(data_type) > 2) && (sizeof(flag_type) <= 4)
                      && (sizeof(flag_type) > 2))>> : select_config<128, 11>
{};

// Based on data_type = float, flag_type = short
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::unknown),
    data_type,
    flag_type,
    std::enable_if_t<(bool(rocprim::is_floating_point<data_type>::value) && (sizeof(data_type) <= 4)
                      && (sizeof(data_type) > 2) && (sizeof(flag_type) <= 2)
                      && (sizeof(flag_type) > 1))>> : select_config<256, 10>
{};

// Based on data_type = float, flag_type = int8_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::unknown),
    data_type,
    flag_type,
    std::enable_if_t<(bool(rocprim::is_floating_point<data_type>::value) && (sizeof(data_type) <= 4)
                      && (sizeof(data_type) > 2) && (sizeof(flag_type) <= 1))>>
    : select_config<256, 11>
{};

// Based on data_type = rocprim::half, flag_type = rocprim::int128_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::unknown),
    data_type,
    flag_type,
    std::enable_if_t<(bool(rocprim::is_floating_point<data_type>::value) && (sizeof(data_type) <= 2)
                      && (sizeof(flag_type) <= 16) && (sizeof(flag_type) > 8))>>
    : select_config<192, 4>
{};

// Based on data_type = rocprim::half, flag_type = int64_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::unknown),
    data_type,
    flag_type,
    std::enable_if_t<(bool(rocprim::is_floating_point<data_type>::value) && (sizeof(data_type) <= 2)
                      && (sizeof(flag_type) <= 8) && (sizeof(flag_type) > 4))>>
    : select_config<256, 6>
{};

// Based on data_type = rocprim::half, flag_type = int
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::unknown),
    data_type,
    flag_type,
    std::enable_if_t<(bool(rocprim::is_floating_point<data_type>::value) && (sizeof(data_type) <= 2)
                      && (sizeof(flag_type) <= 4) && (sizeof(flag_type) > 2))>>
    : select_config<256, 12>
{};

// Based on data_type = rocprim::half, flag_type = short
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::unknown),
    data_type,
    flag_type,
    std::enable_if_t<(bool(rocprim::is_floating_point<data_type>::value) && (sizeof(data_type) <= 2)
                      && (sizeof(flag_type) <= 2) && (sizeof(flag_type) > 1))>>
    : select_config<512, 18>
{};

// Based on data_type = rocprim::half, flag_type = int8_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::unknown),
    data_type,
    flag_type,
    std::enable_if_t<(bool(rocprim::is_floating_point<data_type>::value) && (sizeof(data_type) <= 2)
                      && (sizeof(flag_type) <= 1))>> : select_config<256, 24>
{};

// Based on data_type = rocprim::int128_t, flag_type = rocprim::int128_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::unknown),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 16) && (sizeof(data_type) > 8)
                      && (sizeof(flag_type) <= 16) && (sizeof(flag_type) > 8))>>
    : select_config<256, 4>
{};

// Based on data_type = rocprim::int128_t, flag_type = int64_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::unknown),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 16) && (sizeof(data_type) > 8)
                      && (sizeof(flag_type) <= 8) && (sizeof(flag_type) > 4))>>
    : select_config<128, 4>
{};

// Based on data_type = rocprim::int128_t, flag_type = int
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::unknown),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 16) && (sizeof(data_type) > 8)
                      && (sizeof(flag_type) <= 4) && (sizeof(flag_type) > 2))>>
    : select_config<128, 4>
{};

// Based on data_type = rocprim::int128_t, flag_type = short
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::unknown),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 16) && (sizeof(data_type) > 8)
                      && (sizeof(flag_type) <= 2) && (sizeof(flag_type) > 1))>>
    : select_config<128, 4>
{};

// Based on data_type = rocprim::int128_t, flag_type = int8_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::unknown),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 16) && (sizeof(data_type) > 8)
                      && (sizeof(flag_type) <= 1))>> : select_config<128, 4>
{};

// Based on data_type = int64_t, flag_type = rocprim::int128_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::unknown),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 8) && (sizeof(data_type) > 4)
                      && (sizeof(flag_type) <= 16) && (sizeof(flag_type) > 8))>>
    : select_config<192, 4>
{};

// Based on data_type = int64_t, flag_type = int64_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::unknown),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 8) && (sizeof(data_type) > 4)
                      && (sizeof(flag_type) <= 8) && (sizeof(flag_type) > 4))>>
    : select_config<128, 6>
{};

// Based on data_type = int64_t, flag_type = int
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::unknown),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 8) && (sizeof(data_type) > 4)
                      && (sizeof(flag_type) <= 4) && (sizeof(flag_type) > 2))>>
    : select_config<128, 6>
{};

// Based on data_type = int64_t, flag_type = short
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::unknown),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 8) && (sizeof(data_type) > 4)
                      && (sizeof(flag_type) <= 2) && (sizeof(flag_type) > 1))>>
    : select_config<128, 6>
{};

// Based on data_type = int64_t, flag_type = int8_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::unknown),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 8) && (sizeof(data_type) > 4)
                      && (sizeof(flag_type) <= 1))>> : select_config<128, 7>
{};

// Based on data_type = int, flag_type = rocprim::int128_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::unknown),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 4) && (sizeof(data_type) > 2)
                      && (sizeof(flag_type) <= 16) && (sizeof(flag_type) > 8))>>
    : select_config<192, 4>
{};

// Based on data_type = int, flag_type = int64_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::unknown),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 4) && (sizeof(data_type) > 2)
                      && (sizeof(flag_type) <= 8) && (sizeof(flag_type) > 4))>>
    : select_config<256, 6>
{};

// Based on data_type = int, flag_type = int
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::unknown),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 4) && (sizeof(data_type) > 2)
                      && (sizeof(flag_type) <= 4) && (sizeof(flag_type) > 2))>>
    : select_config<128, 11>
{};

// Based on data_type = int, flag_type = short
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::unknown),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 4) && (sizeof(data_type) > 2)
                      && (sizeof(flag_type) <= 2) && (sizeof(flag_type) > 1))>>
    : select_config<256, 10>
{};

// Based on data_type = int, flag_type = int8_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::unknown),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 4) && (sizeof(data_type) > 2)
                      && (sizeof(flag_type) <= 1))>> : select_config<256, 11>
{};

// Based on data_type = short, flag_type = rocprim::int128_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::unknown),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 2) && (sizeof(data_type) > 1)
                      && (sizeof(flag_type) <= 16) && (sizeof(flag_type) > 8))>>
    : select_config<192, 4>
{};

// Based on data_type = short, flag_type = int64_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::unknown),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 2) && (sizeof(data_type) > 1)
                      && (sizeof(flag_type) <= 8) && (sizeof(flag_type) > 4))>>
    : select_config<256, 6>
{};

// Based on data_type = short, flag_type = int
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::unknown),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 2) && (sizeof(data_type) > 1)
                      && (sizeof(flag_type) <= 4) && (sizeof(flag_type) > 2))>>
    : select_config<256, 12>
{};

// Based on data_type = short, flag_type = short
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::unknown),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 2) && (sizeof(data_type) > 1)
                      && (sizeof(flag_type) <= 2) && (sizeof(flag_type) > 1))>>
    : select_config<512, 18>
{};

// Based on data_type = short, flag_type = int8_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::unknown),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 2) && (sizeof(data_type) > 1)
                      && (sizeof(flag_type) <= 1))>> : select_config<256, 18>
{};

// Based on data_type = int8_t, flag_type = rocprim::int128_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::unknown),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 1) && (sizeof(flag_type) <= 16)
                      && (sizeof(flag_type) > 8))>> : select_config<192, 4>
{};

// Based on data_type = int8_t, flag_type = int64_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::unknown),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 1) && (sizeof(flag_type) <= 8)
                      && (sizeof(flag_type) > 4))>> : select_config<256, 6>
{};

// Based on data_type = int8_t, flag_type = int
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::unknown),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 1) && (sizeof(flag_type) <= 4)
                      && (sizeof(flag_type) > 2))>> : select_config<256, 11>
{};

// Based on data_type = int8_t, flag_type = short
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::unknown),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 1) && (sizeof(flag_type) <= 2)
                      && (sizeof(flag_type) > 1))>> : select_config<256, 24>
{};

// Based on data_type = int8_t, flag_type = int8_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::unknown),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 1) && (sizeof(flag_type) <= 1))>>
    : select_config<256, 24>
{};

// Based on data_type = double, flag_type = rocprim::int128_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx942),
    data_type,
    flag_type,
    std::enable_if_t<(bool(rocprim::is_floating_point<data_type>::value) && (sizeof(data_type) <= 8)
                      && (sizeof(data_type) > 4) && (sizeof(flag_type) <= 16)
                      && (sizeof(flag_type) > 8))>> : select_config<384, 4>
{};

// Based on data_type = double, flag_type = int64_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx942),
    data_type,
    flag_type,
    std::enable_if_t<(bool(rocprim::is_floating_point<data_type>::value) && (sizeof(data_type) <= 8)
                      && (sizeof(data_type) > 4) && (sizeof(flag_type) <= 8)
                      && (sizeof(flag_type) > 4))>> : select_config<512, 7>
{};

// Based on data_type = double, flag_type = int
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx942),
    data_type,
    flag_type,
    std::enable_if_t<(bool(rocprim::is_floating_point<data_type>::value) && (sizeof(data_type) <= 8)
                      && (sizeof(data_type) > 4) && (sizeof(flag_type) <= 4)
                      && (sizeof(flag_type) > 2))>> : select_config<512, 7>
{};

// Based on data_type = double, flag_type = short
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx942),
    data_type,
    flag_type,
    std::enable_if_t<(bool(rocprim::is_floating_point<data_type>::value) && (sizeof(data_type) <= 8)
                      && (sizeof(data_type) > 4) && (sizeof(flag_type) <= 2)
                      && (sizeof(flag_type) > 1))>> : select_config<512, 7>
{};

// Based on data_type = double, flag_type = int8_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx942),
    data_type,
    flag_type,
    std::enable_if_t<(bool(rocprim::is_floating_point<data_type>::value) && (sizeof(data_type) <= 8)
                      && (sizeof(data_type) > 4) && (sizeof(flag_type) <= 1))>>
    : select_config<512, 7>
{};

// Based on data_type = float, flag_type = rocprim::int128_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx942),
    data_type,
    flag_type,
    std::enable_if_t<(bool(rocprim::is_floating_point<data_type>::value) && (sizeof(data_type) <= 4)
                      && (sizeof(data_type) > 2) && (sizeof(flag_type) <= 16)
                      && (sizeof(flag_type) > 8))>> : select_config<384, 4>
{};

// Based on data_type = float, flag_type = int64_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx942),
    data_type,
    flag_type,
    std::enable_if_t<(bool(rocprim::is_floating_point<data_type>::value) && (sizeof(data_type) <= 4)
                      && (sizeof(data_type) > 2) && (sizeof(flag_type) <= 8)
                      && (sizeof(flag_type) > 4))>> : select_config<512, 7>
{};

// Based on data_type = float, flag_type = int
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx942),
    data_type,
    flag_type,
    std::enable_if_t<(bool(rocprim::is_floating_point<data_type>::value) && (sizeof(data_type) <= 4)
                      && (sizeof(data_type) > 2) && (sizeof(flag_type) <= 4)
                      && (sizeof(flag_type) > 2))>> : select_config<512, 15>
{};

// Based on data_type = float, flag_type = short
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx942),
    data_type,
    flag_type,
    std::enable_if_t<(bool(rocprim::is_floating_point<data_type>::value) && (sizeof(data_type) <= 4)
                      && (sizeof(data_type) > 2) && (sizeof(flag_type) <= 2)
                      && (sizeof(flag_type) > 1))>> : select_config<512, 15>
{};

// Based on data_type = float, flag_type = int8_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx942),
    data_type,
    flag_type,
    std::enable_if_t<(bool(rocprim::is_floating_point<data_type>::value) && (sizeof(data_type) <= 4)
                      && (sizeof(data_type) > 2) && (sizeof(flag_type) <= 1))>>
    : select_config<512, 15>
{};

// Based on data_type = rocprim::half, flag_type = rocprim::int128_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx942),
    data_type,
    flag_type,
    std::enable_if_t<(bool(rocprim::is_floating_point<data_type>::value) && (sizeof(data_type) <= 2)
                      && (sizeof(flag_type) <= 16) && (sizeof(flag_type) > 8))>>
    : select_config<384, 4>
{};

// Based on data_type = rocprim::half, flag_type = int64_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx942),
    data_type,
    flag_type,
    std::enable_if_t<(bool(rocprim::is_floating_point<data_type>::value) && (sizeof(data_type) <= 2)
                      && (sizeof(flag_type) <= 8) && (sizeof(flag_type) > 4))>>
    : select_config<512, 7>
{};

// Based on data_type = rocprim::half, flag_type = int
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx942),
    data_type,
    flag_type,
    std::enable_if_t<(bool(rocprim::is_floating_point<data_type>::value) && (sizeof(data_type) <= 2)
                      && (sizeof(flag_type) <= 4) && (sizeof(flag_type) > 2))>>
    : select_config<512, 14>
{};

// Based on data_type = rocprim::half, flag_type = short
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx942),
    data_type,
    flag_type,
    std::enable_if_t<(bool(rocprim::is_floating_point<data_type>::value) && (sizeof(data_type) <= 2)
                      && (sizeof(flag_type) <= 2) && (sizeof(flag_type) > 1))>>
    : select_config<512, 30>
{};

// Based on data_type = rocprim::half, flag_type = int8_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx942),
    data_type,
    flag_type,
    std::enable_if_t<(bool(rocprim::is_floating_point<data_type>::value) && (sizeof(data_type) <= 2)
                      && (sizeof(flag_type) <= 1))>> : select_config<512, 28>
{};

// Based on data_type = rocprim::int128_t, flag_type = rocprim::int128_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx942),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 16) && (sizeof(data_type) > 8)
                      && (sizeof(flag_type) <= 16) && (sizeof(flag_type) > 8))>>
    : select_config<384, 4>
{};

// Based on data_type = rocprim::int128_t, flag_type = int64_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx942),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 16) && (sizeof(data_type) > 8)
                      && (sizeof(flag_type) <= 8) && (sizeof(flag_type) > 4))>>
    : select_config<384, 4>
{};

// Based on data_type = rocprim::int128_t, flag_type = int
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx942),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 16) && (sizeof(data_type) > 8)
                      && (sizeof(flag_type) <= 4) && (sizeof(flag_type) > 2))>>
    : select_config<384, 4>
{};

// Based on data_type = rocprim::int128_t, flag_type = short
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx942),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 16) && (sizeof(data_type) > 8)
                      && (sizeof(flag_type) <= 2) && (sizeof(flag_type) > 1))>>
    : select_config<384, 4>
{};

// Based on data_type = rocprim::int128_t, flag_type = int8_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx942),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 16) && (sizeof(data_type) > 8)
                      && (sizeof(flag_type) <= 1))>> : select_config<384, 4>
{};

// Based on data_type = int64_t, flag_type = rocprim::int128_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx942),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 8) && (sizeof(data_type) > 4)
                      && (sizeof(flag_type) <= 16) && (sizeof(flag_type) > 8))>>
    : select_config<384, 4>
{};

// Based on data_type = int64_t, flag_type = int64_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx942),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 8) && (sizeof(data_type) > 4)
                      && (sizeof(flag_type) <= 8) && (sizeof(flag_type) > 4))>>
    : select_config<512, 7>
{};

// Based on data_type = int64_t, flag_type = int
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx942),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 8) && (sizeof(data_type) > 4)
                      && (sizeof(flag_type) <= 4) && (sizeof(flag_type) > 2))>>
    : select_config<512, 7>
{};

// Based on data_type = int64_t, flag_type = short
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx942),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 8) && (sizeof(data_type) > 4)
                      && (sizeof(flag_type) <= 2) && (sizeof(flag_type) > 1))>>
    : select_config<512, 7>
{};

// Based on data_type = int64_t, flag_type = int8_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx942),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 8) && (sizeof(data_type) > 4)
                      && (sizeof(flag_type) <= 1))>> : select_config<512, 7>
{};

// Based on data_type = int, flag_type = rocprim::int128_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx942),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 4) && (sizeof(data_type) > 2)
                      && (sizeof(flag_type) <= 16) && (sizeof(flag_type) > 8))>>
    : select_config<384, 4>
{};

// Based on data_type = int, flag_type = int64_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx942),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 4) && (sizeof(data_type) > 2)
                      && (sizeof(flag_type) <= 8) && (sizeof(flag_type) > 4))>>
    : select_config<512, 7>
{};

// Based on data_type = int, flag_type = int
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx942),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 4) && (sizeof(data_type) > 2)
                      && (sizeof(flag_type) <= 4) && (sizeof(flag_type) > 2))>>
    : select_config<512, 15>
{};

// Based on data_type = int, flag_type = short
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx942),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 4) && (sizeof(data_type) > 2)
                      && (sizeof(flag_type) <= 2) && (sizeof(flag_type) > 1))>>
    : select_config<512, 14>
{};

// Based on data_type = int, flag_type = int8_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx942),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 4) && (sizeof(data_type) > 2)
                      && (sizeof(flag_type) <= 1))>> : select_config<512, 15>
{};

// Based on data_type = short, flag_type = rocprim::int128_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx942),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 2) && (sizeof(data_type) > 1)
                      && (sizeof(flag_type) <= 16) && (sizeof(flag_type) > 8))>>
    : select_config<384, 4>
{};

// Based on data_type = short, flag_type = int64_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx942),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 2) && (sizeof(data_type) > 1)
                      && (sizeof(flag_type) <= 8) && (sizeof(flag_type) > 4))>>
    : select_config<512, 7>
{};

// Based on data_type = short, flag_type = int
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx942),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 2) && (sizeof(data_type) > 1)
                      && (sizeof(flag_type) <= 4) && (sizeof(flag_type) > 2))>>
    : select_config<512, 14>
{};

// Based on data_type = short, flag_type = short
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx942),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 2) && (sizeof(data_type) > 1)
                      && (sizeof(flag_type) <= 2) && (sizeof(flag_type) > 1))>>
    : select_config<512, 30>
{};

// Based on data_type = short, flag_type = int8_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx942),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 2) && (sizeof(data_type) > 1)
                      && (sizeof(flag_type) <= 1))>> : select_config<512, 28>
{};

// Based on data_type = int8_t, flag_type = rocprim::int128_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx942),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 1) && (sizeof(flag_type) <= 16)
                      && (sizeof(flag_type) > 8))>> : select_config<384, 4>
{};

// Based on data_type = int8_t, flag_type = int64_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx942),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 1) && (sizeof(flag_type) <= 8)
                      && (sizeof(flag_type) > 4))>> : select_config<512, 7>
{};

// Based on data_type = int8_t, flag_type = int
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx942),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 1) && (sizeof(flag_type) <= 4)
                      && (sizeof(flag_type) > 2))>> : select_config<512, 15>
{};

// Based on data_type = int8_t, flag_type = short
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx942),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 1) && (sizeof(flag_type) <= 2)
                      && (sizeof(flag_type) > 1))>> : select_config<512, 28>
{};

// Based on data_type = int8_t, flag_type = int8_t
template<class data_type, class flag_type>
struct default_select_predicated_flag_config<
    static_cast<unsigned int>(target_arch::gfx942),
    data_type,
    flag_type,
    std::enable_if_t<(!bool(rocprim::is_floating_point<data_type>::value)
                      && (sizeof(data_type) <= 1) && (sizeof(flag_type) <= 1))>>
    : select_config<512, 24>
{};

} // end namespace detail

END_ROCPRIM_NAMESPACE

/// @}
// end of group primitivesmodule_deviceconfigs

#endif // ROCPRIM_DEVICE_DETAIL_CONFIG_DEVICE_SELECT_PREDICATED_FLAG_HPP_