File tree Expand file tree Collapse file tree 2 files changed +9
-10
lines changed Expand file tree Collapse file tree 2 files changed +9
-10
lines changed Original file line number Diff line number Diff line change 5
5
6
6
.. _Section 4.6 : https://www.khronos.org/registry/SYCL/specs/sycl-2020/html/sycl-2020.html#_sycl_runtime_classes
7
7
.. _SYCL 2020 spec : https://www.khronos.org/registry/SYCL/specs/sycl-2020/html/sycl-2020.html
8
- .. _sycl platform : https://sycl.readthedocs.io/en/latest/iface/platform.html
8
+ .. _sycl:: platform : https://sycl.readthedocs.io/en/latest/iface/platform.html
9
9
.. _sycl device : https://sycl.readthedocs.io/en/latest/iface/device.html
10
10
.. _sycl queue : https://sycl.readthedocs.io/en/latest/iface/queue.html
11
11
.. _sycl event : https://sycl.readthedocs.io/en/latest/iface/event.html
Original file line number Diff line number Diff line change 4
4
Platform
5
5
########
6
6
7
- A platform abstracts one or more XPU that is connected to the host and that can
8
- be used for computation. The platforms queryable using dpctl depends on the
9
- device drivers that are installed on a system. A single driver may control
10
- multiple physical XPU, thus a platform may also consist of multiple XPUs.
11
-
12
7
In dpctl, the class :class: `dpctl.SyclPlatform ` represents a platform and
13
- abstracts the `sycl platform `_ SYCL runtime class.
8
+ abstracts the `sycl::platform `_ SYCL runtime class. A platform abstracts one or
9
+ more XPU that is connected to the host and that can be used for computation. The
10
+ platforms queryable using dpctl depends on the device drivers that are installed
11
+ on a system. A single driver may control multiple physical XPU, thus a platform
12
+ may also consist of multiple XPUs.
14
13
15
14
The platforms available on a system can be queried using the
16
15
:func: `dpctl.lsplatform ` function. In addition, as illustrated in the following
17
16
example it is possible to print out metadata about a platform.
18
17
19
18
.. literalinclude :: ../../../../examples/python/lsplatform.py
20
19
:language: python
21
- :start-after: #START
22
- :end-before: #END
20
+ :start-after: # START
21
+ :end-before: # END
23
22
24
23
The example is can be executed as follows:
25
24
@@ -35,4 +34,4 @@ The possible output for the example may be:
35
34
The verbosity for the output can be controlled using the ``verbosity ``
36
35
keyword argument. Refer :func: `dpctl.lsplatform `.
37
36
38
- .. include :: ../../../ urls.rst
37
+ .. include :: ../../urls.rst
You can’t perform that action at this time.
0 commit comments