Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,8 @@ def make_ref(ref_str, ref_view, ref_sufix):
primary_domain = "cpp"


highlight_language = "cpp"

# -- Options for spelling extension -------------------------------------------

spelling_show_suggestions = True
Expand Down
1 change: 1 addition & 0 deletions source/iface/async_handler.rst
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,5 @@ function and passing it to the :ref:`queue`.
Output:

.. literalinclude:: /examples/async-handler.out
:language: none
:lines: 5-
1 change: 1 addition & 0 deletions source/iface/atomic_ref.rst
Original file line number Diff line number Diff line change
Expand Up @@ -682,5 +682,6 @@ Examples
:caption: Thread-safe push/pop using atomic operations.

.. literalinclude:: /examples/atomic.out
:language: none
:lines: 5-
:caption: Output.
1 change: 1 addition & 0 deletions source/iface/buffer.rst
Original file line number Diff line number Diff line change
Expand Up @@ -964,4 +964,5 @@ An example of creating sub-buffers from a parent buffer:
Output:

.. literalinclude:: /examples/creating-sub-buffers.out
:language: none
:lines: 5-
2 changes: 2 additions & 0 deletions source/iface/command-group-handler.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1053,6 +1053,7 @@ described in :ref:`host_task-basic` chapter.
Output:

.. literalinclude:: /examples/host-task.out
:language: none
:lines: 5-

.. _handler-example2:
Expand All @@ -1075,4 +1076,5 @@ buffer on the device unchanged.
Output:

.. literalinclude:: /examples/handler-copy.out
:language: none
:lines: 5-
1 change: 1 addition & 0 deletions source/iface/context.rst
Original file line number Diff line number Diff line change
Expand Up @@ -301,4 +301,5 @@ Print out all the devices within a context.
Potential Output:

.. literalinclude:: /examples/context.out
:language: none
:lines: 5-
1 change: 1 addition & 0 deletions source/iface/defining-kernels.rst
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ number.
Possible output:

.. literalinclude:: /examples/def_kernels_named_function_obj.out
:language: none
:lines: 5-

The random number is generated during the construction
Expand Down
1 change: 1 addition & 0 deletions source/iface/device-selector.rst
Original file line number Diff line number Diff line change
Expand Up @@ -109,4 +109,5 @@ Example 1
Output on a system without a GPU:

.. literalinclude:: /examples/gpu-selector.out
:language: none
:lines: 5-
1 change: 1 addition & 0 deletions source/iface/device.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1627,4 +1627,5 @@ Enumerate the GPU devices.
Output example:

.. literalinclude:: /examples/get_devices.out
:language: none
:lines: 5-
1 change: 1 addition & 0 deletions source/iface/event.rst
Original file line number Diff line number Diff line change
Expand Up @@ -369,4 +369,5 @@ event profiling info.
Output example:

.. literalinclude:: /examples/event-elapsed-time.out
:language: none
:lines: 5-
1 change: 1 addition & 0 deletions source/iface/exception.rst
Original file line number Diff line number Diff line change
Expand Up @@ -381,4 +381,5 @@ Catching asynchronous exceptions for incorrect range construction.
Output:

.. literalinclude:: /examples/exception-handling.out
:language: none
:lines: 5-
1 change: 1 addition & 0 deletions source/iface/group-algorithms-library.rst
Original file line number Diff line number Diff line change
Expand Up @@ -678,5 +678,6 @@ Example
:caption: Using the group algorithms library to perform a work-group reduce.

.. literalinclude:: /examples/reduce-alg-lib.out
:language: none
:lines: 5-
:caption: Output.
1 change: 1 addition & 0 deletions source/iface/platform.rst
Original file line number Diff line number Diff line change
Expand Up @@ -224,4 +224,5 @@ Enumerate the platforms and the devices they contain.
Output:

.. literalinclude:: /examples/get-platforms.out
:language: none
:lines: 5-
1 change: 1 addition & 0 deletions source/iface/private_memory.rst
Original file line number Diff line number Diff line change
Expand Up @@ -102,4 +102,5 @@ Example of usage of the ``sycl::private_memory``:
Output example:

.. literalinclude:: /examples/private_memory_example.out
:language: none
:lines: 5-
2 changes: 2 additions & 0 deletions source/iface/queue.rst
Original file line number Diff line number Diff line change
Expand Up @@ -630,6 +630,7 @@ Submission of a single task SYCL kernel function.
Output:

.. literalinclude:: /examples/queue-single-task.out
:language: none
:lines: 5-

.. _queue-example-2:
Expand All @@ -647,4 +648,5 @@ Submission of a parallel SYCL kernel function.
Output:

.. literalinclude:: /examples/queue-parallel.out
:language: none
:lines: 5-
1 change: 1 addition & 0 deletions source/iface/specialization-constants.rst
Original file line number Diff line number Diff line change
Expand Up @@ -265,4 +265,5 @@ specialization constants to set the values of the coefficients.
Output:

.. literalinclude:: /examples/specialization-constants.out
:language: none
:lines: 5-
1 change: 1 addition & 0 deletions source/iface/stream.rst
Original file line number Diff line number Diff line change
Expand Up @@ -231,4 +231,5 @@ Output text to the console in a kernel.
Output:

.. literalinclude:: /examples/stream.out
:language: none
:lines: 5-
2 changes: 2 additions & 0 deletions source/iface/usm_allocations.rst
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,7 @@ See :ref:`usm-implicit-data-movement` for usage.
Output:

.. literalinclude:: /examples/std-vector.out
:language: none
:lines: 5-

.. _usm-implicit-data-movement:
Expand All @@ -458,4 +459,5 @@ by the host code, all without programmer intervention.
Output:

.. literalinclude:: /examples/usm-implicit-data-movement.out
:language: none
:lines: 5-
4 changes: 2 additions & 2 deletions source/iface/vector-types.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1023,15 +1023,15 @@ stored in memory sequentially and contiguously and are aligned to
the size of the element type in bytes multiplied by the number
of elements:

::
.. code-block:: none

sizeof(DataT)⋅NumElements

The exception to this is when the number of element is three in which
case the SYCL ``sycl::vec`` is aligned to the size of the element type in
bytes multiplied by four:

::
.. code-block:: none

sizeof(DataT)⋅4

Expand Down