Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion projects/composablekernel/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,13 @@ function(_ck_gpu_target_string_to_id TARGET_STR OUT_VAR)
set(${OUT_VAR} "0x1153" PARENT_SCOPE)
elseif(_tgt MATCHES "^gfx11-generic$")
set(${OUT_VAR} "0x11FF" PARENT_SCOPE)
# GFX11.7
elseif(_tgt STREQUAL "gfx1170")
set(${OUT_VAR} "0x1170" PARENT_SCOPE)
elseif(_tgt STREQUAL "gfx1171")
set(${OUT_VAR} "0x1171" PARENT_SCOPE)
elseif(_tgt MATCHES "^gfx11-7-generic$")
set(${OUT_VAR} "0x117F" PARENT_SCOPE)
# GFX12
elseif(_tgt STREQUAL "gfx1200")
set(${OUT_VAR} "0x1200" PARENT_SCOPE)
Expand Down Expand Up @@ -406,7 +413,7 @@ if(NOT ENABLE_ASAN_PACKAGING)
elseif(NOT WIN32 AND ${hip_VERSION_FLAT} GREATER_EQUAL 600400000 AND ${hip_VERSION_FLAT} LESS 600443483)
set(CK_GPU_TARGETS "gfx908;gfx90a;gfx942;gfx1030;gfx1100;gfx1101;gfx1102;gfx1103;gfx1200;gfx1201;gfx950")
elseif(NOT WIN32 AND ${hip_VERSION_FLAT} GREATER_EQUAL 600443483 AND ${hip_VERSION_FLAT} LESS 700200000)
set(CK_GPU_TARGETS "gfx908;gfx90a;gfx942;gfx950;gfx10-3-generic;gfx11-generic;gfx12-generic")
set(CK_GPU_TARGETS "gfx908;gfx90a;gfx942;gfx950;gfx10-3-generic;gfx11-generic;gfx11-7-generic;gfx12-generic")
elseif(NOT WIN32 AND ${hip_VERSION_FLAT} GREATER_EQUAL 700200000)
set(CK_GPU_TARGETS "")
endif()
Expand Down
9 changes: 7 additions & 2 deletions projects/composablekernel/include/ck/ck.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@
defined(__gfx1152__) || defined(__gfx1153__) || defined(__gfx11_generic__)
#define __gfx11__
#endif
#if defined(__gfx1170__) || defined(__gfx1171__) || defined(__gfx11_7_generic__)
#define __gfx117__
#endif
#if defined(__gfx1200__) || defined(__gfx1201__) || defined(__gfx12_generic__)
#define __gfx120__
#endif
Expand All @@ -88,7 +91,7 @@
#define CK_BUFFER_RESOURCE_3RD_DWORD 0x00020000
#elif defined(__gfx101__) || defined(__gfx103__)
#define CK_BUFFER_RESOURCE_3RD_DWORD 0x31014000
#elif defined(__gfx11__) || defined(__gfx120__)
#elif defined(__gfx11__) || defined(__gfx120__) || defined(__gfx117__)
#define CK_BUFFER_RESOURCE_3RD_DWORD 0x31004000
#elif defined(__gfx125__)
#define CK_BUFFER_RESOURCE_3RD_DWORD 0
Expand All @@ -104,6 +107,8 @@
__builtin_amdgcn_processor_is("gfx1151") || \
__builtin_amdgcn_processor_is("gfx1152") || \
__builtin_amdgcn_processor_is("gfx1153") || \
__builtin_amdgcn_processor_is("gfx1170") || \
__builtin_amdgcn_processor_is("gfx1171") || \
__builtin_amdgcn_processor_is("gfx1200") || __builtin_amdgcn_processor_is("gfx1201")) \
? 0x31004000 \
: ((__builtin_amdgcn_processor_is("gfx1030") || \
Expand All @@ -127,7 +132,7 @@
#define CK_USE_AMD_V_DOT4_I32_I8
#elif defined(__gfx803__) || defined(__gfx900__) || defined(__gfx90c__) || defined(__gfx101__)
#define CK_USE_AMD_V_MAC_F32
#elif defined(__gfx11__) || defined(__gfx120__)
#elif defined(__gfx11__) || defined(__gfx117__) || defined(__gfx120__)
#define CK_USE_AMD_V_FMAC_F32
#define CK_USE_AMD_V_DOT2_F32_F16
#define CK_USE_AMD_V_DOT4_I32_I8_GFX11
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,11 @@ inline bool is_gfx11_supported()
ck::get_device_name() == "gfx1152" || ck::get_device_name() == "gfx1153";
}

inline bool is_gfx117_supported()
{
return ck::get_device_name() == "gfx1170" || ck::get_device_name() == "gfx1171";
}

inline bool is_gfx101_supported()
{
return ck::get_device_name() == "gfx1010" || ck::get_device_name() == "gfx1011" ||
Expand Down Expand Up @@ -126,7 +131,7 @@ inline bool is_xdl_wmma_supported()
{
return true;
}
else if(is_gfx120_supported() || is_gfx11_supported())
else if(is_gfx120_supported() || is_gfx117_supported() || is_gfx11_supported())
{
if constexpr((MPerXDL32 != 16) || (NPerXDL32 != 16))
{
Expand Down Expand Up @@ -176,7 +181,7 @@ inline bool is_xdl_wmma_k_supported()
}
return true;
}
else if(is_gfx120_supported())
else if(is_gfx120_supported() || is_gfx117_supported())
{
return (KPerBlock % 16 == 0) && (KPack % 8 == 0);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ struct BlockwiseGemmWmmaops_pipeline_base
static constexpr index_t MWaves = MPerBlock / (MRepeat * MPerWmma);
static constexpr index_t NWaves = NPerBlock / (NRepeat * NPerWmma);

#if defined(__gfx12__)
#if defined(__gfx12__) || defined(__gfx117__)
static constexpr index_t A_KRow = 2;
static constexpr index_t B_KRow = 2;
#else
Expand Down Expand Up @@ -285,7 +285,7 @@ struct BlockwiseGemmWmmaops_pipeline_base

const auto wmma_a_idx = wmma_gemm.CalculateAThreadOriginDataIndex();

#if defined(__gfx12__)
#if defined(__gfx12__) || defined(__gfx117__)
const auto wmma_krow = wmma_gemm.GetSubGroupId();
#else
const auto wmma_krow = 0;
Expand Down Expand Up @@ -314,7 +314,7 @@ struct BlockwiseGemmWmmaops_pipeline_base

const auto wmma_b_idx = wmma_gemm.CalculateBThreadOriginDataIndex();

#if defined(__gfx12__)
#if defined(__gfx12__) || defined(__gfx117__)
const auto wmma_krow = wmma_gemm.GetSubGroupId();
#else
const auto wmma_krow = 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ struct BlockwiseGemmWmmaops_pipeline_v1<BlockGemmPipelineScheduler::Intrawave,
a_blockwise_copy.RunWrite(a_block_desc, a_block_buf);
b_blockwise_copy.RunWrite(b_block_desc, b_block_buf);

#ifdef __gfx120__
#if defined(__gfx120__) || defined(__gfx117__)
constexpr index_t num_ds_write_inst =
HotLoopInstList::A_LDS_Write_Inst_Num + HotLoopInstList::B_LDS_Write_Inst_Num;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#endif
namespace ck {

#ifdef __gfx12__
#if defined(__gfx12__) || defined(__gfx117__)
template <index_t BlockSize,
typename FloatA,
typename FloatB,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ template <index_t BlockSize,
InMemoryDataOperationEnum CGlobalMemoryDataOperation_ = InMemoryDataOperationEnum::Set>
__device__ static bool constexpr IsValidGemmCompilationParameter()
{
#if defined(__gfx11__) || defined(__gfx12__)
#if defined(__gfx11__) || defined(__gfx12__) || defined(__gfx117__)
if constexpr(MPerXdl != 16 || NPerXdl != 16)
{
return false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ __device__ void device_grouped_conv_fwd_multiple_abd_xdl_cshuffle(
const Block2ETileMap block_2_ctile_map,
const ComputePtrOffsetOfBatch compute_ptr_offset_of_batch)
{
#if defined(__gfx9__) || defined(__gfx11__) || defined(__gfx12__)
#if defined(__gfx9__) || defined(__gfx11__) || defined(__gfx12__) || defined(__gfx117__)
if constexpr(GridwiseGemm::template IsValidCompilationParameter<>())
{
// offset base pointer for each work-group
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ __launch_bounds__(CK_MAX_THREAD_PER_BLOCK, MinimumOccupancy)
#endif
kernel_contraction_multiple_d_wmma_cshuffle_v3(typename DeviceOp::Argument karg)
{
#if(defined(__gfx11__) || defined(__gfx12__))
#if defined(__gfx11__) || defined(__gfx12__) || defined(__gfx117__)
static constexpr index_t NumDTensor = GridwiseOp::NumDTensor;

const index_t g_idx = amd_wave_read_first_lane(blockIdx.y);
Expand Down Expand Up @@ -831,7 +831,7 @@ struct DeviceBatchedContractionMultipleD_Wmma_CShuffle_V3

static bool IsSupportedArgument(const Argument& arg)
{
if(!(ck::is_gfx11_supported() || ck::is_gfx12_supported()))
if(!(ck::is_gfx11_supported() || ck::is_gfx12_supported() || ck::is_gfx117_supported()))
{
if(ck::EnvIsEnabled(CK_ENV(CK_LOGGING)))
{
Expand All @@ -840,7 +840,8 @@ struct DeviceBatchedContractionMultipleD_Wmma_CShuffle_V3
return false;
}

if(ck::is_gfx12_supported() && !GridwiseGemm::CheckValidityAWaveTransfer(arg.M, arg.K))
if((ck::is_gfx12_supported() || ck::is_gfx117_supported()) &&
!GridwiseGemm::CheckValidityAWaveTransfer(arg.M, arg.K))
{
if(ck::EnvIsEnabled(CK_ENV(CK_LOGGING)))
{
Expand All @@ -850,7 +851,8 @@ struct DeviceBatchedContractionMultipleD_Wmma_CShuffle_V3
return false;
}

if(ck::is_gfx12_supported() && !GridwiseGemm::CheckValidityBWaveTransfer(arg.N, arg.K))
if((ck::is_gfx12_supported() || ck::is_gfx117_supported()) &&
!GridwiseGemm::CheckValidityBWaveTransfer(arg.N, arg.K))
{
if(ck::EnvIsEnabled(CK_ENV(CK_LOGGING)))
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ __launch_bounds__(GridwiseGemm::MaxBlockSize, CK_MIN_BLOCK_PER_CU)
const ComputePtrOffsetOfBatch compute_ptr_offset_of_batch,
const Block2ETileMap block_2_etile_map)
{
#if defined(__gfx9__) || defined(__gfx11__) || defined(__gfx12__)
#if defined(__gfx9__) || defined(__gfx11__) || defined(__gfx12__) || defined(__gfx117__)
if constexpr(GridwiseGemm::template IsValidCompilationParameter<>())
{
__shared__ char p_shared[GridwiseGemm::GetSharedMemoryNumberOfByte(get_device_arch())];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ __launch_bounds__(CK_MAX_THREAD_PER_BLOCK, CK_MIN_BLOCK_PER_CU)
const ComputePtrOffsetOfBatch compute_ptr_offset_of_batch,
const Block2ETileMap block_2_etile_map)
{
#if defined(__gfx9__) || defined(__gfx11__) || defined(__gfx12__)
#if defined(__gfx9__) || defined(__gfx11__) || defined(__gfx12__) || defined(__gfx117__)
if constexpr(GridwiseGemm::template IsValidCompilationParameter<>())
{
const index_t num_blocks_per_batch =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ __launch_bounds__(GridwiseGemm::MaxBlockSize, CK_MIN_BLOCK_PER_CU)
const index_t batch_count,
const ComputeBasePtrOfStridedBatch compute_base_ptr_of_batch)
{
#if defined(__gfx9__) || defined(__gfx11__) || defined(__gfx12__)
#if defined(__gfx9__) || defined(__gfx11__) || defined(__gfx12__) || defined(__gfx117__)
if constexpr(GridwiseGemm::template IsValidCompilationParameter<>())
{
__shared__ char p_shared[GridwiseGemm::GetSharedMemoryNumberOfByte()];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ __launch_bounds__(GridwiseGemm::MaxBlockSize, CK_MIN_BLOCK_PER_CU)
const ComputePtrOffsetOfBatch compute_ptr_offset_of_batch,
const Block2ETileMap block_2_etile_map)
{
#if defined(__gfx9__) || defined(__gfx11__) || defined(__gfx12__)
#if defined(__gfx9__) || defined(__gfx11__) || defined(__gfx12__) || defined(__gfx117__)
if constexpr(GridwiseGemm::template IsValidCompilationParameter<>())
{
const index_t num_blocks_per_batch =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,9 @@ __launch_bounds__(CK_MAX_THREAD_PER_BLOCK, CK_MIN_BLOCK_PER_CU)
const ComputePtrOffsetOfBatch compute_ptr_offset_of_batch,
const Block2CTileMap block_2_ctile_map)
{
#if(defined(__gfx906__) || defined(__gfx908__) || defined(__gfx90a__) || defined(__gfx94__) || \
defined(__gfx101__) || defined(__gfx103__) || defined(__gfx11__) || defined(__gfx12__))
#if defined(__gfx906__) || defined(__gfx908__) || defined(__gfx90a__) || defined(__gfx94__) || \
defined(__gfx101__) || defined(__gfx103__) || defined(__gfx11__) || defined(__gfx12__) || \
defined(__gfx117__)

const index_t num_blocks_per_batch =
__builtin_amdgcn_readfirstlane(get_grid_size() / batch_count);
Expand Down Expand Up @@ -648,7 +649,8 @@ struct DeviceBatchedGemmMultipleD_Dl : public DeviceBatchedGemmMultiD<ALayout,
static bool IsSupportedArgument(const Argument& arg)
{
if(ck::get_device_name() == "gfx906" || ck::is_xdl_supported() ||
ck::is_gfx103_supported() || ck::is_gfx11_supported() || ck::is_gfx12_supported())
ck::is_gfx103_supported() || ck::is_gfx11_supported() || ck::is_gfx117_supported() ||
ck::is_gfx12_supported())
{
bool pass = true;
pass = pass && arg.K_ % K1 == 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ __launch_bounds__(GridwiseGemm::MaxBlockSize, CK_MIN_BLOCK_PER_CU)
const index_t batch_count,
const ComputeBasePtrOfStridedBatch compute_base_ptr_of_batch)
{
#if defined(__gfx9__) || defined(__gfx11__) || defined(__gfx12__)
#if defined(__gfx9__) || defined(__gfx11__) || defined(__gfx12__) || defined(__gfx117__)
if constexpr(GridwiseGemm::template IsValidCompilationParameter<>())
{
__shared__ char p_shared[GridwiseGemm::GetSharedMemoryNumberOfByte()];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ __launch_bounds__(GridwiseGemm::MaxBlockSize, CK_MIN_BLOCK_PER_CU)
const ComputeBasePrtOfBatch compute_base_ptr_of_batch_,
const Block2CTileMap block_2_ctile_map)
{
#if defined(__gfx9__) || defined(__gfx11__) || defined(__gfx12__)
#if defined(__gfx9__) || defined(__gfx11__) || defined(__gfx12__) || defined(__gfx117__)
if constexpr(GridwiseGemm::template IsValidCompilationParameter<>())
{
const index_t num_blocks_per_batch =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ __launch_bounds__(GridwiseGemm::MaxBlockSize, CK_MIN_BLOCK_PER_CU)
const ComputeBasePtrOfStridedBatch compute_base_ptr_of_batch,
const C0MatrixMask c0_matrix_mask)
{
#if defined(__gfx9__) || defined(__gfx11__) || defined(__gfx12__)
#if defined(__gfx9__) || defined(__gfx11__) || defined(__gfx12__) || defined(__gfx117__)
if constexpr(GridwiseGemm::template IsValidCompilationParameter<>())
{
__shared__ char p_shared[GridwiseGemm::GetSharedMemoryNumberOfByte()];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ __launch_bounds__(GridwiseGemm::MaxBlockSize, CK_MIN_BLOCK_PER_CU)
const ComputeBasePtrOfStridedBatch compute_base_ptr_of_batch,
const C0MatrixMask c0_matrix_mask)
{
#if defined(__gfx9__) || defined(__gfx11__) || defined(__gfx12__)
#if defined(__gfx9__) || defined(__gfx11__) || defined(__gfx12__) || defined(__gfx117__)
if constexpr(GridwiseGemm::template IsValidCompilationParameter<>())
{
__shared__ char p_shared[GridwiseGemm::GetSharedMemoryNumberOfByte()];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ __launch_bounds__(GridwiseGemm::MaxBlockSize, CK_MIN_BLOCK_PER_CU)
#endif
kernel_batched_gemm_xdlops_v2r3(const typename DeviceOp::Argument karg)
{
#if defined(__gfx9__) || defined(__gfx11__) || defined(__gfx12__)
#if defined(__gfx9__) || defined(__gfx11__) || defined(__gfx12__) || defined(__gfx117__)
if constexpr(GridwiseGemm::template IsValidCompilationParameter<>())
{
const index_t num_blocks_per_batch =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ __launch_bounds__(GridwiseGemm::MaxBlockSize, CK_MIN_BLOCK_PER_CU)
e_grid_desc_mblock_mperblock_nblock_nperblock,
const Block2ETileMap block_2_etile_map)
{
#if defined(__gfx9__) || defined(__gfx11__) || defined(__gfx12__)
#if defined(__gfx9__) || defined(__gfx11__) || defined(__gfx12__) || defined(__gfx117__)
if constexpr(GridwiseGemm::template IsValidCompilationParameter<>())
{
__shared__ char p_shared[GridwiseGemm::GetSharedMemoryNumberOfByte(get_device_arch())];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ __launch_bounds__(GridwiseGemm::MaxBlockSize, CK_MIN_BLOCK_PER_CU)
e_grid_desc_mblock_mperblock_nblock_nperblock,
const Block2ETileMap block_2_etile_map)
{
#if defined(__gfx9__) || defined(__gfx11__) || defined(__gfx12__)
#if defined(__gfx9__) || defined(__gfx11__) || defined(__gfx12__) || defined(__gfx117__)
if constexpr(GridwiseGemm::template IsValidCompilationParameter<>())
{
__shared__ char p_shared[GridwiseGemm::GetSharedMemoryNumberOfByte(get_device_arch())];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ __launch_bounds__(CK_MAX_THREAD_PER_BLOCK, CK_MIN_BLOCK_PER_CU)
const CElementwiseOperation c_element_op,
const Block2CTileMap block_2_ctile_map)
{
#if defined(__gfx9__) || defined(__gfx11__) || defined(__gfx12__)
#if defined(__gfx9__) || defined(__gfx11__) || defined(__gfx12__) || defined(__gfx117__)
if constexpr(GridwiseGemm::template IsValidCompilationParameter<>())
{
const index_t num_blocks_per_batch =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1398,7 +1398,7 @@ struct DeviceConvNdBwdDataNwcKxcNwk_Dl
{
// check device
if(!(ck::get_device_name() == "gfx906" || ck::is_gfx103_supported() ||
ck::is_gfx11_supported() || ck::is_gfx12_supported()))
ck::is_gfx11_supported() || ck::is_gfx117_supported() || ck::is_gfx12_supported()))
{
return false;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,7 @@ struct DeviceFpAintBGemm_Wmma_CShuffle : public DeviceGemm_dequantB<ALayout,

static bool IsSupportedArgument(const Argument& arg)
{
if(ck::is_gfx11_supported() || ck::is_gfx12_supported())
if(ck::is_gfx11_supported() || ck::is_gfx117_supported() || ck::is_gfx12_supported())
{
if constexpr(!(is_same_v<AccDataType, float> || is_same_v<AccDataType, ck::half_t> ||
is_same_v<AccDataType, int32_t>))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,7 @@ struct DeviceGemmDl : public DeviceGemm<ALayout,
}

if(ck::get_device_name() == "gfx906" || ck::is_gfx103_supported() ||
ck::is_gfx11_supported() || ck::is_gfx12_supported())
ck::is_gfx11_supported() || ck::is_gfx117_supported() || ck::is_gfx12_supported())
{
return GridwiseGemm::CheckValidity(
arg.a_grid_desc_k0_m_k1_, arg.b_grid_desc_k0_n_k1_, arg.c_grid_desc_m_n_);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,8 @@ struct DeviceGemmDpp : public DeviceGemm<ALayout,

static bool IsSupportedArgument(const Argument& karg)
{
if(ck::is_gfx103_supported() || ck::is_gfx11_supported() || ck::is_gfx12_supported())
if(ck::is_gfx103_supported() || ck::is_gfx11_supported() || ck::is_gfx117_supported() ||
ck::is_gfx12_supported())
{
return GridwiseGemm::CheckValidity(karg);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ __launch_bounds__(CK_MAX_THREAD_PER_BLOCK, CK_MIN_BLOCK_PER_CU)
const Block2CTileMap block_2_ctile_map)
{
#if(defined(__gfx906__) || defined(__gfx9__) || defined(__gfx101__) || defined(__gfx103__) || \
defined(__gfx11__) || defined(__gfx12__))
defined(__gfx11__) || defined(__gfx117__) || defined(__gfx12__))

constexpr index_t shared_block_size =
GridwiseGemm::GetSharedMemoryNumberOfByte() / sizeof(ABDataType);
Expand Down Expand Up @@ -552,7 +552,8 @@ struct DeviceGemmMultipleD_Dl : public DeviceGemmMultipleD<ALayout,
static bool IsSupportedArgument(const Argument& arg)
{
if(ck::get_device_name() == "gfx906" || ck::is_xdl_supported() ||
ck::is_gfx103_supported() || ck::is_gfx11_supported() || ck::is_gfx12_supported())
ck::is_gfx103_supported() || ck::is_gfx11_supported() || ck::is_gfx117_supported() ||
ck::is_gfx12_supported())
{
return GridwiseGemm::CheckValidity(
arg.a_grid_desc_k0_m_k1_, arg.b_grid_desc_k0_n_k1_, arg.e_grid_desc_m_n_);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ __launch_bounds__(CK_MAX_THREAD_PER_BLOCK, CK_MIN_BLOCK_PER_CU)
const Block2ETileMap block_2_etile_map,
index_t NRaw)
{
#if defined(__gfx9__) || defined(__gfx12__)
#if defined(__gfx9__) || defined(__gfx12__) || defined(__gfx117__)
if constexpr(GridwiseGemmWelford::template IsValidCompilationParameter<>())
{
__shared__ char p_shared[GridwiseGemmWelford::GetSharedMemoryNumberOfByte()];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ __launch_bounds__(GridwiseGemm::MaxBlockSize, CK_MIN_BLOCK_PER_CU)
const RsGridDescriptor_MBlock_MPerBlock rs_grid_desc_mblock_mperblock,
const Block2ETileMap block_2_etile_map)
{
#if defined(__gfx9__) || defined(__gfx11__) || defined(__gfx12__)
#if defined(__gfx9__) || defined(__gfx11__) || defined(__gfx12__) || defined(__gfx117__)
if constexpr(GridwiseGemm::template IsValidCompilationParameter<>())
{
__shared__ char p_shared[GridwiseGemm::GetSharedMemoryNumberOfByte(get_device_arch())];
Expand Down
Loading
Loading