File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -36,6 +36,8 @@ if(QMC_OMP)
3636 CACHE STRING "Offload target architecture" )
3737 set (OPENMP_OFFLOAD_COMPILE_OPTIONS "-fopenmp-targets=${OFFLOAD_TARGET} " )
3838 endif ()
39+ # Select the intra-team reduction implementation using shared local memory.
40+ set (OPENMP_OFFLOAD_COMPILE_OPTIONS "${OPENMP_OFFLOAD_COMPILE_OPTIONS} -mllvm -vpo-paropt-atomic-free-reduction-slm=true" )
3941 endif (ENABLE_OFFLOAD )
4042 set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fiopenmp" )
4143 set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fiopenmp" )
Original file line number Diff line number Diff line change 11#! /bin/bash
22# This recipe is intended for ALCF Aurora https://www.alcf.anl.gov/support-center/aurora-sunspot
3- # last revision: Apr 25th 2025
3+ # last revision: Jul 11th 2025
44#
55# How to invoke this script?
66# build_alcf_aurora_icpx.sh # build all the variants assuming the current directory is the source directory.
@@ -52,7 +52,6 @@ for name in gpu_real_MP gpu_real gpu_cplx_MP gpu_cplx \
5252do
5353
5454CMAKE_FLAGS=" -DCMAKE_BUILD_TYPE=$TYPE -DMPIEXEC_PREFLAGS='--cpu-bind;depth;-d;8'"
55- unset CMAKE_CXX_FLAGS
5655
5756if [[ $name == * " cplx" * ]]; then
5857 CMAKE_FLAGS=" $CMAKE_FLAGS -DQMC_COMPLEX=ON"
6463
6564if [[ $name == * " gpu" * ]]; then
6665 CMAKE_FLAGS=" $CMAKE_FLAGS -DQMC_GPU_ARCHS=intel_gpu_pvc"
67- CMAKE_CXX_FLAGS=" -mllvm -vpo-paropt-atomic-free-reduction-slm=true"
6866fi
6967
7068folder=build_${Machine} _${Compiler} _${name}
7674echo " **********************************"
7775echo " folder $folder "
7876echo " CMAKE_FLAGS: $CMAKE_FLAGS "
79- echo " CMAKE_CXX_FLAGS: $CMAKE_CXX_FLAGS "
8077echo " **********************************"
8178
8279mkdir $folder
8380cd $folder
8481
8582if [ ! -f CMakeCache.txt ] ; then
86- cmake $CMAKE_FLAGS -DCMAKE_CXX_FLAGS= " $CMAKE_CXX_FLAGS " \
87- -DCMAKE_C_COMPILER=mpicc -DCMAKE_CXX_COMPILER=mpicxx $source_folder
83+ cmake -DCMAKE_C_COMPILER=mpicc -DCMAKE_CXX_COMPILER=mpicxx \
84+ $CMAKE_FLAGS $source_folder
8885fi
8986
9087if [[ -v install_folder ]]; then
You can’t perform that action at this time.
0 commit comments