From 6ae52da5712aaecb5a45350296b3602f35eac15d Mon Sep 17 00:00:00 2001 From: Peter Boyle Date: Mon, 8 Jul 2024 15:59:18 +0000 Subject: [PATCH] LLVM leak sanitizer --- systems/Aurora/config-command-leak | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 systems/Aurora/config-command-leak diff --git a/systems/Aurora/config-command-leak b/systems/Aurora/config-command-leak new file mode 100644 index 00000000..4b78afdb --- /dev/null +++ b/systems/Aurora/config-command-leak @@ -0,0 +1,23 @@ +source ~/spack/share/spack/setup-env.sh +spack load c-lime +export CLIME=`spack find --paths c-lime | grep ^c-lime | awk '{print $2}' ` +export TCMALLOC=`spack find --paths gperftools | grep ^gperftools | awk '{print $2}' ` +export LD_LIBRARY_PATH=${TCMALLOC}/lib:$LD_LIBRARY_PATH + +../../configure \ + --enable-debug \ + --enable-simd=GPU \ + --enable-gen-simd-width=64 \ + --enable-comms=mpi-auto \ + --disable-gparity \ + --disable-fermion-reps \ + --with-lime=$CLIME \ + --enable-shm=nvlink \ + --enable-accelerator=sycl \ + --enable-accelerator-aware-mpi=yes\ + --enable-unified=no \ + MPICXX=mpicxx \ + CXX=icpx \ + LDFLAGS="-fiopenmp -fsycl-device-lib=all -lze_loader -L${MKLROOT}/lib -qmkl=parallel -fsycl -lsycl -Xarch_host -fsanitize=leak -fsycl-device-code-split=per_kernel" \ + CXXFLAGS="-fiopenmp -fsycl-unnamed-lambda -I$INSTALL/include -Wno-tautological-compare -I$HOME/ -qmkl=parallel -Xarch_host -fsycl -fsanitize=leak " +