Giter Club home page Giter Club logo

spack-stack's Introduction

Bootstrap GCC, LLVM and NVHPC, and build an HPC software stack based on OpenMPI, with a few unique features:

  1. parallel package builds with single jobserver for all builds;
  2. avoiding relocation issues by fixing the install path to a new directory /some-dir of choice (no root access required);
  3. fast, in-memory builds.

Requirements:

  • spack
  • bwrap (when not already building inside a sandbox)

Usage:

  1. Copy Make.user.example to Make.user and change some variables1.
  2. Run make -j$(nproc) to bootstrap compilers and packages2.
  3. Run make store.squashfs to bundle those in a squashfs file.

Unprivileged mounts

The squashfs file can then be mounted using squashfs-mount or squashfuse

Generating modules

There's no modules.yaml file right now, but generating modules goes along those lines:

modules:
  'default:':
    arch_folder: false
    roots:
      tcl: /path/to/tcl/modules
    enable:
    - tcl
    tcl:
      projections:
        all: '{name}/{version}-{compiler.name}-{compiler.version}'
      all:
        autoload: none
        filter:
          environment_blacklist: ['LD_LIBRARY_PATH', 'LIBRARY_PATH', 'CPATH']
spack module tcl refresh
spack module tcl setdefault gcc@11

Footnotes

  1. For reproducibility, build with a clean environment: env -i PATH=/usr/bin:/bin make ....

  2. A few variables should be set in Make.user:

    • STORE: where to install packages;
    • SPACK: what spack to use;
    • SPACK_SYSTEM_CONFIG_PATH: path to spack config dir (e.g. config/hohgant).
    • BWRAP: use bubblewrap for sandboxing and speed: see Make.user.example for details.
    • SPACK_INSTALL_FLAGS: specify more install flags, like --verbose.

spack-stack's People

Contributors

haampie avatar msimberg avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.