module swap PrgEnv-intel PrgEnv-gnu
module unload darshan
git clone https://github.com/jmellorcrummey/spack-configs.git
spack-configs/bin/spacklink -n spack nersc cori
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
git clone https://github.com/HPCToolkit/hpctoolkit.git
git checkout master-gpu
- add the following configuration to /.spack/cray/compilers.yaml
- compiler:
environment: {}
extra_rpaths: []
flags: {}
implicit_rpaths: []
modules:
- PrgEnv-gnu
- gcc/7.3.0
- cray-mpich/7.7.6
operating_system: sles15
paths:
cc: /opt/gcc/7.3.0/bin/gcc
cxx: /opt/gcc/7.3.0/bin/g++
f77: /opt/gcc/7.3.0/bin/gfortran
fc: /opt/gcc/7.3.0/bin/gfortran
spec: gcc@7.3.0
target: x86_64
module load gcc/7.3.0
spack install --only dependencies hpctoolkit@gpu %gcc@7.3.0 arch=cray-fe-x86_64
cd /path/to/hpctoolkit
mkdir build && cd build
../configure --prefix=/path/to/hpctoolkit/install/prefix --with-cuda=/usr/common/software/cuda/10.1.168 --with-cupti=/usr/common/software/cuda/10.1.168/extras/CUPTI --with-spack=/path/to/spack-pkgs/cray-sles15-x86_64/gcc-7.3.0 MPICXX=CC --enable-all-static
make install -j16