Skip to content

Commit

Permalink
Added a note on bounds precondition in RangePolicy and MDRangePolicy
Browse files Browse the repository at this point in the history
  • Loading branch information
ldh4 committed Jan 11, 2024
1 parent b5cd6a0 commit 2bf5642
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/source/API/core/policies/MDRangePolicy.rst
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,11 @@ Constructors
* Provide a start and end index as well as the tiling dimensions. The length of the lists must match the rank of the policy.

``Notes``:
^^^^^^^^^^

* Provided start index must not be greater than the matching end index for all ranks. Otherwise, ``Kokkos::abort()`` is called.

Examples
--------

Expand Down
5 changes: 5 additions & 0 deletions docs/source/API/core/policies/RangePolicy.rst
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,11 @@ Optional ``InitArgs``:

* ``ChunkSize`` : Provide a hint for optimal chunk-size to be used during scheduling. For the SYCL backend, the workgroup size used in a ``parallel_for`` kernel can be set via this variable.

``Notes``:
^^^^^^^^^^

* Provided start index must not be greater than the end index. Otherwise, ``Kokkos::abort()`` is called.

Examples
--------

Expand Down

0 comments on commit 2bf5642

Please sign in to comment.