This repository provides a Spack environment for installing and managing THAPI.
✍️Note: This guide assumes spack
is installed and available in your PATH
.
develop
, which is unstable. To ensure a reliable installation, use the latest release of Spack. See the section below on installing Spack.
# Clone the THAPI-spack repository and add it as a Spack repo
git clone https://github.com/argonne-lcf/THAPI-spack
spack repo add ./THAPI-spack/
# Install THAPI
spack install thapi
Once installed, you can load THAPI with:
spack load thapi
If you don't have Spack installed yet:
git clone -c feature.manyFiles=true -b releases/latest https://github.com/spack/spack.git
. spack/share/spack/setup-env.sh
You can use Spack to install the required dependencies and set up the environment to build THAPI from source:
spack build-env thapi bash
This will spawn a new shell with the correct environment variables set for building THAPI manually.