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 <[email protected]> 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/>
