Skip to content

Commit 1e29cef

Browse files
committed
Add mapping to dpctl docs in sphinx configuration
1 parent e067321 commit 1e29cef

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

doc/conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,7 @@ def _can_document_member(member, *args, **kwargs):
220220
"python": ("https://docs.python.org/3/", None),
221221
"numpy": ("https://docs.scipy.org/doc/numpy/", None),
222222
"scipy": ("https://docs.scipy.org/doc/scipy/reference/", None),
223+
"dpctl": ("https://intelpython.github.io/dpctl/latest/", None),
223224
}
224225

225226
# If true, `todo` and `todoList` produce output, else they produce nothing.

dpnp/dpnp_iface_arraycreation.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2066,20 +2066,20 @@ def from_dlpack(x, /, *, device=None, copy=None):
20662066
20672067
* ``None`` : The data remains on the same device.
20682068
* oneAPI filter selector string : SYCL device selected by filter
2069-
selector string.
2069+
selector string.
20702070
* :class:`dpctl.SyclDevice` : Explicit SYCL device that must correspond
2071-
to a non-partitioned SYCL device.
2071+
to a non-partitioned SYCL device.
20722072
* :class:`dpctl.SyclQueue` : Implies SYCL device targeted by the SYCL
2073-
queue.
2073+
queue.
20742074
* :class:`dpctl.tensor.Device` : Implies SYCL device
2075-
``device.sycl_queue``. The `device` object is obtained via
2076-
:attr:`dpctl.tensor.usm_ndarray.device`.
2075+
``device.sycl_queue``. The `device` object is obtained via
2076+
:attr:`dpctl.tensor.usm_ndarray.device`.
20772077
* ``(device_type, device_id)`` : 2-tuple matching the format of the
2078-
output of the ``__dlpack_device__`` method: an integer enumerator
2079-
representing the device type followed by an integer representing
2080-
the index of the device. The only supported
2081-
:class:`dpctl.tensor.DLDeviceType` device types are ``"kDLCPU"``
2082-
and ``"kDLOneAPI"``.
2078+
output of the ``__dlpack_device__`` method: an integer enumerator
2079+
representing the device type followed by an integer representing
2080+
the index of the device. The only supported
2081+
:class:`dpctl.tensor.DLDeviceType` device types are ``"kDLCPU"``
2082+
and ``"kDLOneAPI"``.
20832083
20842084
Default: ``None``.
20852085
copy : {bool, None}, optional

0 commit comments

Comments
 (0)