Skip to content
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

Use size_t instead of Py_ssize_t to fit device USM pointer #405

Merged
merged 1 commit into from
Apr 27, 2021

Conversation

oleksandr-pavlyk
Copy link
Collaborator

Use size_t instead of Py_ssize_t to represent USM pointer as Python object. This allows _USMBufferData class to understand SUAI with device-pointers.

Also to avoid formatting of the USM-device pointer as a negative hex value, e.g. format dpctl.memory.MemoryUSMDevice(32).

Also to avoid formatting of the USM-device pointer as a negative hex value
@oleksandr-pavlyk oleksandr-pavlyk force-pushed the bugfix/use-size_t-for-pointer branch from de68712 to fb3de0c Compare April 27, 2021 15:36
@oleksandr-pavlyk oleksandr-pavlyk merged commit 776171a into master Apr 27, 2021
@oleksandr-pavlyk oleksandr-pavlyk deleted the bugfix/use-size_t-for-pointer branch April 27, 2021 19:42
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.

2 participants