From 5c1d58eee1f34e406f3ab9d1502c6214044a9aee Mon Sep 17 00:00:00 2001 From: Axel Huebl Date: Tue, 3 Nov 2020 17:01:21 -0800 Subject: [PATCH] warpx.profile: CMake AMReX_CUDA_ARCH New environment hint with the same name as the CMake variable. --- Docs/source/building/juwels.rst | 3 +++ Docs/source/building/lassen.rst | 3 +++ Docs/source/building/summit.rst | 5 ++++- 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/Docs/source/building/juwels.rst b/Docs/source/building/juwels.rst index 611086099a2..32bf4a73b0e 100644 --- a/Docs/source/building/juwels.rst +++ b/Docs/source/building/juwels.rst @@ -55,6 +55,9 @@ We use the following modules and environments on the system. export GPUS_PER_SOCKET=2 export GPUS_PER_NODE=4 + # optimize CUDA compilation for V100 (CMake hint) + export AMReX_CUDA_ARCH=7.0 + Note that for now WarpX must rely on OpenMPI instead of the recommended MPI implementation on this platform MVAPICH2. We recommend to store the above lines in a file, such as ``$HOME/warpx.profile``, and load it into your shell after a login: diff --git a/Docs/source/building/lassen.rst b/Docs/source/building/lassen.rst index 0adc4113a28..cb93023d490 100644 --- a/Docs/source/building/lassen.rst +++ b/Docs/source/building/lassen.rst @@ -58,6 +58,9 @@ We use the following modules and environments on the system. # fix system defaults: do not escape $ with a \ on tab completion shopt -s direxpand + # optimize CUDA compilation for V100 + export AMReX_CUDA_ARCH=7.0 + # compiler environment hints export CC=$(which gcc) export CXX=$(which g++) diff --git a/Docs/source/building/summit.rst b/Docs/source/building/summit.rst index f06959c18be..81c86f327d8 100644 --- a/Docs/source/building/summit.rst +++ b/Docs/source/building/summit.rst @@ -89,6 +89,9 @@ We use the following modules and environments on the system. # fix system defaults: do not escape $ with a \ on tab completion shopt -s direxpand + # optimize CUDA compilation for V100 + export AMReX_CUDA_ARCH=7.0 + # compiler environment hints export CC=$(which gcc) export CXX=$(which g++) @@ -136,7 +139,7 @@ Then, ``cd`` into the directory ``$HOME/src/warpx`` and use the following comman mkdir -p build cd build - cmake .. -DWarpX_OPENPMD=ON -DWarpX_DIMS=3 -DWarpX_COMPUTE=CUDA -DCMAKE_CUDA_ARCHITECTURES=70 -DAMReX_CUDA_ARCH=7.0 + cmake .. -DWarpX_OPENPMD=ON -DWarpX_DIMS=3 -DWarpX_COMPUTE=CUDA make -j 10 The general :ref:`cmake compile-time options ` apply as usual.