Skip to content

Commit fed22d5

Browse files
authored
Upgrading faiss to latest commit and upgrading cuvs to 25.04 (#64)
Signed-off-by: Navneet Verma <[email protected]>
1 parent 5af72b4 commit fed22d5

File tree

3 files changed

+6
-9
lines changed

3 files changed

+6
-9
lines changed

base_image/build_scripts/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ USER appuser
2626
# Put conda in path so we can use conda activate
2727
ENV PATH=$CONDA_DIR/bin:$PATH
2828
#install some necessary dependencies
29-
RUN conda install -y -q python=3.11 cmake=3.26 make=4.2 swig=4.0 "numpy<2" scipy=1.14 pytest=7.4 gflags=2.2
29+
RUN conda install -c conda-forge -y -q python=3.11 cmake=3.30.4 make=4.2 swig=4.0 "numpy<2" scipy=1.14 pytest=7.4 gflags=2.2
3030
RUN cmake --version
3131

3232
# set CUDA_ARCHS to use in cmake call in build script
@@ -36,8 +36,8 @@ ENV CUDA_ARCHS "80;86-real"
3636
RUN conda install -y -q -c conda-forge gxx_linux-64=14.2 sysroot_linux-64=2.17
3737

3838
# install all the dependencies we need for installing faiss
39-
# Ref: https://github.com/facebookresearch/faiss/blob/3c8dc4194907e9b911551d5a009468106f8b9c7f/.github/actions/build_cmake/action.yml#L57C31-L57C44
40-
RUN conda install -y -q libcuvs=24.12 cuda-nvcc gxx_linux-64=12.4 -c rapidsai -c conda-forge
39+
# Ref: https://github.com/facebookresearch/faiss/blob/main/.github/actions/build_cmake/action.yml#L64
40+
RUN conda install -y -q libcuvs=25.06 cuda-nvcc 'cuda-version>=12.0,<=12.5' cuda-toolkit=12.4.1 gxx_linux-64=12.4 -c rapidsai -c rapidsai-nightly -c conda-forge
4141

4242
# Execute steps to build faiss
4343
# Ref: https://github.com/facebookresearch/faiss/blob/main/INSTALL.md#step-1-invoking-cmake

base_image/build_scripts/build-faiss.sh

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ cmake --version
1414
echo "Running cmake build"
1515
pwd
1616
cmake -B build \
17-
-DBUILD_SHARED_LIBS=ON \
17+
-DBUILD_SHARED_LIBS=OFF \
1818
-DFAISS_ENABLE_GPU=ON \
1919
-DFAISS_OPT_LEVEL=generic \
2020
-DFAISS_ENABLE_C_API=OFF \
@@ -37,7 +37,4 @@ echo "Running make command"
3737
make -C build -j6 faiss swigfaiss
3838

3939
# Step 3: Generate and install python packages
40-
cd build/faiss/python && python3 setup.py build
41-
42-
# make faiss python bindings available for use
43-
export PYTHONPATH="$(ls -d `pwd`/tmp/faiss/build/faiss/python/build/lib*/):`pwd`/"
40+
(cd build/faiss/python && python setup.py install)

base_image/faiss

Submodule faiss updated 126 files

0 commit comments

Comments
 (0)