Coder Social home page Coder Social logo

software-stack-manali'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 variables.
  2. Run make -j$(nproc) to bootstrap compilers and packages.
  3. Run make store.squashfs to bundle those in a squashfs file.
  4. Run make build.tar.gz to create a tarball of all concrete environments and generated config files for posterity. This excludes the actual software.

Variables

A few variables 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).
  • SANDBOX: run commands in a sandbox (e.g. bubblewrap), see Make.user.example for details.
  • SPACK_INSTALL_FLAGS: specify more install flags, like --verbose.

Reproducibility

When building on a production system instead of in a sandbox, there's a few things to do to improve reproducibility:

  1. Always run make inside a clean environment:
    env --ignore-environment PATH=/usr/bin:/bin make
    
  2. Update Make.user to hide your home folder so that no user config is picked up:
    SANDBOX := bwrap --tmpfs ~ ...
    
  3. Set LC_ALL, TZ and SOURCE_DATE_EPOCH to something fixed in Make.user.

Unprivileged mounts

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

software-stack-manali's People

Contributors

haampie avatar bcumming avatar msimberg 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.