https://github.com/chaste/dependency-modules

Environment modules for Chaste dependencies

https://github.com/chaste/dependency-modules

Science Score: 26.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (13.2%) to scientific vocabulary
Last synced: 6 months ago · JSON representation

Repository

Environment modules for Chaste dependencies

Basic Info
  • Host: GitHub
  • Owner: Chaste
  • License: other
  • Language: Shell
  • Default Branch: main
  • Size: 625 KB
Statistics
  • Stars: 1
  • Watchers: 6
  • Forks: 0
  • Open Issues: 4
  • Releases: 6
Created over 3 years ago · Last pushed 8 months ago
Metadata Files
Readme License

README.md

boost hdf5 petsc sundials vtk xercesc xsd

Chaste Dependency Modules

This repository contains utility scripts for building and installing Chaste's software dependencies as environment modules. It also contains Dockerfiles for building GitHub runner Docker images with specified dependency versions.

Usage

1. Install Environment Modules

The Environment Modules system allows users to switch between different software versions installed on the same system by reconfiguring the shell environment.

See the Environment Modules documentation for installation instructions on different systems. On Ubuntu, environment-modules can be installed from the apt repository:

bash apt-get install environment-modules

[!IMPORTANT] To activate the Environment Modules system after installation, close the current shell and start a new session. Alternatively, load the activation script directly into the current shell: bash source /etc/profile.d/modules.sh

2. Create a modules directory

Modulefiles are recipes used to reconfigure the shell environment for alternative software versions. The MODULEPATH environment variable is a list of locations where modulefiles are stored on the system.

[!TIP] Directories containing modulefiles can be added to MODULEPATH using the command module use <path/to/modulefiles>.

The commands below create a directory for modules and adds it to the MODULEPATH.

```sh

Create a directory for storing modulefiles

MODULESDIR=${HOME}/modules mkdir -p ${MODULESDIR}/modulefiles

Add the directory to MODULEPATH

module use ${MODULES_DIR}/modulefiles

Add the directory to MODULEPATH automatically in future bash sessions

echo "module use ${MODULES_DIR}/modulefiles" >> ${HOME}/.bashrc ```

3. Install Chaste dependencies

Clone this repository and navigate to the build scripts

sh git clone https://github.com/Chaste/dependency-modules.git cd dependency-modules/scripts/custom

[!NOTE] Running the build scripts will build and install software in this directory structure: <MODULES_DIR> |-- modulefiles/ |-- opt/ `-- src/ Software will be downloaded and built in src/ and installed in opt/. A modulefile for each software built will be created in modulefiles/.

Install XSD sh ./install_xsd.sh --version=4.0.0 --modules-dir=${MODULES_DIR}

Install Xerces-C sh ./install_xercesc.sh --version=3.2.4 --modules-dir=${MODULES_DIR} --parallel=4

Install SUNDIALS sh ./install_sundials.sh --version=6.4.0 --modules-dir=${MODULES_DIR} --parallel=4

Install Boost sh ./install_boost.sh --version=1.83.0 --modules-dir=${MODULES_DIR} --parallel=4

Install HDF5 sh ./install_hdf5.sh --version=1.10.10 --modules-dir=${MODULES_DIR} --parallel=4

Install PETSc sh ./install_petsc.sh --version=3.19.6 --arch=linux-gnu-opt --modules-dir=${MODULES_DIR} --parallel=4

Install VTK sh ./install_vtk.sh --version=9.3.1 --modules-dir=${MODULES_DIR} --parallel=4

[!TIP] After installation empty the src/ directory as the build files are no longer needed. sh cd ${MODULES_DIR} && rm -rI src/*

4. Load installed software modules

Use module avail to show available software modules ---------------- /home/<user>/modules/modulefiles ---------------- boost/1.83.0 vtk/9.3.1 hdf5/1.10.10 xercesc/3.2.4 petsc/3.19.6/linux-gnu-opt xsd/4.0.0 sundials/6.4.0

Use module load to activate software modules bash module load xsd/4.0.0 module load xercesc/3.2.4 module load sundials/6.4.0 module load boost/1.83.0 module load hdf5/1.10.10 module load petsc/3.19.6/linux-gnu-opt module load vtk/9.3.1

5. Build Chaste

Configure and build Chaste as normal following the instructions in the documentation.

Module commands

Below is a subset of commonly used module commands. See the environment modules documentation for a more comprehensive manual.

| Command |  Description | | ------------------------------------------- | ----------------------------------------------------------------- | | module use <path/to/modulefiles> | Make software modules located on the specified path available. | | | | | module avail |  List all available software modules. | | | | | module avail <search_string> |  Search for software modules that match the search string. | | | | | module load <module> |  Load a software module into the environment. | | | | | module list |  List all currently loaded software modules. | | | | | module unload <module> |  Unload a software module from the environment. | | | | | module purge |  Unload all currently loaded software modules. | | | | | module switch <module/ver0> <module/ver1> |  Unload module/ver0 and load module/ver1. | | | | | module show <module> |  Show the environment settings for a module. |

Owner

  • Name: Chaste - Cancer Heart and Soft Tissue Environment
  • Login: Chaste
  • Kind: organization
  • Email: chaste-users@maillist.ox.ac.uk
  • Location: United Kingdom

C++ library for computational biology and physiology simulations

GitHub Events

Total
  • Create event: 11
  • Release event: 2
  • Issues event: 10
  • Delete event: 9
  • Issue comment event: 13
  • Push event: 70
  • Gollum event: 3
  • Pull request event: 16
Last Year
  • Create event: 11
  • Release event: 2
  • Issues event: 10
  • Delete event: 9
  • Issue comment event: 13
  • Push event: 70
  • Gollum event: 3
  • Pull request event: 16

Issues and Pull Requests

Last synced: 7 months ago

All Time
  • Total issues: 6
  • Total pull requests: 9
  • Average time to close issues: 9 days
  • Average time to close pull requests: 2 months
  • Total issue authors: 1
  • Total pull request authors: 1
  • Average comments per issue: 1.5
  • Average comments per pull request: 0.11
  • Merged pull requests: 6
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 6
  • Pull requests: 8
  • Average time to close issues: 9 days
  • Average time to close pull requests: 9 days
  • Issue authors: 1
  • Pull request authors: 1
  • Average comments per issue: 1.5
  • Average comments per pull request: 0.0
  • Merged pull requests: 5
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • kwabenantim (12)
Pull Request Authors
  • kwabenantim (13)
Top Labels
Issue Labels
enhancement (9) documentation (1)
Pull Request Labels
enhancement (5) bug (2)

Dependencies

.github/actions/setup-boost/action.yml actions
  • actions/cache v3 composite
.github/actions/setup-petsc_hdf5/action.yml actions
  • actions/cache v3 composite
.github/actions/setup-sundials/action.yml actions
  • actions/cache v3 composite
.github/actions/setup-vtk/action.yml actions
  • actions/cache v3 composite
.github/actions/setup-xercesc/action.yml actions
  • actions/cache v3 composite
.github/actions/setup-xsd/action.yml actions
  • actions/cache v3 composite
.github/workflows/boost.yml actions
  • ./.github/actions/setup-boost * composite
  • ./.github/actions/setup-defaults * composite
  • actions/checkout v3 composite
.github/workflows/docker-release.yml actions
  • actions/checkout v3 composite
  • docker/build-push-action v3 composite
  • docker/login-action v2 composite
  • docker/setup-buildx-action v2 composite
  • docker/setup-qemu-action v2 composite
.github/workflows/petsc_hdf5.yml actions
  • ./.github/actions/setup-defaults * composite
  • ./.github/actions/setup-petsc_hdf5 * composite
  • actions/checkout v3 composite
.github/workflows/sundials.yml actions
  • ./.github/actions/setup-defaults * composite
  • ./.github/actions/setup-sundials * composite
  • actions/checkout v3 composite
.github/workflows/ubuntu-tests.yml actions
  • ./.github/actions/setup-boost * composite
  • ./.github/actions/setup-defaults * composite
  • ./.github/actions/setup-petsc_hdf5 * composite
  • ./.github/actions/setup-sundials * composite
  • ./.github/actions/setup-vtk * composite
  • ./.github/actions/setup-xercesc * composite
  • ./.github/actions/setup-xsd * composite
  • actions/checkout v3 composite
.github/workflows/version-tests.yml actions
  • actions/checkout v3 composite
.github/workflows/vtk.yml actions
  • ./.github/actions/setup-defaults * composite
  • ./.github/actions/setup-vtk * composite
  • actions/checkout v3 composite
.github/workflows/xercesc.yml actions
  • ./.github/actions/setup-defaults * composite
  • ./.github/actions/setup-xercesc * composite
  • actions/checkout v3 composite
.github/workflows/xsd.yml actions
  • ./.github/actions/setup-defaults * composite
  • ./.github/actions/setup-xsd * composite
  • actions/checkout v3 composite
Dockerfile docker
  • ubuntu ${BASE} build
.github/actions/setup-defaults/action.yml actions
.github/workflows/docker-portability-01.yml actions
  • actions/checkout v3 composite
  • docker/build-push-action v4 composite
  • docker/login-action v2 composite
  • docker/setup-buildx-action v2 composite
  • docker/setup-qemu-action v2 composite
.github/workflows/docker-portability-02.yml actions
  • actions/checkout v3 composite
  • docker/build-push-action v4 composite
  • docker/login-action v2 composite
  • docker/setup-buildx-action v2 composite
  • docker/setup-qemu-action v2 composite
.github/workflows/docker-portability-03.yml actions
  • actions/checkout v3 composite
  • docker/build-push-action v4 composite
  • docker/login-action v2 composite
  • docker/setup-buildx-action v2 composite
  • docker/setup-qemu-action v2 composite
.github/workflows/docker-portability-04.yml actions
  • actions/checkout v3 composite
  • docker/build-push-action v4 composite
  • docker/login-action v2 composite
  • docker/setup-buildx-action v2 composite
  • docker/setup-qemu-action v2 composite
.github/workflows/docker-portability-05.yml actions
  • actions/checkout v3 composite
  • docker/build-push-action v4 composite
  • docker/login-action v2 composite
  • docker/setup-buildx-action v2 composite
  • docker/setup-qemu-action v2 composite
.github/workflows/docker-portability-06.yml actions
  • actions/checkout v3 composite
  • docker/build-push-action v4 composite
  • docker/login-action v2 composite
  • docker/setup-buildx-action v2 composite
  • docker/setup-qemu-action v2 composite
.github/workflows/docker-portability-dev.yml actions
  • actions/checkout v3 composite
  • docker/build-push-action v4 composite
  • docker/login-action v2 composite
  • docker/setup-buildx-action v2 composite
  • docker/setup-qemu-action v2 composite
.github/workflows/docker-test.yml actions
  • actions/checkout v3 composite
  • docker/build-push-action v4 composite
  • docker/login-action v2 composite
  • docker/setup-buildx-action v2 composite
  • docker/setup-qemu-action v2 composite
.github/workflows/image-tests.yml actions
  • actions/checkout v3 composite
.github/workflows/manual-tests.yml actions
.github/workflows/docker-portability-system.yml actions
  • actions/checkout v3 composite
  • docker/build-push-action v4 composite
  • docker/login-action v2 composite
  • docker/setup-buildx-action v2 composite
  • docker/setup-qemu-action v2 composite