Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set transpose to false for unpack untilize #43

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
1 change: 1 addition & 0 deletions llk_lib/llk_unpack_untilize.h
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ inline void _llk_unpack_untilize_hw_configure_(const std::uint32_t unpack_src_fo
}

inline void _llk_unpack_untilize_init_(const std::uint32_t unpack_dst_format, const std::uint32_t tile_size, const std::uint32_t face_r_dim = FACE_R_DIM, const std::uint32_t num_faces = 4) {
cfg_reg_rmw_tensix<THCON_SEC0_REG2_Haloize_mode_RMW>(0);

const std::uint32_t unpA_ch1_x_stride = (unpack_dst_format&0x3) == (std::uint32_t) DataFormat::Float32 ? 4 : (unpack_dst_format&0x3) == (std::uint32_t) DataFormat::Float16 ? 2 : 1;
const std::uint32_t unpA_ch1_y_stride = FACE_R_DIM*unpA_ch1_x_stride;
Expand Down
Loading