Repository navigation
fix:bf16x3:enable all instances on gfx950 - #3248
Conversation
|
Can we centralize this architecture check instead of scattering #if defined(gfx950) blocks throughout the instance files In include/ck_tile/core/arch/arch.hpp, we have a similar function CK_TILE_HOST_DEVICE constexpr index_t get_smem_capacity()
{
#if defined(__gfx950__)
return 163840;
#else
return 65536;
#endif
}Something like adding a namespace ck::tensor_operation::device::arch_config {
constexpr index_t get_conv_k_per_block() {
#if defined(__gfx950__)
return 32;
#else
return 16;
#endif
}
}easier to maintain if there are multiple arch(s) with different suitable k values. If not, I'd atleast consider movie the ifdef condition to the top of the file. It looks awkward when its defined in the middle. |
|
@AviralGoelAMD Sorry, I missed your comments before. |
* fix:bf16x3:enable all instances on gfx950 * fix clang-format fail * fix clang-format fail * fix:modified wrong params previously
Proposed changes
BF16x3 share same instances as tf32/fp32 on gfx942. While some cases are not suitable for this instruction which introduce build fail on gfx950 platform. This PR is to fix those build errors and enable all instances on gfx950 similar to gfx942.
Checklist
Please put an
xinto the boxes that apply. You can also fill these out after creating the PR. If you're not sure, please don't hesitate to ask.clang-formaton all changed filesDiscussion
If this is a relatively large or complex change, feel free to start a discussion by explaining why you chose the solution you did and what alternatives you considered