From a243b84a929f8551afcc30b77b397b16e0ae2e2d Mon Sep 17 00:00:00 2001 From: Ye Luo Date: Wed, 21 Apr 2021 00:05:33 -0400 Subject: [PATCH] Update XL build recipe. --- config/build_olcf_summit_XL.sh | 2 +- src/Platforms/CUDA/CUDATypeMapping.hpp | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/config/build_olcf_summit_XL.sh b/config/build_olcf_summit_XL.sh index db5f90386b..b12f5afd1e 100755 --- a/config/build_olcf_summit_XL.sh +++ b/config/build_olcf_summit_XL.sh @@ -31,7 +31,7 @@ source_folder=.. for name in offload_real_MP offload_real # offload_cplx offload_cplx_MP do -CMAKE_FLAGS="-D CMAKE_BUILD_TYPE=$TYPE -D ENABLE_CUDA=1 -D CUDA_ARCH=sm_70 -D ENABLE_MASS=1 -D MASS_ROOT=/sw/summit/xl/16.1.1-5/xlmass/9.1.1 -D MPIEXEC_EXECUTABLE=`which jsrun` -D MPIEXEC_NUMPROC_FLAG='-n' -D MPIEXEC_PREFLAGS='-c;16;-g;1;-b;packed:16;--smpiargs=off'" +CMAKE_FLAGS="-D CMAKE_BUILD_TYPE=$TYPE -D ENABLE_CUDA=1 -D CUDA_ARCH=sm_70 -D CUDA_HOST_COMPILER=/sw/summit/gcc/6.4.0/bin/gcc -D ENABLE_MASS=1 -D MASS_ROOT=/sw/summit/xl/16.1.1-5/xlmass/9.1.1 -D MPIEXEC_EXECUTABLE=`which jsrun` -D MPIEXEC_NUMPROC_FLAG='-n' -D MPIEXEC_PREFLAGS='-c;16;-g;1;-b;packed:16;--smpiargs=off'" if [[ $name == *"cplx"* ]]; then CMAKE_FLAGS="$CMAKE_FLAGS -D QMC_COMPLEX=1" diff --git a/src/Platforms/CUDA/CUDATypeMapping.hpp b/src/Platforms/CUDA/CUDATypeMapping.hpp index 78e8480748..e7c60443e1 100644 --- a/src/Platforms/CUDA/CUDATypeMapping.hpp +++ b/src/Platforms/CUDA/CUDATypeMapping.hpp @@ -9,9 +9,12 @@ // File created by: Peter Doak, doakpw@ornl.gov, Oak Ridge National Laboratory ////////////////////////////////////////////////////////////////////////////////////// + #ifndef QMCPLUSPLUS_CUDA_TYPE_MAPPING_HPP #define QMCPLUSPLUS_CUDA_TYPE_MAPPING_HPP +#include + namespace qmcplusplus { // This namespace is to protect against the clash between this disjuntion and the std one