Repository navigation
Conversation
|
Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually. Contributors can view more details about this message here. |
Contributor
Author
|
/ok to test 9cca628 |
9 of 12 tasks
check_pointer_residency counted a pointer as device-accessible when cudaPointerGetAttributes() returned a non-null devicePointer. On systems where the GPU can access pageable memory (HMM, ATS), devicePointer can be non-null for ordinary pageable host memory, so host buffers were classified as host_and_device. utils::memzero then issued cudaMemsetAsync on host memory (for example the accum_sorted_sizes host_vector at the start of ivf_pq::build), and the PQ/VPQ encoders could launch kernels directly on pageable host data. These GPU accesses to pageable memory go through GPU page faults. Classify memory by cudaPointerAttributes::type: pageable (cudaMemoryTypeUnregistered) memory is host-only, while device, managed and registered host memory keep their previous classification. Apply the same rule in the PQ train_from_rows dispatch and in expect_device_accessible_data_handle.
bdice
force-pushed
the
b4-hmm-pageable-copy-ci
branch
from
October 11, 2026 00:38
9cca628 to
3b690d1
Compare
Contributor
Author
|
/ok to test 3b690d1 |
Contributor
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Workstream B4 (#2783, #2772). Candidate fix C4:
check_pointer_residency(and its siblings in PQtrain_from_rowsandexpect_device_accessible_data_handle) now classify memory bycudaPointerAttributes::type. Pageable (unregistered) host memory is never treated as device memory, even whendevicePointeris non-null on HMM/ATS systems. Without this,utils::memzeroissued acudaMemsetAsyncon theaccum_sorted_sizeshost_vector at the start ofivf_pq::build, which matches the stuck memset seen with CUDA_LAUNCH_BLOCKING=1. This follows the residency theory on B's earlierbdice:fix-hmm-pageable-residencybranch. The CI-only commits build libcuvs with the default arch list, run a pointer-attribute probe on touched and untouched malloc buffers, and loop the PQ+CAGRA reproducer on 4x H100 12.9.2, followed by the full suite. The no-fix control is #2817. Do not merge.