Skip to content

Commit

Permalink
Update RangePolicy and MDRangePolicy on the bounds precondition (#485)
Browse files Browse the repository at this point in the history
* Added a note on bounds precondition in RangePolicy and MDRangePolicy

* Modified formatting

* Fixed wording
  • Loading branch information
ldh4 authored Jan 11, 2024
1 parent b5cd6a0 commit a38a48d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 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,10 @@ 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.

Preconditions:

* The start index must not be greater than the matching end index for all ranks.

Examples
--------

Expand Down
4 changes: 4 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,10 @@ 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.

Preconditions:

* The start index must not be greater than the end index.

Examples
--------

Expand Down

0 comments on commit a38a48d

Please sign in to comment.