Skip to content

Merging 0.14.6dev3 #1347

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Aug 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ Distribution for
Python](https://www.intel.com/content/www/us/en/developer/tools/oneapi/distribution-for-python.html)
(IDP).

## Inte(R) oneAPI
## Intel(R) oneAPI

You can find the most recent release of `dpctl` every quarter as part of the Intel(R) oneAPI releases.

Expand Down
4 changes: 4 additions & 0 deletions dpctl/apis/include/dpctl_capi.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,11 @@
// Ordering of includes is important here. dpctl_sycl_types defines types
// used by dpctl's Python C-API headers.
#include "syclinterface/dpctl_sycl_types.h"
#ifdef __cplusplus
#define CYTHON_EXTERN_C extern "C"
#else
#define CYTHON_EXTERN_C
#endif
#include "../_sycl_device.h"
#include "../_sycl_device_api.h"
#include "../_sycl_context.h"
Expand Down
8 changes: 6 additions & 2 deletions dpctl/tests/test_usm_ndarray_dlpack.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,11 @@ def test_from_dlpack(shape, typestr, usm_type):
Y = dpt.from_dlpack(X)
assert X.shape == Y.shape
assert X.dtype == Y.dtype
assert X.sycl_device == Y.sycl_device
assert X.usm_type == Y.usm_type
assert X._pointer == Y._pointer
# we can only expect device to round-trip for USM-device and
# USM-shared allocations, which are made for specific device
assert (Y.usm_type == "host") or (X.sycl_device == Y.sycl_device)
if Y.ndim:
V = Y[::-1]
W = dpt.from_dlpack(V)
Expand All @@ -149,9 +151,11 @@ def test_from_dlpack_strides(mod, typestr, usm_type):
Y = dpt.from_dlpack(X)
assert X.shape == Y.shape
assert X.dtype == Y.dtype
assert X.sycl_device == Y.sycl_device
assert X.usm_type == Y.usm_type
assert X._pointer == Y._pointer
# we can only expect device to round-trip for USM-device and
# USM-shared allocations, which are made for specific device
assert (Y.usm_type == "host") or (X.sycl_device == Y.sycl_device)
if Y.ndim:
V = Y[::-1]
W = dpt.from_dlpack(V)
Expand Down