Skip to content

Allow basic compiler modulenames to be specified as keys in optarch. #2387

New issue

Have a question about this project? Sign up for a free account to open an issue and contact its maintainers and the community.

By clicking “Sign up for ”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on ? Sign in to your account

Merged
merged 3 commits into from
Feb 1, 2018

Conversation

bartoldeman
Copy link
Contributor

Examples: 'GCCcore', 'icc', 'ifort'. They will be considered before
the compiler family ('Intel', etc).

Examples: 'GCCcore', 'icc', 'ifort'. They will be considered before
the compiler family ('Intel', etc).
@bartoldeman
Copy link
Contributor Author

@damianam this is pretty much doing what we discussed, considering the compiler module names as keys before the family.

Copy link
Member

@damianam damianam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That was indeed easy. Perfect, good job!

# no option for this compiler
else:
if isinstance(optarch, dict):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I find it odd the recheck for optarch being a dict. It makes sense, but I'd clarify it in the comment above. Something like:

# optarch hasn't changed, it is still a dict, which means that there is no option for this compiler

if optarch[current_compiler] == OPTARCH_GENERIC:
use_generic = True
else:
# first try module names, than the family in optarch
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

then, not than.

@damianam
Copy link
Member

lgtm!

@damianamdamianam merged commit 44577b6 into easybuilders:develop Feb 1, 2018
@bartoldemanbartoldeman deleted the optarch_module_name branch February 1, 2018 09:12
@boegelboegel added this to the 3.5.2 milestone Feb 28, 2018
@easybuilderseasybuilders deleted a comment from boegelbot Jul 26, 2018
Sign up for free to join this conversation on . Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants