Skip to content

Conversation

@vkarak
Copy link
Contributor

@vkarak vkarak commented Nov 19, 2020

When modules are mapped with the -M option and there are conflicts in the replacement sequence of modules, emit the the module load and unload commands in the correct order.

Fixes #1274.

@vkarak vkarak added this to the ReFrame sprint 20.17 milestone Nov 19, 2020
@vkarak vkarak requested review from teojgo and victorusu November 19, 2020 23:14
@vkarak vkarak self-assigned this Nov 19, 2020
@vkarak vkarak force-pushed the bugfix/treat-conflicts-module-mappings branch from 79d3956 to 576ba91 Compare November 19, 2020 23:19
- The scenario is invalid for this modules system.
@vkarak vkarak requested a review from ekouts November 23, 2020 09:00
Copy link
Contributor

@teojgo teojgo left a comment

Choose a reason for hiding this comment

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

Maybe also change the documentation for emit_load_commands and emit_unload_commands

@vkarak
Copy link
Contributor Author

vkarak commented Nov 23, 2020

Maybe also change the documentation for emit_load_commands and emit_unload_commands

You mean the fact that they do not take into account anymore the module mapping?

@teojgo
Copy link
Contributor

teojgo commented Nov 23, 2020

Maybe also change the documentation for emit_load_commands and emit_unload_commands

You mean the fact that they do not take into account anymore the module mapping?

No, I mean you should use plural here since you get a list of commands:
https://github.com/eth-cscs/reframe/blob/76adeea3a17fc268374d270cc2e044e1a19e6214/reframe/core/modules.py#L351

@vkarak vkarak requested a review from teojgo November 23, 2020 18:32
Copy link
Contributor

@teojgo teojgo left a comment

Choose a reason for hiding this comment

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

Lgtm

@vkarak vkarak merged commit 9354331 into reframe-hpc:master Nov 23, 2020
@vkarak vkarak deleted the bugfix/treat-conflicts-module-mappings branch November 23, 2020 19:03
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.

Module conflicts are ignored in module mappings

2 participants