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

Device memory sizes #589

Merged
merged 3 commits into from
Sep 23, 2021
Merged

Device memory sizes #589

merged 3 commits into from
Sep 23, 2021

Conversation

oleksandr-pavlyk
Copy link
Collaborator

Closes #587

Adds DPCTLDevice_GetGlobalMemSize(DRef), DPCTLDevice_GetLocalMemSize(DRef).

Also adds dpctl.SyclDevice.global_mem_size and dpctl.SyclDevice.local_mem_size.

@oleksandr-pavlyk
Copy link
Collaborator Author

@diptorupd @reazulhoque Not sure when coveralls comes back to being functional, but can you look through the code and try it out?

@coveralls
Copy link
Collaborator

coveralls commented Sep 21, 2021

Coverage Status

Coverage increased (+0.04%) to 74.082% when pulling 08da9e2 on device_memory_sizes into 002d24b on master.

Adds DPCTLDevice_GetGlobalMemSize(DRef) which gives size of device
global memory in bytes as uint64_t (aka size_t)

Adds DPCTLDevice_GetLocalMemSize(DRef) which gives size of device
local memory in bytes as uint64_t
Adds `dpctl.SyclDevice.global_mem_size` and
`dpctl.SyclDevice.local_mem_size`
@oleksandr-pavlyk oleksandr-pavlyk merged commit f7b335d into master Sep 23, 2021
@oleksandr-pavlyk oleksandr-pavlyk deleted the device_memory_sizes branch September 23, 2021 14:30
oleksandr-pavlyk added a commit that referenced this pull request Sep 23, 2021
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.

SyclDevice should expose global_mem_size, local_mem_size info descriptor
2 participants