-
Notifications
You must be signed in to change notification settings - Fork 365
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
22 additions
and
0 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
Docs/sphinx_documentation/source/InputsComputeBackends.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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>`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters