'Return a list of available CrayPE CPU targets.'

def _avail_targets(self):

    if (getattr(self, '_craype_targets', None) is None):
        module = get_module_cmd()
        output = module('avail', '-t', 'craype-', output=str, error=str)
        craype_modules = _get_modules_in_modulecmd_output(output)
        self._craype_targets = targets = []
        _fill_craype_targets_from_modules(targets, craype_modules)
    return self._craype_targets
