Be careful - If the UA build date on your chip is older than WEEK 25 of 2017, then you might have one of the "marginal" Ryzen chips that SEGV's under high compile / work load (even on BIOS default settings)
You can find out what your UA build date is by looking at the Integrated Heat Spreader (it's stamped there) which requires removal of your HSF.
For example
UA 1725SUS
The 3rd and 4th digits is the YEAR, the 5th and 6th digit is the WEEK. You can test it out on your system by performing the following (Live USB method)
https://www.reddit.com/r/Amd/comments/6rwggi/ryzen_build_loop_compile_failures_under_linux/
If you get a SEGV in the build loop - then you may want to get an RMA from AMD (they'll most likely give you a new chip with a build date of 1725 or newer) otherwise you might end up chasing weird issues. ThreadRipper is not affected per AMD, most of them are built 27th+ week of 2017.
More info here.
gcc segmentation faults on Ryzen / Linux | Community
and here
AMD Confirms Linux Performance Marginality Problem Affecting Some, Doesn't Affect Epyc / TR - Phoronix