Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

2.0 - Dynamic Module Loads #51

Open
pflarr opened this issue Sep 5, 2018 · 1 comment
Open

2.0 - Dynamic Module Loads #51

pflarr opened this issue Sep 5, 2018 · 1 comment
Milestone

Comments

@pflarr
Copy link
Collaborator

pflarr commented Sep 5, 2018

One of the core problems test run into is the difference between environments, and especially the module environments, on various systems. In pavilion 2.0, both build scripts and run scripts can include a list of modules to load before commands are executed (See the related tickets below). The problem of how to load this modules remains. To fix this issue, there will be a plugin system for describing how to load modules.

By default, for every module specified, a simple 'module load <module_name/version>' line will be added to test build and test run scripts.

Module Handler Plugins

To override the defaults, a plugin will need to be created. The plugin base class will operate as follows.

Host List

The plugin class will include a list of hosts to which it applies. These will be checked on activation to eliminate plugin conflicts.

Module loaders

The class will include a dict of module loaders; functions that take the (os, host, network, module_version) and produce a list of commands to run to load that module and a list of environment variables to set. For example, for the cle6 module handler, we might include a loader for gcc that module swaps PrgEnv-intel for PrgEnv-gnu of the relevant version, and sets CC=cc. Thus, builds/test runs that ask for gcc on cray would end up with the right environment and the cray compiler wrapper.

@pflarr
Copy link
Collaborator Author

pflarr commented Jan 15, 2019

This wasn't implemented quite as described.

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

No branches or pull requests

1 participant