def construct_parser(self): parser = super(TargetCreateCommand, self).construct_parser() group = parser.add_argument_group('host arguments') group.add_argument('--host-compilers', help="select all host compilers automatically from the given family", metavar='<family>', dest='host_family', default=host.preferred_compilers().name, choices=CompilerFamily.family_names()) group = parser.add_argument_group('Message Passing Interface (MPI) arguments') group.add_argument('--mpi-compilers', help="select all MPI compilers automatically from the given family", metavar='<family>', dest='mpi_family', default=host.preferred_mpi_compilers().name, choices=MpiCompilerFamily.family_names()) return parser
def preferred(cls): """Return the host's preferred MPI compiler family.""" from tau.cf.target import host return host.preferred_mpi_compilers()