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

Get module executables from path loaded by environment modules #439

Merged
merged 7 commits into from
May 19, 2024

Commits on May 3, 2024

  1. Get module executables from path loaded by environment modules

    - Move setting executable paths in Model class to Experiment.setup()
    - Inspect user modules (specified in config.yaml) to changes to PATH - The modules are restricted to user module directories defined in config.yaml
    - If exe is not an absolute path, search along above paths
    jo-basevi committed May 3, 2024
    Configuration menu
    Copy the full SHA
    b725b82 View commit details
    Browse the repository at this point in the history
  2. Fix codestyle

    jo-basevi committed May 3, 2024
    Configuration menu
    Copy the full SHA
    3bffb9e View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    5694dc3 View commit details
    Browse the repository at this point in the history

Commits on May 6, 2024

  1. Expand model exexutable path for collate executable

    - Refactor experiment module and model expand executable path functions
    - Run module setup as part of collate
    - Ignore module paths when setting executable path in model.build
    jo-basevi committed May 6, 2024
    Configuration menu
    Copy the full SHA
    9d0e85d View commit details
    Browse the repository at this point in the history

Commits on May 7, 2024

  1. Add checks for user modules

    - Loading user modules and modulepaths in experiment.setup to check if multiple modules are available
    - In collate, only load user modules so load_modules() is run, only when mpi modules are needed
    - Changed inspecting path over all modulepaths (including the ones added using `module use`) to reflect the module that will actually be loaded
    jo-basevi committed May 7, 2024
    Configuration menu
    Copy the full SHA
    7b7db96 View commit details
    Browse the repository at this point in the history
  2. Fix handling when PATH set by modules is not defined

    - When searching paths for executable, check if file is executable
    jo-basevi committed May 7, 2024
    Configuration menu
    Copy the full SHA
    6ce00f9 View commit details
    Browse the repository at this point in the history

Commits on May 14, 2024

  1. Update envmod.setup_user_modules to inspect PATH and LOADEDMODULES be…

    …fore/after loading modules
    jo-basevi committed May 14, 2024
    Configuration menu
    Copy the full SHA
    bbcd943 View commit details
    Browse the repository at this point in the history