File tree Expand file tree Collapse file tree 4 files changed +25
-10
lines changed Expand file tree Collapse file tree 4 files changed +25
-10
lines changed Original file line number Diff line number Diff line change 1
- DPCtl Usage
2
- ===========
1
+ .. _ dptcl :
2
+ .. include :: ./ext_links.txt
3
3
4
- `DPCtl <https://github.com/IntelPython/dpctl >`_ provides API to manage
5
- specific SYCL resources for SYCL-based Python packages. DPNP uses DPCtl as
6
- a global SYCL queue manager. Below code illustrates simple usage of DPNP
7
- in combination with dpCtl.
4
+ Interlay with the Data Parallel Control Library
5
+ ===============================================
6
+
7
+ `Data Parallel Control Library `_ provides API to manage specific
8
+ `SYCL* `_ resources for SYCL-based Python packages.
9
+
10
+ An example below demonstrates how the Data Parallel Extension for NumPy* can be
11
+ easily combined with the device management interface provided by dpctl package.
12
+
13
+ Literally, the SYCL* queue manager interface from the dpctl package allows
14
+ to set an input queue as the currently usable queue inside the context
15
+ manager's scope. This way an array creation function from the dpnp package
16
+ which is defined inside the context will allocate the data using that queue.
8
17
9
18
.. code-block :: python
10
19
:linenos:
@@ -16,10 +25,11 @@ in combination with dpCtl.
16
25
x = np.array([1 , 2 , 3 ])
17
26
s = np.sum(x)
18
27
19
- For more information please refer to `DPCtl's documentation <https://intelpython.github.io/dpctl >`_.
28
+ For more information please refer to `Data Parallel Control Library `_
29
+ documentation.
20
30
21
31
Example
22
- ~~~~~~~
32
+ -------
23
33
.. literalinclude :: ../examples/example10.py
24
34
:linenos:
25
35
:language: python
Original file line number Diff line number Diff line change @@ -12,5 +12,10 @@ Data Parallel Extension for NumPy*
12
12
overview
13
13
quick_start_guide
14
14
reference/index
15
+
16
+ .. toctree ::
17
+ :maxdepth: 1
18
+ :caption: Development information
19
+
15
20
dpnp_backend_api
16
21
dpctl
Original file line number Diff line number Diff line change 1
- .. _overview
1
+ .. _overview :
2
2
.. include :: ./ext_links.txt
3
3
4
4
Overview
Original file line number Diff line number Diff line change 4
4
API Reference
5
5
*************
6
6
7
- This is the official DPNP API reference.
7
+ API reference of the Data Parallel Extension for NumPy*
8
8
9
9
----
10
10
You can’t perform that action at this time.
0 commit comments