Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

document LUMI installation #70

Draft
wants to merge 18 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
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
5 changes: 3 additions & 2 deletions docs/getting-started/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ Getting started

.. toctree::
:hidden:
:maxdepth: 1

quick-start
installation
installation/index
examples

Welcome to tandem!
Expand All @@ -16,6 +17,6 @@ to compiled from source.
If you have Docker installed, you might want to try the
:doc:`quick start <quick-start>` procedure.
Here, all required dependencies are already contained in a Docker image.
Otherwise, follow the :doc:`regular installation <installation>` procedure.
Otherwise, follow the :doc:`regular installation <installation/index>` procedure.

Once tandem is installed, try to run the :doc:`example problems <examples>`.
235 changes: 0 additions & 235 deletions docs/getting-started/installation.rst

This file was deleted.

39 changes: 39 additions & 0 deletions docs/getting-started/installation/gpus.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
Tandem with GPUs
================

installation with spack
-----------------------

First add to you `~/.spack/packages.yaml`

.. code-block:: yaml

packages:
all:
variants: cuda_arch=xxx

With xxx you cuda architecture (e.g. 86). For AMD GPUs, use the keyword `amdgpu_target` (e.g. =gfx90a).
This will ensure that the architecture is propagated to all dependencies.

Then, installing the GPU version tandem is (in theory) as simple as adding the GPU variant (+cuda for Nvidia GPUs or +rocm for AMD GPUs), for example:

.. code-block:: bash

spack install -j 20 tandem@main polynomial_degree=4 domain_dimension=3 +cuda


Using a GPU version
-------------------

To ensure that tandem utilizes GPUs for computation, additionnal PETSc arguments are required when running the application.
For Cuda, use:

.. code-block:: bash

-vec_type cuda -mat_type aijcusparse

For ROCM, use:

.. code-block:: bash

-vec_type hip -mat_type aijhipsparse
15 changes: 15 additions & 0 deletions docs/getting-started/installation/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
Installation
============

.. toctree::
:hidden:

spack_installation
installation_supermucNG
installation_lumi
installation_leonardo
gpus
manual_installation
installing_lua_modules

Tandem and its dependencies can be installed automatically with `Spack <https://github.com/spack/spack/wiki>`_, or manually.
Loading