by physicsguy · 3y ago · 0 comments
But yes I agree, at some point it's always going to be back to something more customized.
There is no universal optimal algorithm.
if (dims in range A)
gemm_implA
else if (dims in range B)
gemm_implB
else if (dims in range C)
gemm_implC
// several more implementations...
The immediate call function is invariably a switch over several implementations, and by the time you reach that call, you have actual knowledge of dimensions.