Skip to content

Latest commit

 

History

History
44 lines (31 loc) · 1.31 KB

readme.md

File metadata and controls

44 lines (31 loc) · 1.31 KB

UENV 2

A rewrite of uenv in C++:

  • deployed as static binaries
  • no longer supports modification of the environment in the calling shell
  • bring the CLI and Slurm plugin under one roof, with a common library

building

The software uses meson wrap to bring its own dependencies, all of which are built as static libraries.

To build you only need

  • meson
  • ninja
  • g++ that supports C++17 (including the std::filesystem library implementation

On your laptop these requirements can be met using your package manager of choice.

On an Alps vCluster, we want to use the system compiler "as is" without using a uenv or modules. The g++ requirement is met by the g++-12 compiler, that is installed on the vClusters as part of the boot image. The easiest way to set up meson and ninja is to pip install them to create an isolated build environment.

python3 -m venv ./.env
source .env/bin/activate
pip install ninja meson

mkdir build
cd build
CC=gcc-12 CXX=g++-12 meson setup ..

ninja

testing

There is no integration testing yet.

The C++ library has unit tests, that are built by default as the unit executable in the build path:

> ./unit
Randomness seeded to: 478418581
===============================================================================
All tests passed (137 assertions in 16 test cases)