by andy99 · 3y ago · 0 comments
https://gist.github.com/rbitr/3b86154f78a0f0832e8bd171615236...
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.