Skip to content

Commit d0fafce

Browse files
Removed uses of cl::sycl in comments in and header files
Removed use of deprecated `sycl::info::device::profiling` from `print_device_info` function. Removed `DPCTLDevice_IsUnifiedHostMemory` which was DPCTL interface to deprecated `info::device::host_unified_memory` descriptor now that aspects are implemented.
1 parent 16a925e commit d0fafce

17 files changed

+21
-59
lines changed

dpctl/_backend.pxd

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,6 @@ cdef extern from "syclinterface/dpctl_sycl_device_interface.h":
175175
cdef bool DPCTLDevice_IsCPU(const DPCTLSyclDeviceRef DRef)
176176
cdef bool DPCTLDevice_IsGPU(const DPCTLSyclDeviceRef DRef)
177177
cdef bool DPCTLDevice_IsHost(const DPCTLSyclDeviceRef DRef)
178-
cdef bool DPCTLDevice_IsHostUnifiedMemory(const DPCTLSyclDeviceRef DRef)
179178
cdef bool DPCTLDevice_GetSubGroupIndependentForwardProgress(const DPCTLSyclDeviceRef DRef)
180179
cdef uint32_t DPCTLDevice_GetPreferredVectorWidthChar(const DPCTLSyclDeviceRef DRef)
181180
cdef uint32_t DPCTLDevice_GetPreferredVectorWidthShort(const DPCTLSyclDeviceRef DRef)

dpctl/_sycl_device.pxd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ cdef public api class _SyclDevice [
3333
object Py_SyclDeviceObject,
3434
type Py_SyclDeviceType
3535
]:
36-
""" A helper data-owner class to abstract a `cl::sycl::device` instance.
36+
""" A helper data-owner class to abstract a `sycl::device` instance.
3737
"""
3838
cdef DPCTLSyclDeviceRef _device_ref
3939
cdef const char *_vendor

dpctl/_sycl_device.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ cdef class SyclSubDeviceCreationError(Exception):
129129

130130
cdef class _SyclDevice:
131131
"""
132-
A helper data-owner class to abstract a cl::sycl::device instance.
132+
A helper data-owner class to abstract a `sycl::device` instance.
133133
"""
134134

135135
def __dealloc__(self):

dpctl/_sycl_event.pxd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ cdef public api class SyclEvent(_SyclEvent) [
3636
object PySyclEventObject,
3737
type PySyclEventType
3838
]:
39-
""" Python wrapper class for a ``cl::sycl::event``
39+
""" Python wrapper class for a ``sycl::event``
4040
"""
4141
@staticmethod
4242
cdef SyclEvent _create (DPCTLSyclEventRef event)

dpctl/_sycl_event.pyx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -105,11 +105,11 @@ cdef class _SyclEvent:
105105
cdef class SyclEvent(_SyclEvent):
106106
"""
107107
SyclEvent(arg=None)
108-
Python class representing ``cl::sycl::event``. There are multiple
108+
Python class representing ``sycl::event``. There are multiple
109109
ways to create a :class:`dpctl.SyclEvent` object:
110110
111111
- Invoking the constructor with no arguments creates a ready event
112-
using the default constructor of the ``cl::sycl::event``.
112+
using the default constructor of the ``sycl::event``.
113113
114114
:Example:
115115
.. code-block:: python
@@ -248,19 +248,19 @@ cdef class SyclEvent(_SyclEvent):
248248

249249
def _get_capsule(self):
250250
"""
251-
Returns a copy of the underlying ``cl::sycl::event`` pointer as a void
251+
Returns a copy of the underlying ``sycl::event`` pointer as a void
252252
pointer inside a named ``PyCapsule`` that has the name
253253
**SyclEventRef**. The ownership of the pointer inside the capsule is
254254
passed to the caller, and pointer is deleted when the capsule goes out
255255
of scope.
256256
257257
Returns:
258258
:class:`pycapsule`: A capsule object storing a copy of the
259-
``cl::sycl::event`` pointer belonging to a
259+
``sycl::event`` pointer belonging to a
260260
:class:`dpctl.SyclEvent` instance.
261261
Raises:
262262
ValueError: If the ``DPCTLEvent_Copy`` fails to copy the
263-
``cl::sycl::event`` pointer.
263+
``sycl::event`` pointer.
264264
265265
"""
266266
cdef DPCTLSyclEventRef ERef = NULL
@@ -334,7 +334,7 @@ cdef class SyclEvent(_SyclEvent):
334334
def profiling_info_submit(self):
335335
"""
336336
Returns the 64-bit time value in nanoseconds
337-
when ``cl::sycl::command_group`` was submitted to the queue.
337+
when ``sycl::command_group`` was submitted to the queue.
338338
"""
339339
cdef uint64_t profiling_info_submit = 0
340340
profiling_info_submit = DPCTLEvent_GetProfilingInfoSubmit(
@@ -346,7 +346,7 @@ cdef class SyclEvent(_SyclEvent):
346346
def profiling_info_start(self):
347347
"""
348348
Returns the 64-bit time value in nanoseconds
349-
when ``cl::sycl::command_group`` started execution on the device.
349+
when ``sycl::command_group`` started execution on the device.
350350
"""
351351
cdef uint64_t profiling_info_start = 0
352352
profiling_info_start = DPCTLEvent_GetProfilingInfoStart(self._event_ref)
@@ -356,7 +356,7 @@ cdef class SyclEvent(_SyclEvent):
356356
def profiling_info_end(self):
357357
"""
358358
Returns the 64-bit time value in nanoseconds
359-
when ``cl::sycl::command_group`` finished execution on the device.
359+
when ``sycl::command_group`` finished execution on the device.
360360
"""
361361
cdef uint64_t profiling_info_end = 0
362362
profiling_info_end = DPCTLEvent_GetProfilingInfoEnd(self._event_ref)

dpctl/_sycl_platform.pxd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ from ._backend cimport DPCTLSyclDeviceSelectorRef, DPCTLSyclPlatformRef
2525

2626

2727
cdef class _SyclPlatform:
28-
''' A helper metaclass to abstract a cl::sycl::platform instance.
28+
''' A helper metaclass to abstract a ``sycl::platform`` instance.
2929
'''
3030
cdef DPCTLSyclPlatformRef _platform_ref
3131
cdef const char *_vendor

dpctl/_sycl_platform.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ cdef void _init_helper(_SyclPlatform platform, DPCTLSyclPlatformRef PRef):
8181

8282
cdef class SyclPlatform(_SyclPlatform):
8383
""" SyclPlatform(self, arg=None)
84-
Python class representing ``cl::sycl::platform`` class.
84+
Python class representing ``sycl::platform`` class.
8585
8686
SyclPlatform() - create platform selected by sycl::default_selector
8787
SyclPlatform(filter_selector) - create platform selected by filter

dpctl/_sycl_queue.pyx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ cdef class _SyclQueue:
186186
cdef class SyclQueue(_SyclQueue):
187187
"""
188188
SyclQueue(*args, **kwargs)
189-
Python class representing ``cl::sycl::queue``. There are multiple
189+
Python class representing ``sycl::queue``. There are multiple
190190
ways to create a :class:`dpctl.SyclQueue` object:
191191
192192
- Invoking the constructor with no arguments creates a context using
@@ -258,7 +258,7 @@ cdef class SyclQueue(_SyclQueue):
258258
context will be created from the specified device.
259259
dev (str, :class:`dpctl.SyclDevice`, capsule, optional): Sycl device
260260
to create :class:`dpctl.SyclQueue` from. If not specified, sycl
261-
device selected by ``cl::sycl::default_selector`` is used.
261+
device selected by ``sycl::default_selector`` is used.
262262
The argument must be explicitly specified if `ctxt` argument is
263263
provided.
264264

examples/cython/sycl_direct_linkage/_buffer_example.pyx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@ import numpy as np
2424
from cython.operator cimport dereference as deref
2525

2626

27-
cdef extern from "CL/sycl.hpp" namespace "cl::sycl":
27+
cdef extern from "CL/sycl.hpp" namespace "sycl":
2828
cdef cppclass queue nogil:
2929
pass
3030

3131

3232
cdef extern from "sycl_function.hpp":
3333
int c_columnwise_total(
34-
queue& q, size_t n, size_t m, double *m, double *ct
34+
queue q, size_t n, size_t m, double *m, double *ct
3535
) nogil
3636

3737

examples/cython/sycl_direct_linkage/sycl_function.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
#include <CL/sycl.hpp>
3232
#include <oneapi/mkl.hpp>
3333

34-
int c_columnwise_total(sycl::queue &q,
34+
int c_columnwise_total(sycl::queue q,
3535
size_t n,
3636
size_t m,
3737
double *mat,

0 commit comments

Comments
 (0)