Skip to content

Commit 31d8329

Browse files
authored
[SYCL][NFC] Fix some spelling errors in SYCL project (#20930)
The errors are fixed in the documentation and the code comments.
1 parent d744576 commit 31d8329

36 files changed

+37
-37
lines changed

sycl/doc/FAQ.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ design/CompilerAndRuntimeDesign.md) document.
6060
### Q: What happens if I run my SYCL application on a machine without a supported backend?
6161
**A:** If a SYCL application is unable to find a suitable device, the SYCL
6262
objects (`sycl::context`, `sycl::queue`, etc.) or the SYCL device selector (See
63-
[SYCL 2020 specificaion 4.6.1.1](https://registry.khronos.org/SYCL/specs/sycl-2020/html/sycl-2020.html#sec:device-selection))
63+
[SYCL 2020 specification 4.6.1.1](https://registry.khronos.org/SYCL/specs/sycl-2020/html/sycl-2020.html#sec:device-selection))
6464
will throw a `sycl::exception` with `errc::runtime` error code.
6565

6666

sycl/doc/design/CompileTimeProperties.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -611,7 +611,7 @@ names and values of the properties in the following sequence:
611611
* Etc.
612612

613613
Every field in the global variable pointed to by this parameter are string
614-
literals in seperate global variables. Property values are converted to strings
614+
literals in separate global variables. Property values are converted to strings
615615
in the same way as described above, except that the `nullptr` value and the
616616
empty string (`""`) is represented as `null` in the global variable field.
617617

sycl/doc/design/GlobalObjectsInRuntime.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
C++ standard does not specify the order in which global objects are constructed
66
or destroyed. If global objects somehow interact with each other, there's a
77
chance, that one of the objects has not been initialized or has been destroyed
8-
by the time of interaction. This problem is also refered to as
8+
by the time of interaction. This problem is also referred to as
99
[static initialization order fiasco].
1010

1111
The only two things C++ guarantees is that global objects are constructed before

sycl/doc/design/KernelParameterPassing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ other host fields replaced with device-specific fields and
136136
the host data pointer field must be translated to an OpenCL
137137
or L0 memory object before it can be passed as a kernel parameter.
138138
To enable all of this, the parameters of the `sycl::accessor`
139-
and `sycl::sampler` init functions are transfered from
139+
and `sycl::sampler` init functions are transferred from
140140
host to device separately. The values received on the device
141141
are passed to the `init` functions executed on the device,
142142
which results in the reassembly of the SYCL object in a form usable on the device.

sycl/doc/design/OffloadDesign.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ Example usage of the external `llvm-offload-binary` call:
7878
The `clang-linker-wrapper` provides the interface to perform the needed link
7979
steps when consuming fat binaries. The linker wrapper performs a majority of
8080
the work involved during the link step during an offload compilation,
81-
significantly reducing the amount of work that is occuring in the compiler
81+
significantly reducing the amount of work that is occurring in the compiler
8282
driver. From the compilation perspective, the linker wrapper replaces the
8383
typical call to the host link. This allows for the responsibility of the
8484
compiler driver to be nearly identical when performing a regular compilation

sycl/doc/syclgraph/SYCLGraphUsageGuide.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,7 @@ sycl::buffer bufferB{...};
576576
sycl_ext::dynamic_parameter dynParamAccessor(myGraph, bufferA.get_access());
577577

578578
sycl_ext::node kernelNode = myGraph.add([&](handler& cgh) {
579-
// Require the accessor contained in the dynamic paramter
579+
// Require the accessor contained in the dynamic parameter
580580
cgh.require(dynParamAccessor);
581581
// Set the arg on the kernel using the dynamic parameter directly
582582
cgh.set_args(dynParamAccessor);

sycl/include/sycl/detail/accessor_iterator.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ template <typename DataT, int Dimensions> class accessor_iterator {
165165
// Fields below are used (and changed to be non-zero) only if we deal with
166166
// a ranged accessor.
167167
//
168-
// TODO: consider making their existance dependable on Dimensions template
168+
// TODO: consider making their existence dependable on Dimensions template
169169
// parameter, because not all of them are needed for all possible dimensions.
170170

171171
// Three field below allow us to calculate an absolute offset to an accessor's

sycl/include/sycl/ext/intel/esimd/detail/simd_obj_impl.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1022,7 +1022,7 @@ class [[__sycl_detail__::__uses_aspects__(
10221022
/// Unary logical negation operator, available in all subclasses, but only for
10231023
/// integral element types (\c simd_mask included).
10241024
/// Similarly to C++, where !x returns bool, !simd returns a simd_mask, where
1025-
/// each element is a result of comparision with zero.
1025+
/// each element is a result of comparison with zero.
10261026
/// @return A \c simd_mask instance where each element is a result of
10271027
/// comparison of the original element with zero.
10281028
template <class T1 = Ty, class = std::enable_if_t<std::is_integral_v<T1>>>

sycl/include/sycl/group.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ inline namespace _V1 {
3939
template <int Dimensions> class h_item;
4040

4141
namespace detail {
42-
// Implements a barrier accross work items within a work group.
42+
// Implements a barrier across work items within a work group.
4343
inline void workGroupBarrier() {
4444
#ifdef __SYCL_DEVICE_ONLY__
4545
constexpr uint32_t flags =

sycl/include/sycl/interop_handle.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ class interop_handle {
109109
#endif
110110
}
111111

112-
/// Returns an underlying native backend object associated with teh queue
112+
/// Returns an underlying native backend object associated with the queue
113113
/// that the host task was submitted to. If the command group was submitted
114114
/// with a secondary queue and the fall-back was triggered, the queue that
115115
/// is associated with the interop_handle must be the fall-back queue.

0 commit comments

Comments
 (0)