From 2050a0309043469c14546532f18e49222e6c73c9 Mon Sep 17 00:00:00 2001 From: Ramil Bakhshyiev Date: Wed, 15 May 2024 13:06:00 -0700 Subject: [PATCH] Add cuda-toolkit package dependency to faiss-gpu and faiss-gpu-raft conda build recipes (#3440) Summary: Pull Request resolved: https://github.com/facebookresearch/faiss/pull/3440 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. Reviewed By: junjieqi Differential Revision: D57371597 fbshipit-source-id: 8bededd53e2528f033fac797b296d74b47f9403e --- 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 3eebc9876..23e483503 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 7ac24e785..3d614df1b 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