<div dir="ltr">I configured MPI with CC="ccache gcc"<div><br></div><div>knepley/feature-dm-remove-hybrid *$:/PETSc3/petsc/petsc-dev$ /PETSc3/petsc/bin/mpicc -show<br>/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<br>h -lopa -lmpl -lpthread<br></div><div><br></div><div>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.</div><div><br></div><div>   Matt</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Jan 17, 2020 at 11:29 AM Patrick Sanan <<a href="mailto:patrick.sanan@gmail.com">patrick.sanan@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">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? </blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>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><br></div><div><a href="http://www.cse.buffalo.edu/~knepley/" target="_blank">https://www.cse.buffalo.edu/~knepley/</a><br></div></div></div></div></div></div></div>