Skip to content

Commit 5df1242

Browse files
author
Diptorup Deb
committed
Fixes and clean ups to exisitng rst pages.
1 parent 23adb09 commit 5df1242

File tree

2 files changed

+25
-29
lines changed

2 files changed

+25
-29
lines changed

docs/docfiles/intro.rst

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,9 @@ Welcome to Data-parallel Control (dpctl)'s documentation!
22
=========================================================
33

44
The data-parallel control (dpctl) library provides C and Python bindings for
5-
`SYCL 2020 <https://www.khronos.org/registry/SYCL/specs/sycl-2020/html/sycl-2020.html>`_.
6-
The SYCL 2020 features supported by dpctl are limited to those included by
7-
Intel's DPCPP compiler and specifically cover the SYCL runtime classes described
8-
in `Section 4.6 <https://www.khronos.org/registry/SYCL/specs/sycl-2020/html/sycl-2020.html#_sycl_runtime_classes>`_
5+
:sycl_spec_2020:`SYCL 2020 <>`. The SYCL 2020 features supported by dpctl are
6+
limited to those included by Intel's DPCPP compiler and specifically cover the
7+
SYCL runtime classes described in :sycl_runtime_classes:`Section 4.6 <>`
98
of the SYCL 2020 specification. Apart from the bindings for these runtime
109
classes, dpctl includes bindings for SYCL USM memory allocators and
1110
deallocators. Dpctl's Python API provides classes that implement

docs/docfiles/user_guides/QuickStart.rst

Lines changed: 22 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,8 @@
44
Quick Start Guide
55
#################
66

7-
8-
.. contents:: Table of contents
9-
:local:
10-
:backlinks: none
11-
:depth: 3
12-
137
Installing from oneAPI
14-
----------------------
8+
======================
159

1610
Dpctl is available as part of the oneAPI Intel Distribution of Python (IDP).
1711
Please follow `oneAPI installation guide`_ to install oneAPI. In this quick
@@ -50,7 +44,7 @@ On Windows
5044
`GPU driver installation guide`_.
5145

5246
Install Wheel package from Pypi
53-
-------------------------------
47+
===============================
5448

5549
Dpctl can also be istalled from Pypi.
5650

@@ -79,20 +73,21 @@ On Windows
7973
set PATH=<path_to_your_env>\bin;<path_to_your_env>\Library\bin;%PATH%
8074
8175
Building from source
82-
--------------------
76+
====================
8377

8478
To build dpctl from source, we need dpcpp and GPU drivers (and optionally CPU
8579
OpenCL drivers). It is preferable to use the dpcpp compiler packaged as part of
8680
oneAPI. However, it is possible to use a custom build of dpcpp to build dpctl,
8781
especially if you want to enable CUDA support.
8882

8983
Building using oneAPI dpcpp
90-
~~~~~~~~~~~~~~~~~~~~~~~~~~~
84+
---------------------------
9185

9286
As before, oneAPI and graphics drivers should be installed on the system prior
9387
to proceeding further.
9488

95-
**Activate oneAPI as follows**
89+
Activate oneAPI as follows
90+
~~~~~~~~~~~~~~~~~~~~~~~~~~
9691

9792
On Linux
9893

@@ -106,7 +101,8 @@ On Windows
106101
107102
call "%ONEAPI_ROOT%\setvars.bat"
108103
109-
**Build and install using conda-build**
104+
Build and install using conda-build
105+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
110106

111107
The conda-recipe included with the sources can be used to build the dpctl
112108
package. The advantage of this approach is that all dependencies are pulled in
@@ -136,7 +132,9 @@ After building the conda package you may install it by executing:
136132
You could face issues with conda-build version 3.20. Use conda-build
137133
3.18 instead.
138134

139-
**Build and Install with setuptools**
135+
136+
Build and install with setuptools
137+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
140138

141139
To build using Python ``setuptools``, the following packages should be
142140
installed:
@@ -164,13 +162,13 @@ to build and install
164162
python setup.py develop
165163
166164
Building using custom dpcpp
167-
~~~~~~~~~~~~~~~~~~~~~~~~~~~
165+
---------------------------
168166

169167
It is possible to build dpctl from source using .. _DPC++ toolchain: https://github.com/intel/llvm/blob/sycl/sycl/doc/GetStartedGuide.md
170168
instead of the DPC++ compiler that comes with oneAPI. One reason for doing this
171169
may be to enable support for CUDA devices.
172170

173-
Following steps in :ref:`Build and Install with setuptools` use command line
171+
Following steps in `Build and install with setuptools`_ use command line
174172
option :code:`--sycl-compiler-prefix`, for example:
175173

176174
.. code-block:: bash
@@ -181,7 +179,7 @@ Available options and their descriptions can be retrieved using option
181179
:code:`--help`.
182180

183181
Using dpctl
184-
-----------
182+
===========
185183

186184
Dpctl requires a DPC++ runtime. When dpctl is installed via conda then it uses
187185
the DPC++ runtime from ``dpcpp_cpp_rt`` package that is part of IDP. When using
@@ -190,10 +188,10 @@ the system. The easiest way to setup a DPC++ runtime will be by activating
190188
oneAPI.
191189

192190
Running examples and tests
193-
--------------------------
191+
==========================
194192

195193
Running the examples
196-
~~~~~~~~~~~~~~~~~~~~
194+
--------------------
197195

198196
After setting up dpctl you can try out the Python examples as follows:
199197

@@ -213,7 +211,7 @@ located under *examples/cython*. Each example in the folder can be built using
213211
examples.
214212

215213
Running the Python tests
216-
~~~~~~~~~~~~~~~~~~~~~~~~
214+
------------------------
217215

218216
The dpctl Python test suite can be executed as follows:
219217

@@ -222,14 +220,13 @@ The dpctl Python test suite can be executed as follows:
222220
pytest --pyargs dpctl
223221
224222
225-
Building the C API shared library
226-
---------------------------------
223+
Building the DPCTLSyclInterface library
224+
=======================================
227225

228-
The dpctl C API is a shared library called libDPCTLSyclInterface and is built
229-
together when build the Python package. However, it is possible to only build
230-
the C API as a standalone library. To do so, you will need ``cmake``,
226+
The libDPCTLSyclInterface is a shared library used by the Python package.
227+
To build the library you will need ``DPC++`` toolchain, ``cmake``,
231228
``ninja`` or ``make``, and optionally ``gtest 1.10`` if you wish to run the
232-
C API test suite.
229+
test suite.
233230

234231
For example, on Linux the following script can be used to build the C oneAPI
235232
library.

0 commit comments

Comments
 (0)