Skip to content

Commit dc863cd

Browse files
Merge remote-tracking branch 'origin/master' into gold/2021
2 parents ae4363b + c1335f1 commit dc863cd

File tree

80 files changed

+2149
-601
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

80 files changed

+2149
-601
lines changed

.flake8

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,4 @@ per-file-ignores =
3232
examples/cython/sycl_buffer/_buffer_example.pyx: E999, E225, E402
3333
examples/cython/sycl_direct_linkage/_buffer_example.pyx: E999, E225, E402
3434
examples/cython/usm_memory/blackscholes.pyx: E999, E225, E226, E402
35+
examples/cython/use_dpctl_sycl/use_dpctl_sycl/_cython_api.pyx: E999, E225, E226, E402

.github/workflows/conda-package.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,12 @@ jobs:
473473
CC=dpcpp CXX=dpcpp LDSHARED="dpcpp -shared" \
474474
python setup.py build_ext --inplace || exit 1
475475
conda deactivate
476-
LD_LIBRARY_PATH=${CONDA_PREFIX}/lib python run.py || exit 1
476+
if [ -e tests ]
477+
then
478+
LD_LIBRARY_PATH=${CONDA_PREFIX}/lib python -m pytest tests || exit 1
479+
else
480+
LD_LIBRARY_PATH=${CONDA_PREFIX}/lib python run.py || exit 1
481+
fi
477482
popd
478483
done
479484
cd ../c

.github/workflows/python_style_checks.yml

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -27,18 +27,14 @@ jobs:
2727
# The type of runner that the job will run on
2828
runs-on: ubuntu-latest
2929

30-
strategy:
31-
matrix:
32-
python-version: ['3.10']
33-
3430
# Steps represent a sequence of tasks that will be executed as part of the job
3531
steps:
3632
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
3733
- uses: actions/checkout@v3
3834
# Set up a Python environment for use in actions
3935
- uses: actions/setup-python@v4
4036
with:
41-
python-version: ${{ matrix.python-version }}
37+
python-version: '3.10'
4238

4339
# Run black code formatter
4440
- uses: psf/black@stable
@@ -49,16 +45,12 @@ jobs:
4945
flake8:
5046
runs-on: ubuntu-latest
5147

52-
strategy:
53-
matrix:
54-
python-version: ['3.10']
55-
5648
steps:
5749
- uses: actions/checkout@v3
58-
- name: Set up Python ${{ matrix.python-version }}
50+
- name: Set up Python
5951
uses: actions/setup-python@v4
6052
with:
61-
python-version: ${{ matrix.python-version }}
53+
python-version: '3.10'
6254
- name: Install dependencies
6355
run: |
6456
python -m pip install --upgrade pip

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1111
* Implemented `dpctl.tensor.linspace` function from array-API [#875](https://github.com/IntelPython/dpctl/pull/875).
1212
* Implemented `dpctl.tensor.eye` function from array-API [#896](https://github.com/IntelPython/dpctl/pull/896).
1313
* Implemented `dpctl.tensor.tril` and `dpctl.tensor.triu` functions from array-API [#910](https://github.com/IntelPython/dpctl/pull/910).
14-
* Added data type objects to `dpctl.tensor` namespace, and `finfo` and `iinfo` functions [#913](https://github.com/IntelPython/dpctl/pull/913).
14+
* Added data type objects to `dpctl.tensor` namespace, `finfo`, `iinfo`, `can_cast`, and `result_type` functions [#913](https://github.com/IntelPython/dpctl/pull/913).
1515
* Implemented `dpctl.tensor.meshgrid` creation function from array-API [#920](https://github.com/IntelPython/dpctl/pull/920).
1616
* Implemented convenience class to represent output of `dpctl.tensor.usm_ndarray.flags` property [#921](https://github.com/IntelPython/dpctl/pull/921).
1717
* Added new device attributes and kernel's device-specific attributes [#894](https://github.com/IntelPython/dpctl/pull/894).
1818
* Added `dpctl.utils.onetrace_enabled` context manager for targeted trace collection [#903](https://github.com/IntelPython/dpctl/pull/903).
1919
* Added support for `stream` keyword in `__dlpack__` method, enabling support for sending `usm_ndarray` using mpi4py [#906](https://github.com/IntelPython/dpctl/pull/906).
2020
* `dpctl.tensor.asarray` can now transition data between incompatible devices, [#951](https://github.com/IntelPython/dpctl/pull/951).
21+
* Introduced `"syclinterface/dpctl_sycl_types_casters.hpp"` header file with declaration of conversion routines between SYCL type pointers and SyclInterface library opaque pointers [#960](https://github.com/IntelPython/dpctl/pull/960).
22+
* Added C-API to `dpctl.program.SyclKernel` and `dpctl.program.SyclProgram`. Added type casters for new types to "dpctl4pybind11" and added an example demonstrating its use [#970](https://github.com/IntelPython/dpctl/pull/970).
23+
* Introduced "dpctl/sycl.pxd" Cython declaration file to streamline use of SYCL functions from Cython, and added an example demonstrating its use [#981](https://github.com/IntelPython/dpctl/pull/981).
2124

2225
### Changed
2326
* Improved queue compatibility testing in `dpctl.tensor`'s implementation module [#900](https://github.com/IntelPython/dpctl/pull/900).
@@ -27,13 +30,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2730
* Refactored `dpctl.tensor`'s implementation module [#941](https://github.com/IntelPython/dpctl/pull/941) to streamline adding new functionality. Streamlined `dpctl::tensor::usm_ndarray` class implementation.
2831
* Added debugging messaging in case when `DPCTLDynamicLib::getSymbol` encounters errors [#956](https://github.com/IntelPython/dpctl/pull/956).
2932
* Updated code base according to changes in DPC++ compiler [#952](https://github.com/IntelPython/dpctl/pull/952), [#957](https://github.com/IntelPython/dpctl/pull/957), [#958](https://github.com/IntelPython/dpctl/pull/958).
33+
* Changed `dpctl` to use pybind11 2.10.1 [#967](https://github.com/IntelPython/dpctl/pull/967).
3034

3135
### Fixed
3236
* Improved SyclDevice constructor error message [#893](https://github.com/IntelPython/dpctl/pull/893).
3337
* Fixed issue gh-890 about `dpctl.tensor.reshape` function [#915](https://github.com/IntelPython/dpctl/pull/915).
3438
* Fixed unexpected `UnboundLocalError` exception in [#922](https://github.com/IntelPython/dpctl/pull/922).
3539
* Fixed bugs in `dpctl.tensor.arange` in [#945](https://github.com/IntelPython/dpctl/pull/945).
3640
* Fixed issue with type inferencing in `dpctl.tensor.asarray` in [#949](https://github.com/IntelPython/dpctl/pull/949).
41+
* Added missing docstrings for `dpctl.SyclDevice` properties [#964](https://github.com/IntelPython/dpctl/pull/964).
3742

3843
## [0.13.0] - 07/28/2022
3944

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ include(FetchContent)
3333

3434
FetchContent_Declare(
3535
pybind11
36-
URL https://github.com/pybind/pybind11/archive/refs/tags/v2.10.0.tar.gz
37-
URL_HASH SHA256=eacf582fa8f696227988d08cfc46121770823839fe9e301a20fbce67e7cd70ec
36+
URL https://github.com/pybind/pybind11/archive/refs/tags/v2.10.1.tar.gz
37+
URL_HASH SHA256=111014b516b625083bef701df7880f78c2243835abdb263065b6b59b960b6bad
3838
)
3939
FetchContent_MakeAvailable(pybind11)
4040

MANIFEST.in

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
recursive-include dpctl/include *.h
2+
recursive-include dpctl/include *.hpp
23
include dpctl/include/dpctl4pybind11.hpp
34
recursive-include dpctl *.pxd
45
recursive-include dpctl *.cmake
@@ -12,6 +13,8 @@ include dpctl/_sycl_event.h
1213
include dpctl/_sycl_event_api.h
1314
include dpctl/memory/_memory.h
1415
include dpctl/memory/_memory_api.h
16+
include dpctl/program/_program.h
17+
include dpctl/program/_program_api.h
1518
include dpctl/tensor/_usmarray.h
1619
include dpctl/tensor/_usmarray_api.h
1720
recursive-include dpctl/tensor/include *

dpctl/_backend.pxd

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,7 @@ cdef extern from "syclinterface/dpctl_sycl_event_interface.h":
263263
cdef extern from "syclinterface/dpctl_sycl_kernel_interface.h":
264264
cdef size_t DPCTLKernel_GetNumArgs(const DPCTLSyclKernelRef KRef)
265265
cdef void DPCTLKernel_Delete(DPCTLSyclKernelRef KRef)
266+
cdef DPCTLSyclKernelRef DPCTLKernel_Copy(const DPCTLSyclKernelRef KRef)
266267
cdef size_t DPCTLKernel_GetWorkGroupSize(const DPCTLSyclKernelRef KRef)
267268
cdef size_t DPCTLKernel_GetPreferredWorkGroupSizeMultiple(const DPCTLSyclKernelRef KRef)
268269
cdef size_t DPCTLKernel_GetPrivateMemSize(const DPCTLSyclKernelRef KRef)
@@ -341,6 +342,7 @@ cdef extern from "syclinterface/dpctl_sycl_kernel_bundle_interface.h":
341342
cdef bool DPCTLKernelBundle_HasKernel(DPCTLSyclKernelBundleRef KBRef,
342343
const char *KernelName)
343344
cdef void DPCTLKernelBundle_Delete(DPCTLSyclKernelBundleRef KBRef)
345+
cdef DPCTLSyclKernelBundleRef DPCTLKernelBundle_Copy(const DPCTLSyclKernelBundleRef KBRef)
344346

345347

346348
cdef extern from "syclinterface/dpctl_sycl_queue_interface.h":

0 commit comments

Comments
 (0)