[petsc-dev] ccache tips?

Matthew Knepley knepley at gmail.com
Fri Jan 17 10:32:35 CST 2020


I configured MPI with CC="ccache gcc"

knepley/feature-dm-remove-hybrid *$:/PETSc3/petsc/petsc-dev$
/PETSc3/petsc/bin/mpicc -show
/Users/knepley/MacSoftware/bin/ccache gcc -Qunused-arguments
-fstack-protector -Qunused-arguments -g3 -Wl,-flat_namespace
-I/PETSc3/petsc/include -L/PETSc3/petsc/lib -lpmpich -lmpic
h -lopa -lmpl -lpthread

and then used --with-mpi-dir. This is the way to go if you do multiple
ARCHes. Have not had a problem on OSX or Linux. Works with all packages.

   Matt

On Fri, Jan 17, 2020 at 11:29 AM Patrick Sanan <patrick.sanan at gmail.com>
wrote:

> I'm shamefully not using ccache. How do I do it? Is it as simple as
> ./configure --with-cc="ccache gcc" --with-cxx="ccache g++"? Works on OS X
> and various Linuxes? Any known issue with external packages or otherwise?



-- 
What most experimenters take for granted before they begin their
experiments is infinitely more interesting than any results to which their
experiments lead.
-- Norbert Wiener

https://www.cse.buffalo.edu/~knepley/ <http://www.cse.buffalo.edu/~knepley/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20200117/1aa1ad18/attachment.html>


More information about the petsc-dev mailing list