Skip to content

Fixes #547 #548

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 2 commits into from
Aug 24, 2021
Merged

Fixes #547 #548

merged 2 commits into from
Aug 24, 2021

Conversation

oleksandr-pavlyk
Copy link
Contributor

@oleksandr-pavlyk oleksandr-pavlyk commented Aug 23, 2021

Closes #547

Property __sycl_usm_array_interface__ is to use self.shape rather
than call _make_int_tuple directly.

In [4]: dpt.usm_ndarray(tuple(), dtype='d').__sycl_usm_array_interface__
Out[4]:
{'data': (94536841949184, True),
 'shape': (),
 'strides': None,
 'typestr': '|f8',
 'version': 1,
 'syclobj': <dpctl.SyclQueue at 0x7f5bbeb3f780>,
 'offset': 0}

@shssf @Alexander-Makaryev

Property `__sycl_usm_array_interface__` is to use `self.shape` rather
than call _make_int_tuple directly.

```
In [4]: dpt.usm_ndarray(tuple(), dtype='d').__sycl_usm_array_interface__
Out[4]:
{'data': (94536841949184, True),
 'shape': (),
 'strides': None,
 'typestr': '|f8',
 'version': 1,
 'syclobj': <dpctl.SyclQueue at 0x7f5bbeb3f780>,
 'offset': 0}
```
@coveralls
Copy link
Collaborator

coveralls commented Aug 23, 2021

Coverage Status

Coverage remained the same at 65.067% when pulling 315b9aa on bugfix/gh-547 into 6e0a5bb on master.

@oleksandr-pavlyk oleksandr-pavlyk merged commit d0d6529 into master Aug 24, 2021
@oleksandr-pavlyk oleksandr-pavlyk deleted the bugfix/gh-547 branch August 24, 2021 12:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

usm_ndarray constructor with shape=() returns instance with __sycl_usm_array_interface__ having shape=None
2 participants