File tree Expand file tree Collapse file tree 3 files changed +20
-8
lines changed Expand file tree Collapse file tree 3 files changed +20
-8
lines changed Original file line number Diff line number Diff line change 1
- DPCtl Usage
2
- ===========
1
+ Cooperation with the ` Data Parallel Control Library `_ interface
2
+ ===============================================================
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
+ `Data Parallel Control Library `_ provides API to manage specific
5
+ `SYCL* `_ resources for SYCL-based Python packages.
6
+
7
+ An example below demonstrates how the Data Parallel Extension for NumPy* can be
8
+ easily combined with the device management interface provided by dpctl package.
9
+
10
+ Literally, the SYCL* queue manager interface from the dpctl package allows
11
+ to set an input queue as the currently usable queue inside the context
12
+ manager's scope. This way an array creation function from the dpnp package
13
+ which is defined inside the context will allocate the data using that queue.
8
14
9
15
.. code-block :: python
10
16
:linenos:
@@ -16,7 +22,8 @@ in combination with dpCtl.
16
22
x = np.array([1 , 2 , 3 ])
17
23
s = np.sum(x)
18
24
19
- For more information please refer to `DPCtl's documentation <https://intelpython.github.io/dpctl >`_.
25
+ For more information please refer to `Data Parallel Control Library `_
26
+ documentation.
20
27
21
28
Example
22
29
~~~~~~~
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: 2
18
+ :caption: Development information
19
+
15
20
dpnp_backend_api
16
21
dpctl
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