Skip to content

Commit

Permalink
List backend-specific IndexType for ExecutionPolicy (#552)
Browse files Browse the repository at this point in the history
* added a link to the index types in the common args of execution policies

* added info to executionSpaceConcept

* added nested typedef to executionSpaceConcept

* typo

* remove spelled out list of types for different backends

* added a note on possible performance impact of indextype
  • Loading branch information
JBludau authored Jul 30, 2024
1 parent 9def7aa commit 65223d5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/source/API/core/Execution-Policies.rst
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ Execution Policies generally accept compile time arguments via template paramete
* Specify scheduling policy for work items. ``Dynamic`` scheduling is implemented through a work stealing queue. Default is machine and backend specific.

* * IndexType
* ``IndexType<int>``
* Specify integer type to be used for traversing the iteration space. Defaults to ``int64_t``.
* e.g. ``IndexType<int>``
* Specify integer type to be used for traversing the iteration space. Defaults to the ``size_type`` of `ExecutionSpaceConcept <execution_spaces.html#typedefs>`__. Can affect the performance depending on the backend.

* * LaunchBounds
* ``LaunchBounds<MaxThreads, MinBlocks>``
Expand Down
3 changes: 3 additions & 0 deletions docs/source/API/core/execution_spaces.rst
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,7 @@ Synopsis
typedef Device<execution_space, memory_space> device_type;
typedef ... scratch_memory_space;
typedef ... array_layout;
typedef ... size_type;
ExecutionSpaceConcept();
ExecutionSpaceConcept(const ExecutionSpaceConcept& src);
Expand Down Expand Up @@ -310,6 +311,8 @@ Typedefs

* ``scratch_memory_space``: The ``ScratchMemorySpace`` that parallel patterns will use for allocation of scratch memory (for instance, as requested by a |KokkosTeamPolicy|_)

* ``size_type``: The default integer type associated with this space. Signed or unsigned, 32 or 64 bit integer type, used as preferred type for indexing.

Constructors
~~~~~~~~~~~~

Expand Down

0 comments on commit 65223d5

Please sign in to comment.