Skip to content

Commit

Permalink
Raphael formatting suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
hjabird committed Nov 6, 2023
1 parent 525100d commit 56bef76
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ for the following reasons:

For some backends and configurations, ``config_value::WORKSPACE_EXTERNAL`` may reduce performance.

A typical workflow for using ``config_value::WORKSPACE_EXTERNAL`` is given in the section :ref:`onemkl_dft_typical_usage_of_workspace_external`.
A typical workflow for using ``config_value::WORKSPACE_EXTERNAL`` is given in the section :ref:`below<onemkl_dft_typical_usage_of_workspace_external>`.

WORKSPACE_PLACEMENT
+++++++++++++++++++
Expand Down
4 changes: 2 additions & 2 deletions source/elements/oneMKL/source/domains/dft/descriptor.rst
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ allocated workspace must only be used with USM compute calls.
Failing to do this will result in an invalid descriptor for compute calls.

If the workspace is a USM allocation, the user must not use it for other purposes
in parallel whilst the DFT `compute_forward` or `compute_backward` are in progress.
in parallel whilst the DFT ``compute_forward`` or ``compute_backward`` are in progress.

This function can be called on committed descriptors where the workspace placement
is not ``config_value::WORKSPACE_EXTERNAL``. The provided workspace may or may not
Expand Down Expand Up @@ -489,7 +489,7 @@ be used in compute calls. However, the aforementioned restrictions will still ap

.. rubric:: Throws

The `descriptor::set_workspace()` routine shall throw the following exceptions if the associated condition is detected. An implementation may throw additional implementation-specific exception(s) in case of error conditions not covered here:
The ``descriptor::set_workspace()`` routine shall throw the following exceptions if the associated condition is detected. An implementation may throw additional implementation-specific exception(s) in case of error conditions not covered here:

:ref:`oneapi::mkl::invalid_argument()<onemkl_exception_invalid_argument>`
If the provided buffer ``workspaceBuf`` is not sufficiently large, or if the provided USM allocation ``workspaceUSM`` is ``nullptr`` when an external workspace of size greater than zero is required.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ the :ref:`descriptor<onemkl_dft_descriptor>` class.
* - :ref:`WORKSPACE_PLACEMENT<onemkl_dft_config_workspace_placement>`
- Some FFT algorithm computation steps require a scratch space for permutations or other purposes.
This parameter controls whether this scratch space is automatically allocated or provided by the user.
- | :ref:`onemkl_dft_config_workspace_placement` (possible values are ``config_value::WORKSPACE_AUTOMATIC`` or ``config_value::WORKSPACE_EXTERNAL``).
- | :ref:`onemkl_dft_enum_config_value` (possible values are ``config_value::WORKSPACE_AUTOMATIC`` or ``config_value::WORKSPACE_EXTERNAL``).
| [``config_value::WORKSPACE_AUTOMATIC``]
* - WORKSPACE_EXTERNAL_BYTES
- The required minimum external workspace size for use by :ref:`set_workspace<onemkl_dft_descriptor_set_workspace>`.
Expand Down

0 comments on commit 56bef76

Please sign in to comment.