CASL / Futility

VERA Fortran Utilities
Other
44 stars 20 forks source link

Add build flag to instruct gcc to use pipes instead of intermediate files #229

Closed jpjones6 closed 4 years ago

jpjones6 commented 4 years ago

Using pipes (keeping needed files loaded in memory instead of writing to disk) tends to speed up compilation as less disk writing/reading is done. It does, however, tend to increase memory usage during compilation. The speedup is machine dependent.

aarograh commented 4 years ago

To questions to clarify:

  1. Did you succeed in getting this flag to filter down into Trilinos as well? I assume using the "general flags" instead of the "cxx flags" might accomplish that, but want to double check.
  2. If the machine does not have enough memory, does the behavior automatically just revert to as if the -pipe flag were not used?
stimpsonsg commented 4 years ago

Can we set this from the command line instead?

aarograh commented 4 years ago

We determined how to do this via commandline instead, so this change isn't needed. Furthermore, after testing on the MPACT CI, it seems that any differences from using -pipe are in the noise, so it's likely not worth pursuing any further.

Closing this PR since it's unneeded.