Fixing numerical error, and interchange preshuffle configs to match with flatmm (#2515)

This commit is contained in:
Khushbu Agarwal
2025-07-16 22:33:03 -07:00
committed by GitHub
parent 722c22fb15
commit 579bd73435
4 changed files with 16 additions and 8 deletions

View File

@@ -220,7 +220,7 @@ int run_gemm_example_prec_type(std::string a_layout, std::string b_layout, int a
auto [result, arg_parser] = create_args(argc, argv);
bool preshuffle = GemmConfig::Preshuffle;
if(preshuffle && a_layout != "R" && b_layout != "C")
if(preshuffle && (a_layout != "R" || b_layout != "C"))
{
throw std::runtime_error(
"Preshuffle is supported only for A(Row major), B(column major) input matrices!");