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

Correct rmm tests for validity of device pointers #1714

Conversation

robertmaynard
Copy link
Contributor

Description

The is_host_memory function has been updated to understand that cudaMemoryTypeUnregistered is returned when provided pointers allocated by malloc and other host side allocation functions.

The is_device_memory function has been restricted to report only when device pointer that is usable by the calling cuda context. For that reason the tests now also set the active cuda device for all calling threads.

Checklist

  • I am familiar with the Contributing Guidelines.
  • New or existing tests cover these changes.
  • The documentation is up to date with these changes.

@robertmaynard robertmaynard added feature request New feature or request non-breaking Non-breaking change labels Oct 31, 2024
@robertmaynard robertmaynard requested a review from a team as a code owner October 31, 2024 15:31
@github-actions github-actions bot added the cpp Pertains to C++ code label Oct 31, 2024
@robertmaynard robertmaynard force-pushed the bug/correct_pointer_attribute_checks branch from 9044d9c to 5dd8acb Compare October 31, 2024 19:37
@robertmaynard
Copy link
Contributor Author

/merge

@rapids-bot rapids-bot bot merged commit 9b76d36 into rapidsai:branch-24.12 Nov 1, 2024
58 checks passed
@robertmaynard robertmaynard deleted the bug/correct_pointer_attribute_checks branch November 1, 2024 17:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cpp Pertains to C++ code feature request New feature or request non-breaking Non-breaking change
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants