Skip to content

Building APEX on OLCF Summit

Kevin Huck edited this page Mar 23, 2023 · 2 revisions

The APEX CMake configuration will download and build all requested dependencies, if desired. The easiest way to install APEX for Summit is with spack, doing:

spack install apex

If you're not using spack, the next easiest way is to do the following:

module reset
module unload darshan-runtime xl
module load gcc/7.4.0 cmake cuda papi
module list

cwd=`pwd`
builddir=${cwd}/build
instdir=${cwd}/install

rm -rf ${builddir} ${instdir}

set -x
cmake -B build \
-DCMAKE_C_COMPILER=`which mpicc` \
-DCMAKE_CXX_COMPILER=`which mpicxx` \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=${instdir} \
-DAPEX_WITH_PAPI=TRUE \
-DAPEX_WITH_CUDA=TRUE \
-DAPEX_WITH_LM_SENSORS=TRUE \
-DAPEX_WITH_BFD=TRUE \
-DAPEX_WITH_OTF2=TRUE \
-DAPEX_WITH_PLUGINS=TRUE \
-DAPEX_WITH_ACTIVEHARMONY=TRUE \
-DAPEX_WITH_MPI=TRUE \
-DPAPI_ROOT=${OLCF_PAPI_ROOT}

cmake --build build
cmake --install build