Skip to content

Commit 9170510

Browse files
Fixed driver scripts to use abspath for sanitation
Removed scripts/build_for_develop* as obsolete. Renamed scripts/build_sycl_nightly.py as scripts/build_locally.py Updated quick start guide to account for the renaming.
1 parent 51b41b8 commit 9170510

File tree

5 files changed

+5
-78
lines changed

5 files changed

+5
-78
lines changed

docs/docfiles/user_guides/QuickStart.rst

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ Developing on Linux can also be done using driver script:
166166

167167
.. code-block:: bash
168168
169-
python scripts/build_sycl_nightly.py --oneapi
169+
python scripts/build_locally.py --oneapi
170170
171171
172172
Building using custom dpcpp
@@ -176,8 +176,7 @@ It is possible to build dpctl from source using .. _DPC++ toolchain: https://git
176176
instead of the DPC++ compiler that comes with oneAPI. One reason for doing this
177177
may be to enable support for CUDA devices.
178178

179-
Following steps in `Build and install with scikit-build`_ use command line
180-
option :code:`--sycl-compiler-prefix`, for example:
179+
Following steps in `Build and install with scikit-build`_ use command line option to set relevant cmake variables, for example:
181180

182181
.. code-block:: bash
183182
@@ -187,7 +186,7 @@ Alterantively, the driver script can be used
187186

188187
.. code-block:: bash
189188
190-
python scripts/build_sycl_nightly.py --c-compiler=clang --cxx-compiler=clang++ --compiler-root=${DPCPP_ROOT}/llvm/build
189+
python scripts/build_locally.py --c-compiler=clang --cxx-compiler=clang++ --compiler-root=${DPCPP_ROOT}/llvm/build
191190
192191
Available options and their descriptions can be retrieved using option
193192
:code:`--help`.

scripts/build_for_develop.bat

Lines changed: 0 additions & 66 deletions
This file was deleted.

scripts/build_for_develop.sh

Lines changed: 0 additions & 6 deletions
This file was deleted.

scripts/build_sycl_nightly.py renamed to scripts/build_locally.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def run(
2424
raise RuntimeError(
2525
"This scripts only supports coverage collection on Linux"
2626
)
27-
setup_dir = os.path.dirname(os.path.dirname(__file__))
27+
setup_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
2828
cmake_args = [
2929
sys.executable,
3030
"setup.py",

scripts/gen_coverage.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def run(
2525
raise RuntimeError(
2626
"This scripts only supports coverage collection on Linux"
2727
)
28-
setup_dir = os.path.dirname(os.path.dirname(__file__))
28+
setup_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
2929
cmake_args = [
3030
sys.executable,
3131
"setup.py",

0 commit comments

Comments
 (0)