3 ms·
When I saw this a few weeks ago it set off a lot of thinking about compilers and ML. Even the unoptimized C version is 10x slower than the one that is painstak
by parhamn 5y ago
When I saw this a few weeks ago it set off a lot of thinking about compilers and ML.
Even the unoptimized C version is 10x slower than the one that is painstakingly optimized.
Some of this performance gain will certain be achievable by ML/AI assisted compilers and translators. In that case, even a 2x speedup would be game changing. Is anyone using ML in compilers yet? The part where you verify the code still does what you wanted it to do seems trickiest.
- m3at 5y ago> Is anyone using ML in compilers yet? Yes :) Check out TVM for something mainstream: http://tvm.apache.org/ http://tvm.apache.org/ And LibNC for something esoteric (but elegant): https://bellard.org/libnc/ https://bellard.org/libnc/
- lovasoa 5y agoThe question was about the use of ML in compilers, not the use of compilers in ML. It was more about things like http://compilerai.apps.iitd.ac.in/ http://compilerai.apps.iitd.ac.in/
- m3at 5y agoOh indeed I misread, thanks for the correction. Note though that TVM is also using ML in the compiler: https://arxiv.org/abs/2006.06762 https://arxiv.org/abs/2006.06762