Skip to content

Commit fad4b77

Browse files
Merge pull request #1644 from IntelPython/spellings-in-code
Spellings in code
2 parents d8b9cce + f603fb1 commit fad4b77

File tree

9 files changed

+18
-18
lines changed

9 files changed

+18
-18
lines changed

dpctl/_sycl_queue.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -903,7 +903,7 @@ cdef class SyclQueue(_SyclQueue):
903903
@property
904904
def sycl_device(self):
905905
"""
906-
Returns :class:`.SyclDevice` targeted by this queuey.
906+
Returns :class:`.SyclDevice` targeted by this queue.
907907
908908
Returns:
909909
:class:`SyclDevice`

dpctl/memory/_memory.pyx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -357,9 +357,9 @@ cdef class _Memory:
357357
358358
* ``"data"`` (Tuple[int, bool])
359359
unified address space pointer presented as Python integer
360-
and a Boolean value of 'writeable' flag. If ``False`` the
360+
and a Boolean value of 'writable' flag. If ``False`` the
361361
allocation is read-only. The return flag is always set to
362-
writeable.
362+
writable.
363363
* ``"shape"`` (Tuple[int])
364364
Extent of array in bytes. Shape is always 1-tuple for
365365
this object.
@@ -789,7 +789,7 @@ cdef class MemoryUSMHost(_Memory):
789789
queue (Optional[:class:`dpctl.SyclQueue`]):
790790
SYCL queue associated with return allocation
791791
instance. Allocation is made in host memory accessible
792-
to all device in te SYCL context from the queue.
792+
to all device in the SYCL context from the queue.
793793
Allocation is bound to SYCL context from the queue.
794794
If ``queue`` is ``None`` a cached
795795
default-constructed :class:`dpctl.SyclQueue` is

dpctl/utils/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def intel_device_info(dev, /):
6666
Unsupported descriptors are omitted from the dictionary.
6767
6868
Descriptors other than the PCI identifier are supported only
69-
for :class:`.SyclDevices` with Leve-Zero backend.
69+
for :class:`.SyclDevices` with Level-Zero backend.
7070
"""
7171
if not isinstance(dev, SyclDevice):
7272
raise TypeError(f"Expected dpctl.SyclDevice, got {type(dev)}")

libsyclinterface/include/syclinterface/Support/MemOwnershipAttrs.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
* the ownership of the object and the user must not use the object as an
5656
* argument to another function.
5757
*
58-
* The __dpctl_take attribute mens that the function destroys it before the
58+
* The __dpctl_take attribute means that the function destroys it before the
5959
* function returns, and the caller must not use the object again in any other
6060
* function. If the pointer annotated with __dpctl_take is NULL then it is
6161
* treated as an error, since it may prevent the normal behavior of the

libsyclinterface/include/syclinterface/dpctl_service.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ DPCTL_API
5454
void DPCTLService_InitLogger(const char *app_name, const char *log_dir);
5555

5656
/*!
57-
* @brief Finilize logger if enabled, no-op otherwise.
57+
* @brief Finalize logger if enabled, no-op otherwise.
5858
*
5959
* @ingroup Service
6060
*/

libsyclinterface/include/syclinterface/dpctl_sycl_platform_interface.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ DPCTLPlatform_GetName(__dpctl_keep const DPCTLSyclPlatformRef PRef);
124124
* @brief Returns a C string corresponding to the vendor providing the platform.
125125
*
126126
* @param PRef Opaque pointer to a sycl::platform
127-
* @return A C string containing the name of the vendor provifing the
127+
* @return A C string containing the name of the vendor providing the
128128
* platform.
129129
* @ingroup PlatformInterface
130130
*/

libsyclinterface/include/syclinterface/dpctl_sycl_platform_manager.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ DPCTL_C_EXTERN_C_BEGIN
4444
DPCTL_DECLARE_VECTOR(Platform)
4545

4646
/*!
47-
* @brief Prints out information about the sycl::platform argument.
47+
* @brief Prints out information about the ``sycl::platform`` argument.
4848
*
4949
* The helper function is used to print metadata about a given platform. The
5050
* amount of information printed out is controlled by the verbosity level.
@@ -57,7 +57,7 @@ DPCTL_DECLARE_VECTOR(Platform)
5757
* platform.
5858
*
5959
* @param PRef A #DPCTLSyclPlatformRef opaque pointer.
60-
* @param verbosity Verbosilty level to control how much information is
60+
* @param verbosity Verbosity level to control how much information is
6161
* printed out.
6262
*/
6363
DPCTL_API
@@ -78,7 +78,7 @@ void DPCTLPlatformMgr_PrintInfo(__dpctl_keep const DPCTLSyclPlatformRef PRef,
7878
* platform.
7979
*
8080
* @param PRef A #DPCTLSyclPlatformRef opaque pointer.
81-
* @param verbosity Verbosilty level to control how much information is
81+
* @param verbosity Verbosity level to control how much information is
8282
* printed out.
8383
* @return A formatted C string capturing the information about the
8484
* sycl::platform argument.

libsyclinterface/include/syclinterface/dpctl_sycl_queue_interface.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ DPCTL_C_EXTERN_C_BEGIN
4141

4242
/*!
4343
* @brief A wrapper for sycl::queue constructor to construct a new queue from
44-
* the provided context, device, async handler and propertis bit flags.
44+
* the provided context, device, async handler and properties bit flags.
4545
*
4646
* @param CRef An opaque pointer to a sycl::context.
4747
* @param DRef An opaque pointer to a sycl::device
@@ -67,7 +67,7 @@ DPCTLQueue_Create(__dpctl_keep const DPCTLSyclContextRef CRef,
6767
* @brief Constructs a ``sycl::queue`` object of the specified SYCL device.
6868
*
6969
* Constructs a new SYCL queue for the specified SYCL device. The
70-
* behaviour of this function differs from the following queue constructor:
70+
* behavior of this function differs from the following queue constructor:
7171
*
7272
* @code
7373
* queue(
@@ -81,9 +81,9 @@ DPCTLQueue_Create(__dpctl_keep const DPCTLSyclContextRef CRef,
8181
* context for the device and instead look to reuse a previously cached
8282
* SYCL context for the device (refer dpctl_sycl_device_manager.cpp).
8383
* DPCTL caches contexts only for root devices and for all custom devices the
84-
* function begaves the same way as the SYCL constructor.
84+
* function behaves the same way as the SYCL constructor.
8585
*
86-
* @param dRef An opaque pointer to a ``sycl::device``.
86+
* @param DRef An opaque pointer to a ``sycl::device``.
8787
* @param handler A callback function that will be invoked by the
8888
* async_handler used during queue creation. Can be
8989
* NULL if no async_handler is needed.
@@ -98,7 +98,7 @@ DPCTLQueue_Create(__dpctl_keep const DPCTLSyclContextRef CRef,
9898
*/
9999
DPCTL_API
100100
__dpctl_give DPCTLSyclQueueRef
101-
DPCTLQueue_CreateForDevice(__dpctl_keep const DPCTLSyclDeviceRef dRef,
101+
DPCTLQueue_CreateForDevice(__dpctl_keep const DPCTLSyclDeviceRef DRef,
102102
error_handler_callback *handler,
103103
int properties);
104104

libsyclinterface/include/syclinterface/dpctl_sycl_queue_manager.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ DPCTL_API
9595
void DPCTLQueueMgr_SetGlobalQueue(__dpctl_keep const DPCTLSyclQueueRef QRef);
9696

9797
/*!
98-
* @brief Pushes the passed in sycl::queue object to the queue manager's
98+
* @brief Pushes the passed in ``sycl::queue`` object to the queue manager's
9999
* internal stack of queues and makes the queue the current queue.
100100
*
101101
* The queue manager maintains a thread-local stack of sycl::queue
@@ -104,7 +104,7 @@ void DPCTLQueueMgr_SetGlobalQueue(__dpctl_keep const DPCTLSyclQueueRef QRef);
104104
* current queue is the queue returned by the DPCTLQueueMgr_GetCurrentQueue()
105105
* function.
106106
*
107-
* @param QRef An opaque reference to a syc::queue.
107+
* @param QRef An opaque reference to a ``sycl::queue``.
108108
* @ingroup QueueManager
109109
*/
110110
DPCTL_API

0 commit comments

Comments
 (0)