Skip to content

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

Merged
oleksandr-pavlyk merged 1 commit intomasterfrom
bugfix/use-size_t-for-pointer
Apr 27, 2021
Merged

Use size_t instead of Py_ssize_t to fit device USM pointer#405
oleksandr-pavlyk merged 1 commit intomasterfrom
bugfix/use-size_t-for-pointer

Conversation

@oleksandr-pavlyk
Copy link
Copy Markdown
Contributor

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