Skip to content

Commit

Permalink
Merge pull request #4217 from ye-luo/update-summit-recipe
Browse files Browse the repository at this point in the history
Update OLCF summit recipe
  • Loading branch information
prckent authored Aug 31, 2022
2 parents 0c27e04 + c750c0d commit f86ff27
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
18 changes: 10 additions & 8 deletions config/build_olcf_summit_Clang.sh
Original file line number Diff line number Diff line change
@@ -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 <source_dir> # build all the variants with a given source directory <source_dir>

echo "Purging current module set"
module purge
Expand All @@ -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
Expand Down Expand Up @@ -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}
Expand Down
6 changes: 3 additions & 3 deletions docs/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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.

Expand Down

0 comments on commit f86ff27

Please sign in to comment.