Skip to content

Fixes #547#548

Merged
oleksandr-pavlyk merged 2 commits intomasterfrom
bugfix/gh-547
Aug 24, 2021
Merged

Fixes #547#548
oleksandr-pavlyk merged 2 commits intomasterfrom
bugfix/gh-547

Conversation

@oleksandr-pavlyk
Copy link
Copy Markdown
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
Copy Markdown
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