<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Sat, Sep 6, 2014 at 6:03 PM, Barry Smith <span dir="ltr"><<a href="mailto:bsmith@mcs.anl.gov" target="_blank">bsmith@mcs.anl.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
How do you use ccache? Do you do this “weird” thing<br>
<br>
To install for the second method, do something like this:<br></blockquote><div><br></div><div>--with-cc='ccache gcc' --download-mpich</div><div><br></div><div>works fine.</div><div><br></div><div> Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
cp ccache /usr/local/bin/<br>
ln -s ccache /usr/local/bin/gcc<br>
ln -s ccache /usr/local/bin/g++<br>
ln -s ccache /usr/local/bin/cc<br>
ln -s ccache /usr/local/bin/c++<br>
<br>
Thanks<br>
<span class="HOEnZb"><font color="#888888"><br>
Barry<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
<br>
On Sep 6, 2014, at 5:50 PM, Jed Brown <<a href="mailto:jed@jedbrown.org">jed@jedbrown.org</a>> wrote:<br>
<br>
> Barry Smith <<a href="mailto:bsmith@mcs.anl.gov">bsmith@mcs.anl.gov</a>> writes:<br>
><br>
>> The problem with using different PETSC_ARCH for each branch is that<br>
>> when you switch the branches it will sometimes/often change an<br>
>> include file that many of the C files are dependent on so make<br>
>> gmake will require recompiling much of the library, with different<br>
>> working directories this will not happen.<br>
><br>
> I use ccache so that those "recompiles" take less than 10 seconds on<br>
> average. I don't think having a separate clone per branch is useful, so<br>
> I just have one clone and about 50 PETSC_ARCHes within it. Reconfigure<br>
> is usually not necessary unless you have to go way back in history.<br>
<br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>-- Norbert Wiener
</div></div>