Skip to content

Commit d93a617

Browse files
author
github-actions[doc-deploy-bot]
committed
Docs for pull request 2071
1 parent 3a4baf0 commit d93a617

File tree

955 files changed

+454947
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

955 files changed

+454947
-0
lines changed

pulls/2071/_modules/dpctl.html

+980
Large diffs are not rendered by default.

pulls/2071/_modules/dpctl/_device_selection.html

+929
Large diffs are not rendered by default.

pulls/2071/_modules/dpctl/_sycl_timer.html

+1,119
Large diffs are not rendered by default.

pulls/2071/_modules/dpctl/enum_types.html

+966
Large diffs are not rendered by default.

pulls/2071/_modules/dpctl/tensor/_array_api.html

+1,073
Large diffs are not rendered by default.

pulls/2071/_modules/dpctl/tensor/_clip.html

+1,594
Large diffs are not rendered by default.

pulls/2071/_modules/dpctl/tensor/_copy_utils.html

+1,936
Large diffs are not rendered by default.

pulls/2071/_modules/dpctl/tensor/_ctors.html

+2,790
Large diffs are not rendered by default.

pulls/2071/_modules/dpctl/tensor/_device.html

+1,020
Large diffs are not rendered by default.

pulls/2071/_modules/dpctl/tensor/_indexing_functions.html

+1,456
Large diffs are not rendered by default.

pulls/2071/_modules/dpctl/tensor/_linear_algebra_functions.html

+1,834
Large diffs are not rendered by default.

pulls/2071/_modules/dpctl/tensor/_manipulation_functions.html

+1,896
Large diffs are not rendered by default.

pulls/2071/_modules/dpctl/tensor/_reduction.html

+1,649
Large diffs are not rendered by default.

pulls/2071/_modules/dpctl/tensor/_reshape.html

+1,025
Large diffs are not rendered by default.

pulls/2071/_modules/dpctl/tensor/_search_functions.html

+1,234
Large diffs are not rendered by default.

pulls/2071/_modules/dpctl/tensor/_searchsorted.html

+988
Large diffs are not rendered by default.

pulls/2071/_modules/dpctl/tensor/_set_functions.html

+1,457
Large diffs are not rendered by default.

pulls/2071/_modules/dpctl/tensor/_sorting.html

+1,265
Large diffs are not rendered by default.

pulls/2071/_modules/dpctl/tensor/_statistical_functions.html

+1,198
Large diffs are not rendered by default.

pulls/2071/_modules/dpctl/tensor/_testing.html

+983
Large diffs are not rendered by default.

pulls/2071/_modules/dpctl/tensor/_type_utils.html

+1,812
Large diffs are not rendered by default.

pulls/2071/_modules/dpctl/tensor/_utility_functions.html

+1,322
Large diffs are not rendered by default.

pulls/2071/_modules/dpctl/utils/_intel_device_info.html

+944
Large diffs are not rendered by default.

pulls/2071/_modules/dpctl/utils/_onetrace_context.html

+927
Large diffs are not rendered by default.

pulls/2071/_modules/index.html

+867
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
.. _dpctl_constants:
2+
3+
Constants
4+
=========
5+
6+
The following constants are defined in :py:mod:`dpctl`:
7+
8+
.. currentmodule:: dpctl
9+
10+
.. autodata:: device_type
11+
12+
.. autodata:: backend_type
13+
14+
.. autodata:: event_status_type
15+
16+
.. autodata:: global_mem_cache_type
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
.. rubric:: Use :meth:`usm_ndarray.to_device` to migrate array to different device
2+
3+
.. code-block:: python
4+
:caption: Migrate array to a different device
5+
6+
from dpctl import tensor
7+
8+
a = tensor.zeros(100, device="cpu")
9+
b = a.to_device("gpu")
10+
11+
12+
.. rubric:: Use :meth:`usm_ndarray.device` to specify placement of new array
13+
14+
.. code-block:: python
15+
:caption: Create a USM-device empty array on the same device as another array
16+
17+
from dpctl import tensor
18+
19+
d = tensor.eye(100)
20+
u = tensor.full(d.shape, fill_value=0.5, usm_type="device", device=d.device)
21+
22+
.. rubric:: Use :meth:`usm_ndarray.mT` to transpose matrices in a array thought of as a stack of matrices
23+
24+
.. code-block:: python
25+
:caption: Transpose an array
26+
27+
from dpctl import tensor
28+
29+
# create stack of matrices
30+
proto = tensor.asarray([[2, 1], [3, 4]])
31+
ar = tensor.tile(proto, (5, 10, 10))
32+
33+
# transpose each matrix in the stack
34+
arT = ar.mT
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
.. _filter_selector_string:
2+
3+
Filter Selector String
4+
======================
5+
6+
Filter selector string is a way to refer to unpartitioned SYCL devices
7+
proposed in :oneapi_filter_selection:`sycl_ext_oneapi_filter_selector <>`
8+
extension to SYCL standard.
9+
10+
This document captures aspects of the referenced document relevant
11+
to :mod:`dpctl`.
12+
13+
A filter selector string defines one or more filters, which must be
14+
separated using ``","`` character. A filter is specified as a
15+
triple of the form:
16+
17+
.. code-block:: text
18+
19+
Backend:DeviceType:RelativeDeviceNumber
20+
21+
Every element of the triple is optional, but a filter must contain at
22+
least one component.
23+
24+
``Backend`` specifies the desired backend of targeted devices, while
25+
``DeviceType`` specifies the type of targeted devices.
26+
``RelativeDeviceNumber`` refers to the number of the device that matches
27+
any other given requirements, starting from `0` to marking the
28+
"first device that matches the requirements".
29+
30+
Attempting to use a non-conforming string in places where filter selector
31+
string is expected will raise an exception.
32+
33+
Supported values for ``Backend`` are:
34+
35+
.. list-table::
36+
37+
* - cuda
38+
- opencl
39+
- level_zero
40+
- hip
41+
42+
Supported values for ``DeviceType`` are:
43+
44+
.. list-table::
45+
46+
* - accelerator
47+
- cpu
48+
- gpu
49+
50+
Filter selector strings can be used as arguments to constructors of
51+
:py:class:`dpctl.SyclDevice`, :py:class:`dpctl.SyclContext`,
52+
:py:class:`dpctl.SyclPlatform`, :py:class:`dpctl.SyclQueue`,
53+
or :py:class:`dpctl.tensor.Device` classes, as well as values of
54+
``device`` keyword in :ref:`array creation functions <dpctl_tensor_creation_functions>`.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
.. _Flags_class:
2+
3+
``Flags`` class
4+
===================
5+
6+
.. autoclass:: dpctl.tensor._flags.Flags
7+
:members:
8+
9+
Note that dictionary-like access to some members is permitted:
10+
11+
"C", "C_CONTIGUOUS":
12+
Equivalent to ``c_contiguous``
13+
"F", "F_CONTIGUOUS":
14+
Equivalent to ``f_contiguous``
15+
"W", "WRITABLE":
16+
Equivalent to ``writable``
17+
"FC":
18+
Equivalent to ``fc``
19+
"FNC":
20+
Equivalent to ``fnc``
21+
"FORC", "CONTIGUOUS":
22+
Equivalent to ``forc`` and ``contiguous``
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
dpctl.SyclContext
2+
=================
3+
4+
.. currentmodule:: dpctl
5+
6+
.. autoclass:: SyclContext
7+
8+
9+
10+
.. rubric:: Methods
11+
12+
.. autosummary::
13+
:toctree: generated
14+
15+
~SyclContext.addressof_ref
16+
~SyclContext.get_devices
17+
18+
19+
20+
21+
22+
.. rubric:: Attributes
23+
24+
.. autosummary::
25+
:toctree: generated
26+
27+
~SyclContext.device_count
28+
29+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
dpctl.SyclContextCreationError
2+
==============================
3+
4+
.. currentmodule:: dpctl
5+
6+
.. autoexception:: SyclContextCreationError
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,107 @@
1+
dpctl.SyclDevice
2+
================
3+
4+
.. currentmodule:: dpctl
5+
6+
.. autoclass:: SyclDevice
7+
8+
9+
10+
.. rubric:: Methods
11+
12+
.. autosummary::
13+
:toctree: generated
14+
15+
~SyclDevice.addressof_ref
16+
~SyclDevice.component_devices
17+
~SyclDevice.create_sub_devices
18+
~SyclDevice.get_device_id
19+
~SyclDevice.get_filter_string
20+
~SyclDevice.get_unpartitioned_parent_device
21+
~SyclDevice.print_device_info
22+
23+
24+
25+
26+
27+
.. rubric:: Attributes
28+
29+
.. autosummary::
30+
:toctree: generated
31+
32+
~SyclDevice.backend
33+
~SyclDevice.composite_device
34+
~SyclDevice.default_selector_score
35+
~SyclDevice.device_type
36+
~SyclDevice.driver_version
37+
~SyclDevice.filter_string
38+
~SyclDevice.global_mem_cache_line_size
39+
~SyclDevice.global_mem_cache_size
40+
~SyclDevice.global_mem_cache_type
41+
~SyclDevice.global_mem_size
42+
~SyclDevice.has_aspect_accelerator
43+
~SyclDevice.has_aspect_atomic64
44+
~SyclDevice.has_aspect_cpu
45+
~SyclDevice.has_aspect_custom
46+
~SyclDevice.has_aspect_emulated
47+
~SyclDevice.has_aspect_fp16
48+
~SyclDevice.has_aspect_fp64
49+
~SyclDevice.has_aspect_gpu
50+
~SyclDevice.has_aspect_host_debuggable
51+
~SyclDevice.has_aspect_image
52+
~SyclDevice.has_aspect_is_component
53+
~SyclDevice.has_aspect_is_composite
54+
~SyclDevice.has_aspect_online_compiler
55+
~SyclDevice.has_aspect_online_linker
56+
~SyclDevice.has_aspect_queue_profiling
57+
~SyclDevice.has_aspect_usm_atomic_host_allocations
58+
~SyclDevice.has_aspect_usm_atomic_shared_allocations
59+
~SyclDevice.has_aspect_usm_device_allocations
60+
~SyclDevice.has_aspect_usm_host_allocations
61+
~SyclDevice.has_aspect_usm_shared_allocations
62+
~SyclDevice.has_aspect_usm_system_allocations
63+
~SyclDevice.image_2d_max_height
64+
~SyclDevice.image_2d_max_width
65+
~SyclDevice.image_3d_max_depth
66+
~SyclDevice.image_3d_max_height
67+
~SyclDevice.image_3d_max_width
68+
~SyclDevice.is_accelerator
69+
~SyclDevice.is_cpu
70+
~SyclDevice.is_gpu
71+
~SyclDevice.local_mem_size
72+
~SyclDevice.max_clock_frequency
73+
~SyclDevice.max_compute_units
74+
~SyclDevice.max_mem_alloc_size
75+
~SyclDevice.max_num_sub_groups
76+
~SyclDevice.max_read_image_args
77+
~SyclDevice.max_work_group_size
78+
~SyclDevice.max_work_item_dims
79+
~SyclDevice.max_work_item_sizes
80+
~SyclDevice.max_work_item_sizes1d
81+
~SyclDevice.max_work_item_sizes2d
82+
~SyclDevice.max_work_item_sizes3d
83+
~SyclDevice.max_write_image_args
84+
~SyclDevice.name
85+
~SyclDevice.native_vector_width_char
86+
~SyclDevice.native_vector_width_double
87+
~SyclDevice.native_vector_width_float
88+
~SyclDevice.native_vector_width_half
89+
~SyclDevice.native_vector_width_int
90+
~SyclDevice.native_vector_width_long
91+
~SyclDevice.native_vector_width_short
92+
~SyclDevice.parent_device
93+
~SyclDevice.partition_max_sub_devices
94+
~SyclDevice.preferred_vector_width_char
95+
~SyclDevice.preferred_vector_width_double
96+
~SyclDevice.preferred_vector_width_float
97+
~SyclDevice.preferred_vector_width_half
98+
~SyclDevice.preferred_vector_width_int
99+
~SyclDevice.preferred_vector_width_long
100+
~SyclDevice.preferred_vector_width_short
101+
~SyclDevice.profiling_timer_resolution
102+
~SyclDevice.sub_group_independent_forward_progress
103+
~SyclDevice.sub_group_sizes
104+
~SyclDevice.sycl_platform
105+
~SyclDevice.vendor
106+
107+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
dpctl.SyclDeviceCreationError
2+
=============================
3+
4+
.. currentmodule:: dpctl
5+
6+
.. autoexception:: SyclDeviceCreationError
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
dpctl.SyclEvent
2+
===============
3+
4+
.. currentmodule:: dpctl
5+
6+
.. autoclass:: SyclEvent
7+
8+
9+
10+
.. rubric:: Methods
11+
12+
.. autosummary::
13+
:toctree: generated
14+
15+
~SyclEvent.addressof_ref
16+
~SyclEvent.get_wait_list
17+
~SyclEvent.wait
18+
~SyclEvent.wait_for
19+
20+
21+
22+
23+
24+
.. rubric:: Attributes
25+
26+
.. autosummary::
27+
:toctree: generated
28+
29+
~SyclEvent.backend
30+
~SyclEvent.execution_status
31+
~SyclEvent.profiling_info_end
32+
~SyclEvent.profiling_info_start
33+
~SyclEvent.profiling_info_submit
34+
35+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
dpctl.SyclPlatform
2+
==================
3+
4+
.. currentmodule:: dpctl
5+
6+
.. autoclass:: SyclPlatform
7+
8+
9+
10+
.. rubric:: Methods
11+
12+
.. autosummary::
13+
:toctree: generated
14+
15+
~SyclPlatform.get_composite_devices
16+
~SyclPlatform.get_devices
17+
~SyclPlatform.print_platform_info
18+
19+
20+
21+
22+
23+
.. rubric:: Attributes
24+
25+
.. autosummary::
26+
:toctree: generated
27+
28+
~SyclPlatform.backend
29+
~SyclPlatform.default_context
30+
~SyclPlatform.name
31+
~SyclPlatform.vendor
32+
~SyclPlatform.version
33+
34+

0 commit comments

Comments
 (0)