New port: math/faiss: Library for efficient similarity search & clustering of dense vectors

This commit is contained in:
Yuri Victorovich 2020-08-31 01:18:05 +00:00
parent 4f2b5f1a1d
commit 50340f5192
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=547139
5 changed files with 103 additions and 0 deletions

View File

@ -248,6 +248,7 @@
SUBDIR += eval
SUBDIR += exprtk
SUBDIR += facile
SUBDIR += faiss
SUBDIR += fann
SUBDIR += fcl
SUBDIR += fcl05

31
math/faiss/Makefile Normal file
View File

@ -0,0 +1,31 @@
# $FreeBSD$
PORTNAME= faiss
DISTVERSIONPREFIX= v
DISTVERSION= 1.6.3-72
DISTVERSIONSUFFIX= -gc97f890
CATEGORIES= math
MAINTAINER= yuri@FreeBSD.org
COMMENT= Library for efficient similarity search & clustering of dense vectors
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
LIB_DEPENDS= libopenblasp-r0.3.9.so:math/openblas
USES= cmake compiler:c++11-lang
USE_GITHUB= yes
GH_ACCOUNT= facebookresearch
USE_LDCONFIG= yes
CMAKE_ON= BUILD_SHARED_LIBS
CMAKE_OFF= FAISS_ENABLE_GPU FAISS_ENABLE_PYTHON
do-test:
@cd ${BUILD_WRKSRC} && \
${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} -DBUILD_TESTING:BOOL=ON ${CMAKE_SOURCE_PATH} && \
${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} ${ALL_TARGET} && \
${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} test
.include <bsd.port.mk>

3
math/faiss/distinfo Normal file
View File

@ -0,0 +1,3 @@
TIMESTAMP = 1598835056
SHA256 (facebookresearch-faiss-v1.6.3-72-gc97f890_GH0.tar.gz) = 3eab64e47d8ffc6c5d42da75c1d88898b23034c067eb2225ccc9a4eb27b0c854
SIZE (facebookresearch-faiss-v1.6.3-72-gc97f890_GH0.tar.gz) = 2752018

6
math/faiss/pkg-descr Normal file
View File

@ -0,0 +1,6 @@
Faiss is a library for efficient similarity search and clustering of dense
vectors. It contains algorithms that search in sets of vectors of any size,
up to ones that possibly do not fit in RAM. It also contains supporting code
for evaluation and parameter tuning.
WWW: https://github.com/facebookresearch/faiss

62
math/faiss/pkg-plist Normal file
View File

@ -0,0 +1,62 @@
include/faiss/AutoTune.h
include/faiss/Clustering.h
include/faiss/DirectMap.h
include/faiss/IVFlib.h
include/faiss/Index.h
include/faiss/Index2Layer.h
include/faiss/IndexBinary.h
include/faiss/IndexBinaryFlat.h
include/faiss/IndexBinaryFromFloat.h
include/faiss/IndexBinaryHNSW.h
include/faiss/IndexBinaryHash.h
include/faiss/IndexBinaryIVF.h
include/faiss/IndexFlat.h
include/faiss/IndexHNSW.h
include/faiss/IndexIVF.h
include/faiss/IndexIVFFlat.h
include/faiss/IndexIVFPQ.h
include/faiss/IndexIVFPQR.h
include/faiss/IndexIVFSpectralHash.h
include/faiss/IndexLSH.h
include/faiss/IndexLattice.h
include/faiss/IndexPQ.h
include/faiss/IndexPreTransform.h
include/faiss/IndexReplicas.h
include/faiss/IndexScalarQuantizer.h
include/faiss/IndexShards.h
include/faiss/InvertedLists.h
include/faiss/MatrixStats.h
include/faiss/MetaIndexes.h
include/faiss/MetricType.h
include/faiss/OnDiskInvertedLists.h
include/faiss/VectorTransform.h
include/faiss/clone_index.h
include/faiss/impl/AuxIndexStructures.h
include/faiss/impl/FaissAssert.h
include/faiss/impl/FaissException.h
include/faiss/impl/HNSW.h
include/faiss/impl/PolysemousTraining.h
include/faiss/impl/ProductQuantizer-inl.h
include/faiss/impl/ProductQuantizer.h
include/faiss/impl/ScalarQuantizer.h
include/faiss/impl/ThreadedIndex-inl.h
include/faiss/impl/ThreadedIndex.h
include/faiss/impl/io.h
include/faiss/impl/io_macros.h
include/faiss/impl/lattice_Zn.h
include/faiss/impl/platform_macros.h
include/faiss/index_factory.h
include/faiss/index_io.h
include/faiss/utils/Heap.h
include/faiss/utils/WorkerThread.h
include/faiss/utils/distances.h
include/faiss/utils/extra_distances.h
include/faiss/utils/hamming-inl.h
include/faiss/utils/hamming.h
include/faiss/utils/random.h
include/faiss/utils/utils.h
lib/libfaiss.so
%%DATADIR%%/faiss-config-version.cmake
%%DATADIR%%/faiss-config.cmake
%%DATADIR%%/faiss-targets-%%CMAKE_BUILD_TYPE%%.cmake
%%DATADIR%%/faiss-targets.cmake