Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 17 additions & 3 deletions Docs/source/install/dependencies.rst
Original file line number Diff line number Diff line change
Expand Up @@ -119,16 +119,24 @@ Without MPI:
.. code-block:: bash

conda create -n warpx-dev -c conda-forge blaspp ccache cmake compilers git lapackpp openpmd-api python numpy scipy yt fftw matplotlib mamba ninja
conda activate warpx-dev
source activate warpx-dev
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


# compile WarpX with -DWarpX_MPI=OFF

With MPI (only Linux/macOS):

.. code-block:: bash

conda create -n warpx-dev -c conda-forge blaspp ccache cmake compilers git lapackpp openpmd-api=*=mpi_openmpi* python numpy scipy yt fftw=*=mpi_openmpi* matplotlib mamba ninja openmpi
conda activate warpx-dev
conda create -n warpx-dev -c conda-forge blaspp ccache cmake compilers git lapackpp "openpmd-api=*=mpi_openmpi*" python numpy scipy yt "fftw=*=mpi_openmpi*" matplotlib mamba ninja openmpi
Copy link
Member Author

@ax3l ax3l Dec 7, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Quotes added because zsh on macOS otherwise had troubles escaping the wildcards. Compatible with Linux/Windows use.

source activate warpx-dev

For legacy ``GNUmake`` builds, after each ``source activate warpx-dev``, you also need to set:

.. code-block:: bash

export FFTW_HOME=${CONDA_PREFIX}
export BLASPP_HOME=${CONDA_PREFIX}
export LAPACKPP_HOME=${CONDA_PREFIX}


Apt (Debian/Ubuntu)
Expand All @@ -138,3 +146,9 @@ Apt (Debian/Ubuntu)

sudo apt update
sudo apt install build-essential ccache cmake g++ git libfftw3-mpi-dev libfftw3-dev libhdf5-openmpi-dev libopenmpi-dev pkg-config python3 python3-matplotlib python3-numpy python3-scipy

# optional:
# for CUDA, either install
# https://developer.nvidia.com/cuda-downloads (preferred)
# or, if your Debian/Ubuntu is new enough, use the packages
# sudo apt install nvidia-cuda-dev libcub-dev