Skip to content

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!

use_generic = True
# 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

damianam commented Feb 1, 2018

lgtm!

@damianam damianam merged commit 44577b6 into easybuilders:develop Feb 1, 2018
@bartoldeman bartoldeman deleted the optarch_module_name branch February 1, 2018 09:12
@boegel boegel added this to the 3.5.2 milestone Feb 28, 2018
@easybuilders easybuilders deleted a comment from boegelbot Jul 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants