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

feature: add physical system memory tests 1/n #114

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

lyu
Copy link
Contributor

@lyu lyu commented Nov 22, 2024

Related-To: NEO-11981

Related-To: NEO-11981

Signed-off-by: Wenbin Lu <[email protected]>
lzt::query_page_size(context, device, allocationSize, &pageSize);
allocationSize = lzt::create_page_aligned_size(allocationSize, pageSize);
lzt::physical_host_memory_allocation(context, allocationSize,
&reservedPhysicalHostMemory);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To validate this is actually working, between allocation and destroy, shouldn't we be attempting to at least touch a single of memory to verify it won't segfault? At least on host host side?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rwmcguir Yes, I plan to add more tests in future PRs. This one mostly just modifies the test harness to support both host & device memory, so we don't have huge PRs that are difficult to understand.

Copy link
Contributor

@Jemale Jemale left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks fine to me

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.

3 participants