Skip to content

Commit

Permalink
Removed default values from all internal APIs in compute test kernels…
Browse files Browse the repository at this point in the history
…. Call chains updated accordingly.
  • Loading branch information
atatuzunerTT committed Jan 10, 2025
1 parent a686bf9 commit 7d471be
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions tests/tt_metal/tt_metal/test_kernels/compute/reduce_h.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
* argument is tested. Reference llk_pack_reduce_config_v2 for more details.
*/
template <bool at_start, PoolType reduce_type = REDUCE_OP, ReduceDim reduce_dim = REDUCE_DIM>
ALWI void dummy_init(uint32_t icb = 0, uint32_t icb_scaler = 1, uint32_t ocb = 16) {
ALWI void dummy_init(uint32_t icb, uint32_t icb_scaler, uint32_t ocb) {
#ifdef SHORT_INIT
UNPACK((llk_unpack_AB_hw_configure_disaggregated<DST_ACCUM_MODE>(icb, icb_scaler)));

Expand All @@ -44,7 +44,7 @@ void MAIN {
constexpr uint32_t Wt = get_compile_time_arg_val(1);
constexpr uint32_t NC = get_compile_time_arg_val(2);
constexpr bool at_start = get_compile_time_arg_val(3);
dummy_init<at_start>(tt::CBIndex::c_0, tt::CBIndex::c_2);
dummy_init<at_start>(tt::CBIndex::c_0, tt::CBIndex::c_2, tt::CBIndex::c_16);
#ifndef SHORT_INIT
reduce_init<at_start>(tt::CBIndex::c_0, tt::CBIndex::c_2);
#else
Expand Down
4 changes: 2 additions & 2 deletions tests/tt_metal/tt_metal/test_kernels/compute/reduce_hw.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
* argument is tested. Reference llk_pack_reduce_config_v2 for more details.
*/
template <bool at_start, PoolType reduce_type = REDUCE_OP, ReduceDim reduce_dim = REDUCE_DIM>
ALWI void dummy_init(uint32_t icb = 0, uint32_t icb_scaler = 1, uint32_t ocb = 16) {
ALWI void dummy_init(uint32_t icb, uint32_t icb_scaler, uint32_t ocb) {
#ifdef SHORT_INIT
UNPACK((llk_unpack_AB_hw_configure_disaggregated<DST_ACCUM_MODE>(icb, icb_scaler)));

Expand All @@ -44,7 +44,7 @@ void MAIN {
constexpr uint32_t Wt = get_compile_time_arg_val(1);
constexpr uint32_t NC = get_compile_time_arg_val(2);
constexpr bool at_start = get_compile_time_arg_val(3);
dummy_init<at_start>(tt::CBIndex::c_0, tt::CBIndex::c_2);
dummy_init<at_start>(tt::CBIndex::c_0, tt::CBIndex::c_2, tt::CBIndex::c_16);
#ifndef SHORT_INIT
reduce_init<at_start>(tt::CBIndex::c_0, tt::CBIndex::c_2);
#else
Expand Down
4 changes: 2 additions & 2 deletions tests/tt_metal/tt_metal/test_kernels/compute/reduce_w.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
* argument is tested. Reference llk_pack_reduce_config_v2 for more details.
*/
template <bool at_start, PoolType reduce_type = REDUCE_OP, ReduceDim reduce_dim = REDUCE_DIM>
ALWI void dummy_init(uint32_t icb = 0, uint32_t icb_scaler = 1, uint32_t ocb = 16) {
ALWI void dummy_init(uint32_t icb, uint32_t icb_scaler, uint32_t ocb) {
#ifdef SHORT_INIT
UNPACK((llk_unpack_AB_hw_configure_disaggregated<DST_ACCUM_MODE>(icb, icb_scaler)));

Expand All @@ -44,7 +44,7 @@ void MAIN {
constexpr uint32_t Wt = get_compile_time_arg_val(1);
constexpr uint32_t NC = get_compile_time_arg_val(2);
constexpr bool at_start = get_compile_time_arg_val(3);
dummy_init<at_start>(tt::CBIndex::c_0, tt::CBIndex::c_2);
dummy_init<at_start>(tt::CBIndex::c_0, tt::CBIndex::c_2, tt::CBIndex::c_16);
#ifndef SHORT_INIT
reduce_init<at_start>(tt::CBIndex::c_0, tt::CBIndex::c_2);
#else
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

// #include "debug/dprint.h"
inline void tilizeA_B_binary_init(
uint32_t icb0, uint32_t icb1, uint32_t block, uint32_t ocb = 16, uint32_t num_faces = 4, uint32_t face_r_dim = 16) {
uint32_t icb0, uint32_t icb1, uint32_t block, uint32_t ocb, uint32_t num_faces = 4, uint32_t face_r_dim = 16) {
UNPACK((llk_unpack_tilizeA_B_hw_configure_disaggregated<DST_ACCUM_MODE>(icb0, icb1)));
UNPACK((llk_unpack_tilizeA_B_init<true, true>(icb0, icb1, block, num_faces, face_r_dim, face_r_dim)));

Expand Down

0 comments on commit 7d471be

Please sign in to comment.