On 09/23/2011 06:40 AM, Jeff Squyres wrote:
> Unless there is an effort undertaken to standardize wrapper compiler flags, this is not going to happen. Indeed, as I mentioned in a prior email, some MPI implementations do not have wrapper compilers at all. This makes standardization difficult, if not impossible.
> Open MPI's attitude towards wrapper compilers has always been to assume as absolutely minimum as possible -- we add a single command line flag (--showme, although it has a few different forms). We pass *everything* else to the underlying compiler because there is a *huge* array of compilers out there that take a multitude of different compiler flags. We wouldn't want to possibly, unknowingly intercept one of them (even worse, use a flag that *today* has no conflict with compilers, but some future compiler release uses that same flag). Hence, we went with the minimalistic approach.
it's not unusual to use double-hyphen ('--') to separate options
intended for the wrapper from the options intended for the wrapped. so
you could have
wrapper --foo -- --foo
with the first --foo interpreted by the wrapper and the other one passed
down to whatever the downstream program is. with this scheme, there is
no fear of possibly, unknowingly intercepting any flag that would be
intended for the downstream code.