Skip to content

Instantly share code, notes, and snippets.

@Jokeren
Last active October 25, 2019 00:26
Show Gist options
  • Save Jokeren/7a44198f3d629d716c6d0ed01c191ef0 to your computer and use it in GitHub Desktop.
Save Jokeren/7a44198f3d629d716c6d0ed01c191ef0 to your computer and use it in GitHub Desktop.
BRIEF INSTALL INSTRUCTIONS

Install spack

git clone https://github.com/spack/spack.git
export SPACK_ROOT=/path/to/spack
export PATH=${SPACK_ROOT}/bin:${PATH}
source ${SPACK_ROOT}/share/spack/setup-env.sh

Clone HPCToolkit

git clone git@github.com:HPCToolkit/hpctoolkit.git
cd hpctoolkit

Configure spack

  • config.yaml
cd spack/etc/spack
cp defaults/config.yaml .
vi config.yaml [change build_job to number of cores on your machine]
  • packages.yaml
cd spack/etc/spack 
cp /path/to/hpctoolkit/spack/packages.yaml ./
vi config.yaml [change paths of existing packages, including cmake, perl, gcc, python, ...]
  • check
spack spec hpctoolkit

Install hpctoolkit

spack install --only dependencies hpctoolkit 
cd /path/to/hpctoolkit
mkdir build && cd build
../configure --prefix=/path/to/install/prefix --with-spack=/path/to/spack/libraries/root --enable-develop
[Tip: check spack libraries' root->spack find --path package]
make install -j8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment