Re: Fastest Single-Unit Compile CPU

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 2025-01-24 at 13:01 +0100, Kai Song via Gcc-help wrote:
> Hello,
> 
> I seek advice on good CPUs and CPU benches that allow me finding a good CPU
> for compiling a single c++ compile unit with the G++ compiler.
> 
> Background:
> - Many features in my code only work exclusively with G++, hence I do not
> care in other compilers.
> - I sometimes need recompilation for a single sign flip in the project and
> that would take several minutes. Throwing (proportionately) money at it in
> order to make that quicker could be advantageous.

The phoronix.com website might give hardware suggestions
https://www.phoronix.com/

IBM is selling powerful Linux hardware. Maybe even renting some. Probably
https://www.supermicro.com/ and https://atos.net/ also

(look of course at https://top500.org/  if you can afford a 1USM$ or 1M€ super-
computer....)

During development you might not need to enable most optimizations if you do
have a reproducible and quick to run test. In other words, compile your
translation unit with g++ -O1 -g2 -Wall -Wextra for simple tests.

If compile time is an issue, consider spliting large C++ source code into
smaller C++ files (e.g. if you have a 6KLOC C++ file split that into two).

Once simple tests are passed, you could ssh to some powerful Linux server and
compile and link (maybe once a day) your software product with -O3 -flto -g1 and
run benchmarks remotely. 

It would be nice for us to understand what kind of software project you are
developing (it could be a competitor of https://www.cea.fr/energies/tripoli-4
...), for what operating systems and how many millions of C++ code lines (as
measured by Wheeler's https://dwheeler.com/sloccount/ utility).


regards
-- 
Basile STARYNKEVITCH           <basile@xxxxxxxxxxxxxxxxx>
8 rue de la Faïencerie
92340 Bourg-la-Reine,          France
http://starynkevitch.net/Basile & https://github.com/bstarynk 
& https://github.com/RefPerSys/RefPerSys/





[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux