Skip to content

Add patch for FAISS memory resources - #1477

Merged
rapids-bot[bot] merged 2 commits into
NVIDIA:mainfrom
bdice:faiss-memory-patch
Oct 31, 2025
Merged

rapids-bot[bot] merged 2 commits into
NVIDIA:mainfrom
bdice:faiss-memory-patch

Conversation

@bdice

@bdice bdice commented Oct 29, 2025 •

Copy link
Copy Markdown
Contributor

Summary

Adds a patch to update FAISS to use RMM's new CCCL-aligned memory resource APIs. We can upstream this patch when FAISS is adopting RAPIDS 25.12+. This patch wouldn't work with the current upstream pinning of RAPIDS 25.08, so I don't think upstreaming it would be beneficial yet.

Changes

@bdice
bdice requested a review from a team as a code owner October 29, 2025 21:53
@bdice bdice added improvement Improves an existing functionality non-breaking Introduces a non-breaking change labels Oct 29, 2025
@bdice bdice self-assigned this Oct 29, 2025

@tarang-jain tarang-jain left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks for this! LGTM to make it work with rmm 25.12+. We'll upgrade Faiss' cuVS version to 25.12 after 25.12 is released.

@bdice

bdice commented Oct 31, 2025

Copy link
Copy Markdown
Contributor Author

/merge

@rapids-bot
rapids-bot Bot merged commit 87415e7 into NVIDIA:main Oct 31, 2025
landrumb pushed a commit to landrumb/cuvs that referenced this pull request Jul 8, 2026
## Summary
Adds a patch to update FAISS to use RMM's new CCCL-aligned memory resource APIs. We can upstream this patch when FAISS is adopting RAPIDS 25.12+. This patch wouldn't work with the current upstream pinning of RAPIDS 25.08, so I don't think upstreaming it would be beneficial yet.

## Changes
- Updates `rmm::mr::pinned_memory_resource` to `rmm::mr::pinned_host_memory_resource`
  - xref: rapidsai/rmm#2090
- Updates to CCCL MR interface
  - xref: rapidsai/rmm#2011, rapidsai/rmm#2112

Authors:
  - Bradley Dice (https://github.com/bdice)

Approvers:
  - Divye Gala (https://github.com/divyegala)
  - Tarang Jain (https://github.com/tarang-jain)

URL: NVIDIA#1477
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

improvement Improves an existing functionality non-breaking Introduces a non-breaking change

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants