-
Notifications
You must be signed in to change notification settings - Fork 40
add memory properties API #1301
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
base: main
Are you sure you want to change the base?
Conversation
92db71d
to
56573df
Compare
a5c357c
to
17f6335
Compare
787d15d
to
845f2b4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds a comprehensive memory properties API to the unified memory framework, enabling users to query various properties of allocated memory such as memory type, base address, size, and provider-specific information.
- Introduces memory properties API with two main functions:
umfGetMemoryPropertiesHandle
andumfGetMemoryProperty
- Extends memory provider operations with
ext_get_allocation_properties
function - Adds comprehensive test coverage for the new memory properties functionality
Reviewed Changes
Copilot reviewed 37 out of 38 changed files in this pull request and generated 4 comments.
Show a summary per file
File | Description |
---|---|
include/umf/base.h | Defines memory property types and handle structures |
include/umf/experimental/memory_props.h | Public API for memory properties functionality |
src/memory_props.c | Core implementation of memory properties API |
src/provider/provider_tracking.c | Updates tracking provider to support memory properties |
test/props/ | Comprehensive test suite for memory properties API |
Various provider files | Updates all providers to support new allocation properties interface |
7166723
to
cfae388
Compare
55cd0ea
to
f0d0c8c
Compare
0662923
to
4e1961a
Compare
4e1961a
to
4e60061
Compare
0be027c
to
a7ca9f6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
add memory properties API
https://reviewable.io/reviews/bratpiorka/unified-memory-framework/3
fixes #1263