132 points · by luu · 11y ago · 10 comments
Its amazing that he took the time to make an assembler. Also, I'm left wondering how much performance he tan gain from his tool compared to the Nvidia supplied toolchain.
In his Introduction[1] wiki page, he says that he studied sgemm implementations and came to the conclusion that NVidia is not using PTX, but an assembler for the real ISA which is not distributed to developers. He claims that his sgemm implementation is almost 5% faster than NVidia's and its faster than anything that can be done in PTX.
[1] https://github.com/NervanaSystems/maxas/wiki/Introduction
It would be great if nVidia released more documentation, because chances are developers could squeeze even more performance out of their hardware that way.
A few years ago Michael Abrash wrote a wonderful article[1] on the Larrabee project, by Intel, which ultimately resulted not on a graphics card, as he intended, but on a "processing card"[2][3]. Of course, anything you read by Abrash in that topic will be more than interesting.
* Intel HD GPUs may or may no be VLIW, I have never been able to find detailed specs of their architecture.
[1] http://www.drdobbs.com/parallel/a-first-look-at-the-larrabee...
[2] http://en.wikipedia.org/wiki/Larrabee_%28microarchitecture%2...
compare NVIDIA's own cuDNN R2 versus NervanaSys-16 and NervanaSys-32. Pretty impressive!
I've also tried out his GEMM implementation on a GTX 980. Seems like it can be up to twice as fast as the one from cuBLAS for some matrix sizes.