You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This PR fixes the LXPLUS installation guide. While there is hardly any
software installed on LXPLUS itself, the software is instead provided
via the LCG software stack.
Thus, instead of relying on Spack, an appropriate LCG view should be
loaded, which provides all dependencies for WarpX. As a minor caveat,
one must force picking the parallel HDF5 version over the serial one, as
both are available in the LCG view.
This drastically simplifies the build procedure on LXPLUS.
Copy file name to clipboardExpand all lines: Docs/source/install/hpc/lxplus.rst
+9-65Lines changed: 9 additions & 65 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,8 +23,6 @@ Through LXPLUS we have access to CPU and GPU nodes (the latter equipped with NVI
23
23
24
24
Installation
25
25
------------
26
-
Only very little software is pre-installed on LXPLUS so we show how to install from scratch all the dependencies using `Spack <https://spack.io>`__.
27
-
28
26
For size reasons it is not advisable to install WarpX in the ``$HOME`` directory, while it should be installed in the "work directory". For this purpose we set an environment variable with the path to the "work directory"
29
27
30
28
.. code-block:: bash
@@ -40,98 +38,44 @@ We clone WarpX in ``$WORK``:
40
38
41
39
Installation profile file
42
40
^^^^^^^^^^^^^^^^^^^^^^^^^
43
-
The easiest way to install the dependencies is to use the pre-prepared ``warpx.profile`` as follows:
41
+
For convenience, all variables, cloning WarpX, and loading the LCG view required for the dependencies are available in the profile file ``warpx.profile`` as follows:
When doing this one can directly skip to the :ref:`Building WarpX <building-lxplus-warpx>` section.
51
-
52
48
To have the environment activated at every login it is then possible to add the following lines to the ``.bashrc``
53
49
54
50
.. code-block:: bash
55
51
56
52
export WORK=/afs/cern.ch/work/${USER:0:1}/$USER/
57
53
source$WORK/lxplus_warpx.profile
58
54
59
-
GCC
60
-
^^^
61
-
The pre-installed GNU compiler is outdated so we need a more recent compiler. Here we use the gcc 11.2.0 from the LCG project, but other options are possible.
If the GPU support or the Python bindings are not needed, it's possible to skip the installation by respectively setting
99
-
the following environment variables export ``SPACK_STACK_USE_PYTHON=0`` and ``export SPACK_STACK_USE_CUDA = 0`` before
100
-
running the previous commands.
101
-
102
-
After the installation is done once, all we need to do in future sessions is just ``activate`` the environment again:
103
-
104
-
.. code-block:: bash
105
-
106
-
spack env activate warpx-lxplus
55
+
Building WarpX
56
+
^^^^^^^^^^^^^^
107
57
108
-
The environment ``warpx-lxplus`` (or ``-cuda`` or ``-cuda-py``) must be reactivated everytime that we log in so it could
109
-
be a good idea to add the following lines to the ``.bashrc``:
58
+
All dependencies are available via the LCG software stack. We choose the CUDA software stack to be able to compile both with and without CUDA without changing the stack. As both a serial and a parallel HDF5 installation are available, one has to make sure that WarpX picks up the parallel one both at build and at run time. Therefore, we load the software stack and export the path to the parallel HDF5:
0 commit comments