Skip to content

Commit

Permalink
Fix formattign
Browse files Browse the repository at this point in the history
  • Loading branch information
victor-eds committed Feb 15, 2024
1 parent c18c5c5 commit 0831685
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ implementation supports.

This extension adds a new device aspect:

[source,c++]
[source]
----
namespace sycl {
enum class aspect : /*unspecified*/ {
Expand All @@ -117,7 +117,7 @@ The `ext_oneapi_scla` aspect indicates that the device is capable of using the

=== The SCLA API

[source,c++]
[source]
----
namespace sycl::ext::oneapi::experimental {
template <typename ElementType, auto &SpecName,
Expand Down Expand Up @@ -160,7 +160,7 @@ This non-normative section shows some example usages of the extension.

=== Basic Usage

[source,c++]
[source]
----
constexpr specialization_id<int> size(1);
Expand All @@ -186,7 +186,7 @@ void run(queue q, const float *in, float *out, size_t n) {
The following example is intended to clarify storage duration of memory
allocated by `private_alloca`.

[source,c++]
[source]
----
constexpr specialization_id<int> size(1);
Expand Down Expand Up @@ -240,12 +240,12 @@ Initial design passes size as a `sycl::specialization_id<Integral> &` template
argument and receives a `sycl::kernel_handler &` as an argument. This decision
comes from the current situation in which `sycl::specialization_id` is a unique
identifier to represent a specialization constant and `sycl::kernel_handler` is
used to query the **value** of specialization constants with
used to query the *value* of specialization constants with
`sycl::kernel_handler::get_specialization_constant`. Having a
`sycl::specialization_constant` class representing specialization constants
would enable cleaner interfaces to this function like:

[source,c++]
[source]
----
namespace sycl::ext::oneapi::experimental {
template <typename ElementType, access::decorated DecorateAddress>
Expand Down

0 comments on commit 0831685

Please sign in to comment.