Skip to content

Commit

Permalink
warpx.profile: CMake AMReX_CUDA_ARCH
Browse files Browse the repository at this point in the history
New environment hint with the same name as the CMake variable.
  • Loading branch information
ax3l committed Nov 5, 2020
1 parent 6fadd57 commit 5c1d58e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Docs/source/building/juwels.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
3 changes: 3 additions & 0 deletions Docs/source/building/lassen.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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++)
Expand Down
5 changes: 4 additions & 1 deletion Docs/source/building/summit.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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++)
Expand Down Expand Up @@ -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 <building-cmake>` apply as usual.
Expand Down

0 comments on commit 5c1d58e

Please sign in to comment.