Peano
Loading...
Searching...
No Matches
Installation with Spack

Spack installs everything from sources and it is the main feature of Spack, in contrast to other package managers. In other words, Spack downloads source files, compiles them and locates binaries inside of your system. You don’t need to have super-user’s rights to install packages and you can try different versions and flavours of them.

Overview

We provide Spack scripts for various of Peano's extensions:

Prerequisites

Follow the official Spack Installation Guide.

Getting Started

cd $HOME/Peano/spack
spack repo add .

To make sure that everything went well, query available packages in Spack.

spack list exahype2
==> 1 packages.
exahype2

If you can see an output similar to the one above then we are ready to proceed.

Usage

spack info exahype2
spack install exahype2 <OPTIONS>

Installation Examples

spack install exahype2
spack install exahype2+omp+cuda cuda_arch=70 gpu_backend=cuda
spack install exahype2+omp+cuda cuda_arch=70 gpu_backend=omp % nvhpc

Installs ExaHyPE 2 with OpenMP multithreading and OpenMP target offloading for NVIDIA GPUs using the NVIDIA compilers.

Uninstall

spack uninstall -y exahype2

Remove the Repository

spack repo remove Peano

Cleanup

spack gc -y
spack clean -a