Skip to content

Move initialisation in system compiler/mpi easyblocks to the prepare step#1282

Merged
boegel merged 8 commits intoeasybuilders:developfrom
ocaisa:systemmpi_prepare_step
Jan 11, 2018
Merged

Move initialisation in system compiler/mpi easyblocks to the prepare step#1282
boegel merged 8 commits intoeasybuilders:developfrom
ocaisa:systemmpi_prepare_step

Conversation

@ocaisa
Copy link
Copy Markdown
Member

@ocaisa ocaisa commented Oct 27, 2017

Some of the initialisation in the systemcompiler and systemmpi easyblocks was done unnecessarily early and is causing test failures in the easyconfigs repo (see easybuilders/easybuild-easyconfigs#5242 (comment) ).
Moving these initialisations to the prepare_step avoids these failures and also makes more sense.

"""Extra initialization: keep track of values that may change due to modifications to the version."""
super(SystemCompiler, self).__init__(*args, **kwargs)

# fix installdir and module names (may differ because of changes to version)
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.

@ocaisa This doesn't make sense (anymore?), since we didn't touch self.cfg['version'] at all? Neither did we before you reshuffled things (we only do in make_module_step and make_module_extend_modpath, but neither of those affect the module name or the install directory?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I think I was just preserving what was originally there, I need to dig a bit to understand the issue. Do you mean that all of this can be moved to make_module_step?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Ok, I think you are right, I can't see any any reason for the mns related stuff, we only need self.orig_version and self.orig_installdir

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.

Indeed, so let's trash it.

That was probably needed at some point when we fiddled with self.cfg['version'] earlier on rather than only in make_module_step.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Done

@boegel boegel added this to the 3.5.1 milestone Jan 11, 2018
@boegel boegel added the bug fix label Jan 11, 2018
super(SystemCompiler, self).__init__(*args, **kwargs)

# Keep track of original values of vars that are subject to change, for restoring later.
# The version is determined/matched from the installation and the installdir is determined from the system (the original is used
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.

line too long, fixed in ocaisa#13, should then be good to go in

@boegel boegel merged commit 847031d into easybuilders:develop Jan 11, 2018
@ocaisa ocaisa deleted the systemmpi_prepare_step branch October 27, 2021 10:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants