Skip to content

Commit

Permalink
Fix linter warnings in faiss-gpu Conda build script (#3463)
Browse files Browse the repository at this point in the history
Summary:

Satisfying linter warnings from a previous change

Reviewed By: junjieqi

Differential Revision: D57581364
  • Loading branch information
ramilbakhshyiev authored and facebook-github-bot committed May 20, 2024
1 parent 7fc8184 commit af0e164
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions conda/faiss-gpu/build-lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
set -e

# Workaround for CUDA 11.4.4 builds. Moves all necessary headers to include root.
if [[ -n "$FAISS_FLATTEN_CONDA_INCLUDES" && "$FAISS_FLATTEN_CONDA_INCLUDES" == "1" ]]; then
cp -r -n $CONDA_PREFIX/x86_64-conda-linux-gnu/sysroot/usr/include/* $CONDA_PREFIX/include/
cp -r -n $CONDA_PREFIX/x86_64-conda-linux-gnu/include/c++/11.2.0/* $CONDA_PREFIX/include/
cp -r -n $CONDA_PREFIX/x86_64-conda-linux-gnu/include/c++/11.2.0/x86_64-conda-linux-gnu/* $CONDA_PREFIX/include/
if [ -n "$FAISS_FLATTEN_CONDA_INCLUDES" ] && [ "$FAISS_FLATTEN_CONDA_INCLUDES" = "1" ]; then
cp -r -n "$CONDA_PREFIX/x86_64-conda-linux-gnu/sysroot/usr/include/"* "$CONDA_PREFIX/include/"
cp -r -n "$CONDA_PREFIX/x86_64-conda-linux-gnu/include/c++/11.2.0/"* "$CONDA_PREFIX/include/"
cp -r -n "$CONDA_PREFIX/x86_64-conda-linux-gnu/include/c++/11.2.0/x86_64-conda-linux-gnu/"* "$CONDA_PREFIX/include/"
fi

# Build libfaiss.so/libfaiss_avx2.so/libfaiss_avx512.so
Expand Down

0 comments on commit af0e164

Please sign in to comment.