Skip to content

Commit

Permalink
Doc: amrex.omp_threads
Browse files Browse the repository at this point in the history
  • Loading branch information
ax3l committed Oct 28, 2023
1 parent 1982031 commit ef16a75
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
21 changes: 21 additions & 0 deletions Docs/sphinx_documentation/source/InputsComputeBackends.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
.. _Chap:InputsComputeBackends:

Compute Backends
================

The following inputs must be preceded by ``amrex.`` and determine runtime options of CPU or GPU compute implementations.

+------------------------+-----------------------------------------------------------------------+-------------+------------+
| Parameter | Description | Type | Default |
+========================+=======================================================================+=============+============+
| ``omp_threads`` | If OpenMP is enabled, this can be used to set the default number of | String | ``system`` |
| | threads. The special value ``nosmt`` can be used to avoid using | or Int | |
| | threads for virtual cores (aka Hyperthreading or SMT), as is default | | |
| | in OpenMP, and instead only spawns threads equal to the number of | | |
| | physical cores in the system. | | |
| | For the values ``system`` and ``nosmt``, the environment variable | | |
| | ``OMP_NUM_THREADS`` takes precedence. For Integer values, | | |
| | ``OMP_NUM_THREADS`` is ignored. | | |
+------------------------+-----------------------------------------------------------------------+-------------+------------+

For GPU-specific parameters, see also the :ref:`GPU chapter <sec:gpu:parameters>`.
1 change: 1 addition & 0 deletions Docs/sphinx_documentation/source/Inputs_Chapter.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Run-time Inputs
InputsProblemDefinition
InputsTimeStepping
InputsLoadBalancing
InputsComputeBackends
InputsPlotFiles
InputsCheckpoint

0 comments on commit ef16a75

Please sign in to comment.