mirror of
https://github.com/facebookresearch/faiss.git
synced 2025-06-03 21:54:02 +08:00
Changelog: - changed license: BSD+Patents -> MIT - propagates exceptions raised in sub-indexes of IndexShards and IndexReplicas - support for searching several inverted lists in parallel (parallel_mode != 0) - better support for PQ codes where nbit != 8 or 16 - IVFSpectralHash implementation: spectral hash codes inside an IVF - 6-bit per component scalar quantizer (4 and 8 bit were already supported) - combinations of inverted lists: HStackInvertedLists and VStackInvertedLists - configurable number of threads for OnDiskInvertedLists prefetching (including 0=no prefetch) - more test and demo code compatible with Python 3 (print with parentheses) - refactored benchmark code: data loading is now in a single file
44 lines
1.2 KiB
PHP
44 lines
1.2 KiB
PHP
# Copyright (c) Facebook, Inc. and its affiliates.
|
|
#
|
|
# This source code is licensed under the MIT license found in the
|
|
# LICENSE file in the root directory of this source tree.
|
|
|
|
CXX = @CXX@
|
|
CXXCPP = @CXXCPP@
|
|
CPPFLAGS = -DFINTEGER=int @CPPFLAGS@ @OPENMP_CXXFLAGS@ @NVCC_CPPFLAGS@
|
|
CXXFLAGS = -fPIC @ARCH_CXXFLAGS@ -Wno-sign-compare @CXXFLAGS@
|
|
CPUFLAGS = @ARCH_CPUFLAGS@
|
|
LDFLAGS = @OPENMP_CXXFLAGS@ @LDFLAGS@ @NVCC_LDFLAGS@
|
|
LIBS = @BLAS_LIBS@ @LAPACK_LIBS@ @LIBS@ @NVCC_LIBS@
|
|
PYTHONCFLAGS = @PYTHON_CFLAGS@ -I@NUMPY_INCLUDE@
|
|
|
|
NVCC = @NVCC@
|
|
CUDA_ROOT = @CUDA_PREFIX@
|
|
CUDA_ARCH = @CUDA_ARCH@
|
|
NVCCFLAGS = -I $(CUDA_ROOT)/targets/x86_64-linux/include/ \
|
|
-Xcompiler -fPIC \
|
|
-Xcudafe --diag_suppress=unrecognized_attribute \
|
|
$(CUDA_ARCH) \
|
|
-lineinfo \
|
|
-ccbin $(CXX) -DFAISS_USE_FLOAT16
|
|
|
|
OS = $(shell uname -s)
|
|
|
|
SHAREDEXT = so
|
|
SHAREDFLAGS = -shared
|
|
|
|
ifeq ($(OS),Darwin)
|
|
SHAREDEXT = dylib
|
|
SHAREDFLAGS = -dynamiclib -undefined dynamic_lookup
|
|
endif
|
|
|
|
MKDIR_P = @MKDIR_P@
|
|
PYTHON = @PYTHON@
|
|
SWIG = @SWIG@
|
|
AR ?= ar
|
|
|
|
prefix ?= @prefix@
|
|
exec_prefix ?= @exec_prefix@
|
|
libdir = @libdir@
|
|
includedir = @includedir@
|