From 67219993da7b3d0f5079b368102d93e502b5fccb Mon Sep 17 00:00:00 2001 From: Ramil Bakhshyiev Date: Wed, 15 May 2024 08:07:23 -0700 Subject: [PATCH] Add cuda-toolkit package dependency to faiss-gpu and faiss-gpu-raft conda build recipes Summary: This change is required to unblock the migration to GitHub Actions. `cuda-toolkit` was only specified in the `libfaiss` package and it was not available in `faiss-gpu` or `faiss-gpu-raft`. This currently works on CircleCI because the runner image has CUDA toolkit of the needed version installed on the system and the build logic falls back to that but breaks on GitHub Actions because their runner images do not come with CUDA toolkit pre-installed. Differential Revision: D57371597 --- conda/faiss-gpu-raft/meta.yaml | 1 + conda/faiss-gpu/meta.yaml | 1 + 2 files changed, 2 insertions(+) diff --git a/conda/faiss-gpu-raft/meta.yaml b/conda/faiss-gpu-raft/meta.yaml index 3eebc9876b..23e4835032 100644 --- a/conda/faiss-gpu-raft/meta.yaml +++ b/conda/faiss-gpu-raft/meta.yaml @@ -87,6 +87,7 @@ outputs: - swig - cmake >=3.24.0 - make # [not win] + - cuda-toolkit {{ cudatoolkit }} host: - python {{ python }} - numpy >=1.19,<2 diff --git a/conda/faiss-gpu/meta.yaml b/conda/faiss-gpu/meta.yaml index 7ac24e785d..3d614df1bf 100644 --- a/conda/faiss-gpu/meta.yaml +++ b/conda/faiss-gpu/meta.yaml @@ -83,6 +83,7 @@ outputs: - swig - cmake >=3.24.0 - make # [not win] + - cuda-toolkit {{ cudatoolkit }} host: - python {{ python }} - numpy >=1.19,<2