Skip to content

fix handling of generate_standalone_module in SystemCompiler & SystemMPI easyblocks#1261

Merged
boegel merged 3 commits intoeasybuilders:developfrom
ocaisa:systemmpi
Oct 11, 2017
Merged

fix handling of generate_standalone_module in SystemCompiler & SystemMPI easyblocks#1261
boegel merged 3 commits intoeasybuilders:developfrom
ocaisa:systemmpi

Conversation

@ocaisa
Copy link
Copy Markdown
Member

@ocaisa ocaisa commented Oct 11, 2017

Do not overwrite option in easyconfig, instead ignore it and print an explanatory warning

@ocaisa
Copy link
Copy Markdown
Member Author

ocaisa commented Oct 11, 2017

Required for tests to pass in easybuilders/easybuild-easyconfigs#413

elif self.cfg['name'] in ['ifort']:
guesses = EB_ifort.make_module_req_guess(self)
if self.compiler_prefix in ['/usr', '/usr/local']:
# Force off adding paths to module since unloading such a module would be a potential shell killer
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

comment is incorrect

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

nvm

guesses = EB_ifort.make_module_req_guess(self)
if self.compiler_prefix in ['/usr', '/usr/local']:
# Force off adding paths to module since unloading such a module would be a potential shell killer
self.log.warning("Ignoring option 'generate_standalone_module' since installation prefix is %s",
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

maybe use print_warning rather than log.warning?

self.compiler_prefix)
else:
raise EasyBuildError("I don't know how to generate module var guesses for %s", self.cfg['name'])
if self.cfg['name'] in ['GCC','GCCcore']:
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This should not be indented under else, should always be done regardless of compiler_prefix in /usr?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

nvm, that's the whole point of the /usr check :)

@boegel boegel added this to the 3.4.1 milestone Oct 11, 2017
@boegel boegel changed the title Do not overwrite option in easyconfig… fix handling of generate_standalone_module in SystemCompiler & SystemMPI easyblocks Oct 11, 2017
@boegel
Copy link
Copy Markdown
Member

boegel commented Oct 11, 2017

lgtm, thanks @ocaisa!

@boegel boegel merged commit c14edb3 into easybuilders:develop Oct 11, 2017
@ocaisa ocaisa mentioned this pull request Oct 12, 2017
@ocaisa ocaisa deleted the systemmpi branch October 16, 2017 09:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants