Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
From 87c5331dfa6ec30fd9839ecb89af519e65f010e7 Mon Sep 17 00:00:00 2001
From: Bradley Dice <bdice@bradleydice.com>
Date: Mon, 29 Sep 2025 15:39:17 -0500
Subject: [PATCH] Fix missing includes for thrust::copy

---
faiss/gpu/impl/BinaryCuvsCagra.cu | 3 +++
faiss/gpu/impl/CuvsCagra.cu | 3 +++
2 files changed, 6 insertions(+)

diff --git a/faiss/gpu/impl/BinaryCuvsCagra.cu b/faiss/gpu/impl/BinaryCuvsCagra.cu
index 0ca21dc5f..b331fdc8f 100644
--- a/faiss/gpu/impl/BinaryCuvsCagra.cu
+++ b/faiss/gpu/impl/BinaryCuvsCagra.cu
@@ -32,6 +32,9 @@
#include <raft/core/resource/thrust_policy.hpp>
#include <raft/linalg/map.cuh>

+#include <thrust/copy.h>
+#include <thrust/device_ptr.h>
+
namespace faiss {
namespace gpu {

diff --git a/faiss/gpu/impl/CuvsCagra.cu b/faiss/gpu/impl/CuvsCagra.cu
index 9ac4e1c5a..755817f43 100644
--- a/faiss/gpu/impl/CuvsCagra.cu
+++ b/faiss/gpu/impl/CuvsCagra.cu
@@ -31,6 +31,9 @@
#include <raft/core/device_resources.hpp>
#include <raft/core/resource/thrust_policy.hpp>

+#include <thrust/copy.h>
+#include <thrust/device_ptr.h>
+
namespace faiss {
namespace gpu {

--
2.49.0
19 changes: 13 additions & 6 deletions cpp/cmake/patches/faiss_override.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
{
"packages" : {
"faiss" : {
"version": "1.12.0",
"git_url": "https://github.com/facebookresearch/faiss.git",
"git_tag": "v1.12.0"
}
"packages" : {
"faiss" : {
"version": "1.12.0",
"git_url": "https://github.com/facebookresearch/faiss.git",
"git_tag": "v1.12.0",
"patches" : [
{
"file" : "${current_json_dir}/faiss/fix-missing-includes-for-thrust-copy.patch",
"issue" : "Fix missing Thrust includes",
Comment thread
bdice marked this conversation as resolved.
Outdated
"fixed_in" : ""
}
]
}
}
}
Loading