This is a spack environement for THAPI.
This assume that you have a valid spack
in your path
git clone https://github.com/argonne-lcf/THAPI-spack
spack repo add ./THAPI-spack/
spack install thapi
Then you can simply load thapi it via
spack load thapi
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 THAPI, then use spack build-env thapi
to get the correct environment required to build THAPI for source. ( spack build-env thapi bash
will spwan a new bash will all the ENV variable corretcly set)