lanl / Pavilion

HPC testing harness
BSD 3-Clause "New" or "Revised" License
16 stars 12 forks source link

2.0 - Module Manipulation #71

Closed pflarr closed 5 years ago

pflarr commented 6 years ago

Module Manipulation

The run and build sections of the config drive the generation of a build script, and the modules component of these set up what environment modules will be loaded for the test. For example, run scripts for this test will load gcc/6.4.0 and openmpi:

  run:
    modules: ['gcc/6.4.0', 'openmpi']

Swapping modules

Modules can also be swapped, as per the module swap command. To do this, give the module to be replaced followed by an arrow '->' and then the new module. This is important for systems with a default set of modules loaded that need only a bit of manipulation.

  run:
    # Swap intel for gcc, and load openmpi
    modules: ['intel -> gcc', 'openmpi']

Removing modules

Modules can also be removed from the environment, by prefixing the name with a dash '-'.

  build: 
    # Load intel and intel-mpi, but get rid of python.
    modules: ['intel', 'intel-mpi', '-python']
pflarr commented 5 years ago

Done and tested.