Skip to content

Commit

Permalink
Satisfy reflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Pennycook committed Oct 25, 2024
1 parent dde74de commit 2af93c7
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions adoc/extensions/sycl_khr_addrspace_cast.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
[code]#sycl::address_space_cast# does two things: first, it checks whether a
given raw pointer can be cast to a specific address space; and second, it
performs the requested cast.
In cases where a developer is asserting that a raw pointer points to an
object in a specific address space, run-time checks are not required and may
have undesirable performance impact.
In cases where a developer is asserting that a raw pointer points to an object
in a specific address space, run-time checks are not required and may have
undesirable performance impact.

This extension splits [code]#sycl::address_space_cast# into two functions:

Expand All @@ -22,8 +22,7 @@ This extension has no dependencies on other extensions.
== Feature test macro

An implementation supporting this extension must predefine the macro
[code]#SYCL_KHR_ADDRSPACE_CAST# to one of the values defined in the table
below.
[code]#SYCL_KHR_ADDRSPACE_CAST# to one of the values defined in the table below.

[%header,cols="1,5"]
|===
Expand Down Expand Up @@ -113,8 +112,8 @@ decoration.
{note}The precondition prevents reasoning about the address space of pointers
originating from another work-item (in the case of [code]#private# pointers) or
another work-group (in the case of [code]#local# pointers).
Such pointers could not be dereferenced by the calling work-item, and it is
thus unclear that being able to reason about the address space would be useful.
Such pointers could not be dereferenced by the calling work-item, and it is thus
unclear that being able to reason about the address space would be useful.
Limiting usage to accessible pointers is expected to result in simpler and
faster implementations.{endnote}

Expand Down

0 comments on commit 2af93c7

Please sign in to comment.