From 89e65c9ff6a004b60df3891b844d20fbfde1836d Mon Sep 17 00:00:00 2001 From: Ye Luo Date: Mon, 29 Aug 2022 17:55:46 -0400 Subject: [PATCH] Update OLCF summit recipe --- config/build_olcf_summit_Clang.sh | 18 ++++++++++-------- docs/installation.rst | 6 +++--- 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/config/build_olcf_summit_Clang.sh b/config/build_olcf_summit_Clang.sh index 6d1c111b80..abcdf9232d 100755 --- a/config/build_olcf_summit_Clang.sh +++ b/config/build_olcf_summit_Clang.sh @@ -1,9 +1,11 @@ #!/bin/bash - -echo "----------------------- WARNING ------------------------------------" -echo "This is **not** production ready and intended for development only!!" -echo "Use config/build_olcf_summit.sh for production on Summit." -echo "----------------------- WARNING ------------------------------------" +# This recipe is intended for OLCF Summit https://www.olcf.ornl.gov/summit/ +# It builds all the varaints of QMCPACK in the current directory +# last revision: Aug 29th 2022 +# +# How to invoke this script? +# build_olcf_summit_Clang.sh # build all the variants assuming the current directory is the source directory. +# build_olcf_summit_Clang.sh # build all the variants with a given source directory echo "Purging current module set" module purge @@ -25,7 +27,7 @@ if [[ ! -d /gpfs/alpine/mat151/world-shared/opt/modules ]] ; then exit 1 fi module use /gpfs/alpine/mat151/world-shared/opt/modules -module load llvm/main-20220317-cuda11.0 +module load llvm/release-15.0.0-cuda11.0 TYPE=Release Compiler=Clang @@ -58,11 +60,11 @@ if [[ $name == *"_MP"* ]]; then fi if [[ $name == *"offload"* ]]; then - CMAKE_FLAGS="$CMAKE_FLAGS -DENABLE_OFFLOAD=ON -DUSE_OBJECT_TARGET=ON -DOFFLOAD_ARCH=sm_70" + CMAKE_FLAGS="$CMAKE_FLAGS -DENABLE_OFFLOAD=ON -DOFFLOAD_ARCH=sm_70" fi if [[ $name == *"cuda"* ]]; then - CMAKE_FLAGS="$CMAKE_FLAGS -DENABLE_CUDA=ON -DCMAKE_CUDA_ARCHITECTURES=70 -DCMAKE_CUDA_HOST_COMPILER=`which g++`" + CMAKE_FLAGS="$CMAKE_FLAGS -DENABLE_CUDA=ON -DCMAKE_CUDA_ARCHITECTURES=70" fi folder=build_summit_${Compiler}_${name} diff --git a/docs/installation.rst b/docs/installation.rst index b39c1d3c8a..2fa0b0b8b0 100644 --- a/docs/installation.rst +++ b/docs/installation.rst @@ -415,11 +415,11 @@ and is not suitable for production. Additional implementation in QMCPACK as well as improvements in open-source and vendor compilers is required for production status to be reached. The following compilers have been verified: -- LLVM Clang 14. Support NVIDIA GPUs. +- LLVM Clang 15. Support NVIDIA GPUs. :: - -D ENABLE_OFFLOAD=ON -D USE_OBJECT_TARGET=ON + -D ENABLE_OFFLOAD=ON Clang and its downstream compilers support two extra options @@ -452,7 +452,7 @@ For example, using Clang 14 on Summit. :: - -D ENABLE_OFFLOAD=ON -D USE_OBJECT_TARGET=ON -D ENABLE_CUDA=ON -D CMAKE_CUDA_ARCHITECTURES=70 + -D ENABLE_OFFLOAD=ON -D ENABLE_CUDA=ON -D CMAKE_CUDA_ARCHITECTURES=70 Similarly, HIP features can be enabled in conjunction with the offload code path to improve performance on AMD GPUs.