Skip to content

Commit cc8c595

Browse files
authored
Rename package PyDPPL to dpCtl (#49)
* Rename folder dppl to dpctl * Rename in setup.py and setup.cfg * Rename dppl to dpctl in all usage cases and docs * Rename package PyDPPL to dpCtl * Fix package name * Rename dppl tp dpctl
1 parent d98be7b commit cc8c595

24 files changed

+96
-96
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@ conda activate build-env
2323
```bash
2424
conda build conda-recipe
2525
```
26-
On Windows to cope with [long file names](https://github.com/IntelPython/pydppl/issues/15):
26+
On Windows to cope with [long file names](https://github.com/IntelPython/dpctl/issues/15):
2727
```cmd
2828
conda build --croot=C:/tmp conda-recipe
2929
```
3030
3. Install conda package
3131
```bash
32-
conda install pydppl
32+
conda install dpctl
3333
```
3434

3535
Using PyDPPL

backends/include/dppl_opencl_interface.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
///
2121
/// \file
2222
/// This file contains the declaration of a C API to expose a lightweight OpenCL
23-
/// interface for the Python dppl package.
23+
/// interface for the Python dpctl package.
2424
///
2525
//===----------------------------------------------------------------------===//
2626

conda-recipe/build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,12 @@ make -j 4 && make install
3333

3434
cd ..
3535

36-
# required by dppl.opencl_core
36+
# required by dpctl.opencl_core
3737
export DPPL_OPENCL_INTERFACE_LIBDIR=${PREFIX}
3838
export DPPL_OPENCL_INTERFACE_INCLDIR=${PREFIX}/include
3939
export OpenCL_LIBDIR=${DPCPP_ROOT}/lib
4040

41-
# required by dppl.sycl_core
41+
# required by dpctl.sycl_core
4242
export DPPL_SYCL_INTERFACE_LIBDIR=${PREFIX}/lib
4343
export DPPL_SYCL_INTERFACE_INCLDIR=${PREFIX}/include
4444

conda-recipe/meta.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{% set name = "pydppl" %}
1+
{% set name = "dpctl" %}
22

33
package:
44
name: {{ name|lower }}
@@ -39,7 +39,7 @@ about:
3939
software license agreement (as set forth above, in the license section of
4040
the installed Conda package and/or the README file) and all notices,
4141
disclaimers or license terms for third party or open source software
42-
included in or with the software.</strong>
42+
included in or with the software.</strong>
4343
<br/><br/>
4444
EULA: <a href="https://opensource.org/licenses/Apache-2.0" target="_blank">Apache-2.0</a>
4545
<br/><br/>

conda-recipe/run_test.bat

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ set ERRORLEVEL=
55

66
@echo on
77

8-
"%PYTHON%" -c "import dppl"
8+
"%PYTHON%" -c "import dpctl"
99
IF %ERRORLEVEL% NEQ 0 exit 1
1010

11-
"%PYTHON%" -c "import dppl.ocldrv"
11+
"%PYTHON%" -c "import dpctl.ocldrv"
1212
IF %ERRORLEVEL% NEQ 0 exit 1
1313

14-
"%PYTHON%" -m unittest -v dppl.tests
14+
"%PYTHON%" -m unittest -v dpctl.tests
1515
IF %ERRORLEVEL% NEQ 0 exit 1

conda-recipe/run_test.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ set -e
55
# Suppress error b/c it could fail on Ubuntu 18.04
66
source ${ONEAPI_ROOT}/compiler/latest/env/vars.sh || true
77

8-
${PYTHON} -c "import dppl"
9-
${PYTHON} -c "import dppl.ocldrv"
10-
${PYTHON} -m unittest -v dppl.tests
8+
${PYTHON} -c "import dpctl"
9+
${PYTHON} -c "import dpctl.ocldrv"
10+
${PYTHON} -m unittest -v dpctl.tests
File renamed without changes.

dppl/__init__.py renamed to dpctl/__init__.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
44
PyDPPL provides a lightweight Python abstraction over DPC++/SYCL and
55
OpenCL runtime objects. The DPC++ runtime wrapper objects can be
6-
accessed by importing dppl. The OpenCL runtime wrapper objects can be
7-
accessed by importing dppl.ocldrv. The library is in an early-beta
6+
accessed by importing dpctl. The OpenCL runtime wrapper objects can be
7+
accessed by importing dpctl.ocldrv. The library is in an early-beta
88
stage of development and not yet ready for production usage.
99
1010
PyDPPL's intended usage is as a common SYCL interoperability layer for
@@ -13,15 +13,15 @@
1313
of the library.
1414
1515
Currently, only a small subset of DPC++ runtime objects are exposed
16-
through the dppl module. The main API classes inside the dppl module are:
16+
through the dpctl module. The main API classes inside the dpctl module are:
1717
1818
Runtime: The class stores a global SYCL queue and a stack of
1919
currently activated queues. Runtime provides a special getter
2020
method to retrieve the currently activated SYCL queue
2121
as a Py_capsule.
2222
2323
A single global thread local instance of the Runtime class
24-
is created on loading the dppl module for the first time.
24+
is created on loading the dpctl module for the first time.
2525
2626
DeviceArray: A DeviceArray object encapsulates a one-dimensional
2727
cl::sycl::buffer object. A DeviceArray object can be
@@ -39,9 +39,9 @@
3939
Global data members:
4040
runtime - An instance of the Runtime class.
4141
42-
Please use `pydoc dppl._sycl_core` to look at the current API for dppl.
42+
Please use `pydoc dpctl._sycl_core` to look at the current API for dpctl.
4343
44-
Please use `pydoc dppl.ocldrv` to look at the current API for dppl.ocldrv.
44+
Please use `pydoc dpctl.ocldrv` to look at the current API for dpctl.ocldrv.
4545
4646
'''
4747
__author__ = "Intel Corp."

dppl/_memory.pyx renamed to dpctl/_memory.pyx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import dppl
2-
from dppl.backend cimport *
1+
import dpctl
2+
from dpctl.backend cimport *
33
from ._sycl_core cimport SyclContext, SyclQueue
44

55
from cpython cimport Py_buffer
@@ -19,7 +19,7 @@ cdef class Memory:
1919

2020
if (nbytes > 0):
2121
if queue is None:
22-
queue = dppl.get_current_queue()
22+
queue = dpctl.get_current_queue()
2323

2424
if (ptr_type == "shared"):
2525
p = DPPLmalloc_shared(nbytes, queue.get_queue_ref())
File renamed without changes.

0 commit comments

Comments
 (0)