Comment

Comment by Lerc

By overhead I'm talking about the things that have to be done supplementary to the algorithm.

While there are complex state-of-the-art algorithms, those algorithms exist for everyone. The overhead is the bit that had to be done to make the algorithm work.

For instance for sorting a list of strings the algorithm might be quick sort. The overhead would be in the efficiency of your string compare.

For matmul I'm not sure what your overhead is beyond moving memory, multiplying, and adding. A platform touting a memory bandwidth and raw compute advantage should have that covered. Where is the performance being lost?

I guess the only real options are stalls, unnecessary copies, or unnecessary computations.

parent Lerc 1 year ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton