Skip to content

WIP: use cotire to speed up recompilation

Kilian Lackhove requested to merge lackhove/nektar:feature/cotire into master

right now, i only enabled it for the libraries since some applications provoke lots of errors.

This saves between 1 and three minutes when recompiling, e.g. on
a laptop with a i7-5500U (2 cores + HT)

master run 0: 13:56.80
master run 1: 14:11.62
cotire run 0: 14:28.88
cotire run 1: 11:18.76

or, on a workstation with a Ryzen 1700X (8 cores + HT):

master run 0: 3:20,34
master run 1: 3:12,71
cotire run 0: 3:21,36
cotire run 1: 2:14,30


results obtained with:

$ CC=/usr/bin/clang CXX=/usr/bin/clang++ FC=/usr/bin/gfortran cmake ../../nektar
$ rm -r library
$ # run 0
$ time CC=/usr/bin/clang CXX=/usr/bin/clang++ FC=/usr/bin/gfortran make -j $(nproc) APESolver
$ find -iname "*.o" -delete
$ # run 1
$ time CC=/usr/bin/clang CXX=/usr/bin/clang++ FC=/usr/bin/gfortran make -j $(nproc)17 APESolver
Edited by Chris Cantwell

Merge request reports