@@ -50,7 +50,7 @@ Dpctl can also be istalled from Pypi.
50
50
51
51
.. code-block :: bash
52
52
53
- python -m pip install --index-url https://pypi.anaconda.org/intel/simple --extra-index-url https://pypi.org/simple dpctl
53
+ python -m pip install --index-url https://pypi.anaconda.org/intel/simple dpctl
54
54
55
55
.. note ::
56
56
@@ -133,33 +133,41 @@ After building the conda package you may install it by executing:
133
133
3.18 instead.
134
134
135
135
136
- Build and install with setuptools
137
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
136
+ Build and install with scikit-build
137
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
138
138
139
- To build using Python ``setuptools ``, the following packages should be
139
+ To build using Python ``setuptools `` and `` scikit-build `` , the following Python packages should be
140
140
installed:
141
141
142
142
- ``cython ``
143
143
- ``numpy ``
144
144
- ``cmake ``
145
+ - ``scikit-build ``
145
146
- ``ninja `` (only on Windows)
146
147
- ``gtest `` (optional to run C API tests)
148
+ - ``gmock `` (optional to run C API tests)
147
149
- ``pytest `` (optional to run Python API tests)
148
150
149
- Once the prerequisites are installed, building using ``setuptools `` involves The
150
- usual steps
151
+ Once the prerequisites are installed, building using ``scikit-build `` involves the usual steps, to build and install:
152
+
153
+ .. code-block :: bash
151
154
152
- to build and install
155
+ python setup.py install -- -G Unix\ Makefiles -DCMAKE_C_COMPILER:PATH=icx -DCMAKE_CXX_COMPILER:PATH=icpx -DDPCTL_ENABLE_LO_PROGRAM_CREATION=ON
156
+
157
+ , and to develop:
153
158
154
159
.. code-block :: bash
155
160
156
- python setup.py install
161
+ python setup.py develop -G Unix\ Makefiles -DCMAKE_C_COMPILER:PATH=icx -DCMAKE_CXX_COMPILER:PATH=icpx -DDPCTL_ENABLE_LO_PROGRAM_CREATION=ON
162
+
163
+ On Windows, use ``icx `` for both C and CXX compilers, and use :code: `-G Ninja ` for cmake generator.
157
164
158
- , and to develop.
165
+ Developing on Linux can also be done using driver script:
159
166
160
167
.. code-block :: bash
161
168
162
- python setup.py develop
169
+ python scripts/build_sycl_nightly.py --oneapi
170
+
163
171
164
172
Building using custom dpcpp
165
173
---------------------------
@@ -168,12 +176,18 @@ It is possible to build dpctl from source using .. _DPC++ toolchain: https://git
168
176
instead of the DPC++ compiler that comes with oneAPI. One reason for doing this
169
177
may be to enable support for CUDA devices.
170
178
171
- Following steps in `Build and install with setuptools `_ use command line
179
+ Following steps in `Build and install with scikit-build `_ use command line
172
180
option :code: `--sycl-compiler-prefix `, for example:
173
181
174
182
.. code-block :: bash
175
183
176
- python setup.py develop --sycl-compiler-prefix=${DPCPP_ROOT} /llvm/build
184
+ python setup.py develop -- -G Unix\ Makefiles -DCMAKE_C_COMPILER:PATH=clang -DCMAKE_CXX_COMPILER:PATH=clang++ -DDPCTL_ENABLE_LO_PROGRAM_CREATION=ONE -DDPCTL_DPCPP_HOME_DIR=${DPCPP_ROOT} /llvm/build -DDPCTL_DPCPP_FROM_ONEAPI=OFF
185
+
186
+ Alterantively, the driver script can be used
187
+
188
+ .. code-block :: bash
189
+
190
+ python scripts/build_sycl_nightly.py --c-compiler=clang --cxx-compiler=clang++ --compiler-root=${DPCPP_ROOT} /llvm/build
177
191
178
192
Available options and their descriptions can be retrieved using option
179
193
:code: `--help `.
0 commit comments