diff --git a/cpp/cmake/patches/faiss.diff b/cpp/cmake/patches/faiss-25.12.diff similarity index 91% rename from cpp/cmake/patches/faiss.diff rename to cpp/cmake/patches/faiss-25.12.diff index 185449c4e2..98edbdfb8c 100644 --- a/cpp/cmake/patches/faiss.diff +++ b/cpp/cmake/patches/faiss-25.12.diff @@ -11,17 +11,33 @@ index c82c73e7d..b9100c272 100644 auto resImpl = prov->getResources(); auto res = resImpl.get(); +diff --git a/faiss/gpu/GpuResources.h b/faiss/gpu/GpuResources.h +index c0c851a89..61d9d4dbe 100644 +--- a/faiss/gpu/GpuResources.h ++++ b/faiss/gpu/GpuResources.h +@@ -33,7 +33,7 @@ + + #if defined USE_NVIDIA_CUVS + #include +-#include ++#include + #endif + + namespace faiss { diff --git a/faiss/gpu/StandardGpuResources.cpp b/faiss/gpu/StandardGpuResources.cpp -index 649b7cb5c..765fdb3d0 100644 +index 649b7cb5c..622443044 100644 --- a/faiss/gpu/StandardGpuResources.cpp +++ b/faiss/gpu/StandardGpuResources.cpp -@@ -24,8 +24,8 @@ +@@ -23,9 +23,9 @@ + #if defined USE_NVIDIA_CUVS #include - #include -+#include - #include +-#include +-#include -#include ++#include ++#include ++#include #include #endif @@ -80,7 +96,7 @@ index 649b7cb5c..765fdb3d0 100644 auto err = cudaFree(p); FAISS_ASSERT_FMT( diff --git a/faiss/gpu/StandardGpuResources.h b/faiss/gpu/StandardGpuResources.h -index f23ca19d8..c43926fce 100644 +index f23ca19d8..3ba606606 100644 --- a/faiss/gpu/StandardGpuResources.h +++ b/faiss/gpu/StandardGpuResources.h @@ -25,7 +25,8 @@ @@ -88,7 +104,7 @@ index f23ca19d8..c43926fce 100644 #if defined USE_NVIDIA_CUVS #include -#include -+#include ++#include +#include #endif diff --git a/cpp/cmake/patches/faiss_override.json b/cpp/cmake/patches/faiss_override.json index b8358da48b..989a043343 100644 --- a/cpp/cmake/patches/faiss_override.json +++ b/cpp/cmake/patches/faiss_override.json @@ -6,8 +6,8 @@ "git_tag": "v1.12.0", "patches" : [ { - "file" : "${current_json_dir}/faiss.diff", - "issue" : "Multiple fixes for cuVS compatibility", + "file" : "${current_json_dir}/faiss-25.12.diff", + "issue" : "Multiple fixes for cuVS and RMM compatibility", "fixed_in" : "" } ] diff --git a/examples/cpp/src/cagra_hnsw_ace_example.cu b/examples/cpp/src/cagra_hnsw_ace_example.cu index b2474eeab9..8907248b1f 100644 --- a/examples/cpp/src/cagra_hnsw_ace_example.cu +++ b/examples/cpp/src/cagra_hnsw_ace_example.cu @@ -14,8 +14,8 @@ #include #include -#include -#include +#include +#include #include "common.cuh"