Thanks!

Setting the cache size fixed it. I'm not sure whether setting
CCACHE_BASEDIR had any effect, but it likely did for switching between
branches.

Now I get this when building after `make clean` and switching branches:

real0m21.423s
user0m54.679s
sys0m6.601s

Thanks! :-)

--
Anders


On Mon, Jun 02, 2014 at 03:46:56PM +0200, Martin Sandve Alnæs wrote:
> You also need to run (once)
>   ccache -M 8 GB
> (or larger, sets the cache size).
>
> And possibly add something to your path.
> Run which gcc to see if it's pointing to the ccache hook or the original gcc.
>
> Run ccache -s to see if it actually does something.
>
>
>
>
> On 2 June 2014 15:11, Johan Hake <[email protected]> wrote:
>
>     Have you set:
>
>     export CCACHE_BASEDIR=$HOME
>
>     Johan
>
>
>     On Mon, Jun 2, 2014 at 2:44 PM, Anders Logg <[email protected]> wrote:
>
>         I have started using ccache to build/rebuild DOLFIN and wanted to ask
>         if the following numbers look reasonable.
>
>         Time for `make -j5 install` after previous build and `make clean`:
>
>         real3m4.661s
>         user11m59.574s
>         sys0m33.240s
>
>         Time for `make -j5 install` after building another branch, then
>         changing back and doing `make clean`:
>
>         real3m40.268s
>         user14m56.854s
>         sys0m43.644s
>
>         Both cases are 10 minutes+. Is this reasonable? I was expecting much
>         faster build times.
>
>
>
>
>     _______________________________________________
>     fenics mailing list
>     [email protected]
>     http://fenicsproject.org/mailman/listinfo/fenics
>
>
>
_______________________________________________
fenics mailing list
[email protected]
http://fenicsproject.org/mailman/listinfo/fenics

Reply via email to