by atq2119 · 6y ago · 0 comments
Oh, and buy a Threadripper. Seriously, you won't regret it.
[0] TableGen is LLVM's internal DSL swiss army knife. You can separately enable optimizations for TableGen independently of optimizations in the resulting LLVM builds, which you should basically always do unless you're working on TableGen itself.
Do you have a trick to link serially? I usually just do a `ninja -j 1` after the main build has failed.
[0]: https://github.com/icecc/icecream [1]: https://github.com/mozilla/sccache
Threadrippers seem really nice, but I did this on my laptop, not a desktop. Plus, when linking with debug symbols, my 16GB of RAM is by far a bigger limit than my four cores; I can't even run two link processes simultaneously without one of them being OOM killed (if I'm lucky).
How much difference are we talking? Do you have a concrete Intel CPU you can compare against to give ballpark numbers? And is this with various mitigations enabled or disabled?
Threadripper 3960x & 3970x from Nov 2019:
https://www.phoronix.com/scan.php?page=article&item=amd-linu...
^ <2min to compile LLVM 6
Core i9 9900K from Oct 2018:
https://www.phoronix.com/scan.php?page=article&item=intel-co...
^ here’s another, to give you an idea of how things have changed in the last ~year or so
For the article funny it refers to lisp.
Could maybe could you share your setup/workflow? For example do you use any IDEs? I'm trying to use Clion but it seems 16GB of RAM is not enough.
Any tips would be appreciated :)