File tree Expand file tree Collapse file tree 3 files changed +6
-9
lines changed Expand file tree Collapse file tree 3 files changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ USER appuser
26
26
# Put conda in path so we can use conda activate
27
27
ENV PATH=$CONDA_DIR/bin:$PATH
28
28
# 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
30
30
RUN cmake --version
31
31
32
32
# set CUDA_ARCHS to use in cmake call in build script
@@ -36,8 +36,8 @@ ENV CUDA_ARCHS "80;86-real"
36
36
RUN conda install -y -q -c conda-forge gxx_linux-64=14.2 sysroot_linux-64=2.17
37
37
38
38
# 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
41
41
42
42
# Execute steps to build faiss
43
43
# Ref: https://github.com/facebookresearch/faiss/blob/main/INSTALL.md#step-1-invoking-cmake
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ cmake --version
14
14
echo " Running cmake build"
15
15
pwd
16
16
cmake -B build \
17
- -DBUILD_SHARED_LIBS=ON \
17
+ -DBUILD_SHARED_LIBS=OFF \
18
18
-DFAISS_ENABLE_GPU=ON \
19
19
-DFAISS_OPT_LEVEL=generic \
20
20
-DFAISS_ENABLE_C_API=OFF \
@@ -37,7 +37,4 @@ echo "Running make command"
37
37
make -C build -j6 faiss swigfaiss
38
38
39
39
# 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)
You can’t perform that action at this time.
0 commit comments