Skip to content

Commit

Permalink
make format
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastiangrimberg committed Feb 19, 2024
1 parent 4a16137 commit 5388b2d
Showing 1 changed file with 17 additions and 15 deletions.
32 changes: 17 additions & 15 deletions docs/src/guide/parallelism.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,23 +18,25 @@ environment variable.

Lastly, *Palace* supports GPU-acceleration using NVIDIA and AMD GPUs, activated with the
build options `-DPALACE_WITH_CUDA=ON` and `-DPALACE_WITH_HIP=ON`, respectively. At runtime,
the [`config["Solver"]["Device"]`](../config/solver.md#config%5B%22Solver%22%5D) parameter in the
configuration file can be set to `"CPU"` (the default) or `"GPU"` in order to configure
*Palace* and MFEM to use the available GPU(s). The [`config["Solver"]["Backend"]`]
(../config/solver.md#config["Solver"]) parameter, on the other hand, controls the [libCEED
backend](https://libceed.org/en/latest/gettingstarted/#backends). Users typically do not
need to provide a value for this option and can instead rely on *Palace*'s default, which
selects the most appropriate backend for the given value of [`config["Solver"]["Device"]`]
(../config/solver.md#config["Solver"]).
the [`config["Solver"]["Device"]`](../config/solver.md#config%5B%22Solver%22%5D) parameter
in the configuration file can be set to `"CPU"` (the default) or `"GPU"` in order to
configure *Palace* and MFEM to use the available GPU(s). The
[`config["Solver"]["Backend"]`](../config/solver.md#config%5B%22Solver%22%5D) parameter, on
the other hand, controls the
[libCEED backend](https://libceed.org/en/latest/gettingstarted/#backends). Users typically
do not need to provide a value for this option and can instead rely on *Palace*'s default,
which selects the most appropriate backend for the given value of
[`config["Solver"]["Device"]`](../config/solver.md#config%5B%22Solver%22%5D).

In order to take full advantage of the performance benefits made available by GPU-
acceleration, it is recommended to make use of [operator partial assembly]
(https://mfem.org/performance/), activated when the value of
[`config["Solver"]["PartialAssemblyOrder"]`](../config/solver.md#config%5B%22Solver%22%5D) is
less than [`config["Solver"]["Order"]`](../config/solver.md#config%5B%22Solver%22%5D). This feature
avoids assembling a global sparse matrix and instead makes use of data structures for
operators which lend themselves to more efficient asymptotic storage and application costs.
See also [https://libceed.org/en/latest/intro/](https://libceed.org/en/latest/intro/) for
more details. Partial assembly in *Palace* supports mixed meshes including both tensor
product elements (hexahedra and quadrilaterals) as well as non-tensor product elements
[`config["Solver"]["PartialAssemblyOrder"]`](../config/solver.md#config%5B%22Solver%22%5D)
is less than [`config["Solver"]["Order"]`](../config/solver.md#config%5B%22Solver%22%5D).
This feature avoids assembling a global sparse matrix and instead makes use of data
structures for operators which lend themselves to more efficient asymptotic storage and
application costs. See also
[https://libceed.org/en/latest/intro/](https://libceed.org/en/latest/intro/) for more
details. Partial assembly in *Palace* supports mixed meshes including both tensor product
elements (hexahedra and quadrilaterals) as well as non-tensor product elements
(tetrahedra, prisms, pyramids, and triangles).

0 comments on commit 5388b2d

Please sign in to comment.