From nobody Sun Apr 27 03:38:33 2025 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4ZlXNn4cJPz5vCQr; Sun, 27 Apr 2025 03:38:33 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4ZlXNn1RN9z3Jng; Sun, 27 Apr 2025 03:38:33 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1745725113; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=KmWWV4z3oCG33RX0bLu5dU5Y6Vxqqy9ZghHu/5c9EVc=; b=HlLVBPYM8p3LXeQ7swz3Il9swQ7gOK44Fu2exIufhLO2b3nXTa4uP27dugRyldN3bCB8op xLvpAG0JwHNvayjys9Qu2NBLpNLF0N6MI6xq+87dCBfjBNr/RMMVSkUHVyiY8DiFatb3l1 cxRYpAgtcMytx7TuDivUObD156A1yUqmjpX4bW0wwLosp4Ie64SWSsW02nF516+/EaQ5On z2YlFl64yWSzUedk2abBVmvZ0SWiJjrw6JmDtnGCG5+Z8wgXdyn7TLUkLxgNoc702VHGDb sN32WE41oaAz8Qpzkp0C/zlW6+f43XhKBG8sn7nYnj2dsIiJkEV4c9PQh25Rwg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1745725113; a=rsa-sha256; cv=none; b=EGrYg9x6JvBE9helL5gDh7G1RVurKtbRjydmiT51fiD1n6FZGv2GeRY16ELLosqCCEIvie MBhs4sM/Obhxc8uD2gCMnqnqVfkYCEurFav34CV5Mq0lP67wyb6S4rI5BBQl0IK1fafGMl vufrxPbBjU4+3CNx62V9WQSkOjabAg82aZ5NfzbmnGVQ9qhTFjF+eij0cljMkBso8rNH+7 XCI+4StgseK5aNBDCM1DitYcdVwqIgDCjLc2yFNg9bJA49tUCkCl7otgo6zbs20Gz7v1OU /c/PCucBqOAuBrXYgtUqaowNsckmYr9dIB85+GF4oU7qeXg5uw/RfKx6QEP6ng== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1745725113; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=KmWWV4z3oCG33RX0bLu5dU5Y6Vxqqy9ZghHu/5c9EVc=; b=LiZMRjayMR0I/xQOpC8nMpNYiL3aRN46XBDfWgO+x5eMC1qU5S66vGkyLmHbnox18fClPv jdBCwXbla/vMY9VvXP/m3XzLxHD4hgM7lhWKb5v8irgsD6AKWuo3KNqoU3U6MYtjXo8hyo bk7b8Hj+SQE/3QzV40VYaLsagXrFRzta11GJzqsJXFpT6wG7fUzQdK5cB9acPVuiqYPEHf EbYLePeaefD0fmY//wOG4nn0wiH2cL24dAFNCGONhkEliZS86D09pn5UcRvnQhm3Qo88Zm h4/6ySEyyq65El2hZyKZQ31JkRS79bkcqd7dKOAj2l/PR1eaNeFlURBOHKhd0w== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4ZlXNn0n4YzqBm; Sun, 27 Apr 2025 03:38:33 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 53R3cXgG034054; Sun, 27 Apr 2025 03:38:33 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 53R3cXbh034051; Sun, 27 Apr 2025 03:38:33 GMT (envelope-from git) Date: Sun, 27 Apr 2025 03:38:33 GMT Message-Id: <202504270338.53R3cXbh034051@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Yuri Victorovich Subject: git: 7a2dc2f8e94a - main - =?utf-8?Q?math/{,py-}faiss: update 1.9.0 =E2=86=92 1.11.0?= List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-main@freebsd.org Sender: owner-dev-commits-ports-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: yuri X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 7a2dc2f8e94a632792571775602c084afdb43ad7 Auto-Submitted: auto-generated The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=7a2dc2f8e94a632792571775602c084afdb43ad7 commit 7a2dc2f8e94a632792571775602c084afdb43ad7 Author: Yuri Victorovich AuthorDate: 2025-04-27 01:58:54 +0000 Commit: Yuri Victorovich CommitDate: 2025-04-27 03:38:23 +0000 math/{,py-}faiss: update 1.9.0 → 1.11.0 Reported by: portscout --- math/faiss/Makefile | 13 ++++++----- math/faiss/distinfo | 8 ++++--- math/faiss/files/patch-perf__tests_CMakeLists.txt | 17 ++++++++++++++ math/faiss/files/patch-tests_CMakeLists.txt | 27 +++++++++++++++++++++++ math/faiss/pkg-plist | 13 +++++++++++ math/py-faiss/Makefile | 6 +++-- math/py-faiss/distinfo | 6 ++--- 7 files changed, 77 insertions(+), 13 deletions(-) diff --git a/math/faiss/Makefile b/math/faiss/Makefile index fe2a44487416..b64c7cdd9051 100644 --- a/math/faiss/Makefile +++ b/math/faiss/Makefile @@ -1,11 +1,10 @@ PORTNAME= faiss DISTVERSIONPREFIX= v -DISTVERSION= 1.9.0 -PORTREVISION= 1 +DISTVERSION= 1.11.0 CATEGORIES= math -#PATCH_SITES= https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/commit/ -#PATCHFILES= 70c5de13cd9e2ce94181fe67d9a70eb371ecd554.patch:-p1 # fix GTest linkage +PATCH_SITES= https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/commit/ +PATCHFILES= 01c7e647388f9e23fc828059a3fd9c61b43c0740.patch:-p1 # FreeBSD compatibility patch, https://github.com/facebookresearch/faiss/pull/4316 MAINTAINER= yuri@FreeBSD.org COMMENT= Library for efficient similarity search & clustering of dense vectors @@ -20,7 +19,9 @@ BROKEN= requires OpenMP support that is missing on this architecture BUILD_DEPENDS= openblas>0:math/openblas # faiss links with libopenblasp-rN.N.N.so (installed by default only on amd64,i386), so use non-filename-specific DEPENDS commands RUN_DEPENDS= openblas>0:math/openblas -TEST_DEPENDS= googletest>0:devel/googletest +TEST_DEPENDS= benchmark>0:devel/benchmark \ + gflags>0:devel/gflags \ + googletest>0:devel/googletest USES= cmake:testing compiler:c++11-lang localbase:ldflags # tests fail to compile, see https://github.com/facebookresearch/faiss/issues/3913 @@ -32,4 +33,6 @@ GH_ACCOUNT= facebookresearch CMAKE_ON= BUILD_SHARED_LIBS CMAKE_OFF= BUILD_TESTING FAISS_ENABLE_GPU FAISS_ENABLE_PYTHON +# tests as of 1.11.0: 99% tests passed, 1 tests failed out of 132, TestMemoryLeak.ivfflat (Timeout) + .include diff --git a/math/faiss/distinfo b/math/faiss/distinfo index 1595317a3324..189bd140d1ff 100644 --- a/math/faiss/distinfo +++ b/math/faiss/distinfo @@ -1,3 +1,5 @@ -TIMESTAMP = 1728188633 -SHA256 (facebookresearch-faiss-v1.9.0_GH0.tar.gz) = a6c3c60811aeec2dd8943a41f3df244bfed12371453d9b10eaf6ba55fafad1d2 -SIZE (facebookresearch-faiss-v1.9.0_GH0.tar.gz) = 1084439 +TIMESTAMP = 1745711436 +SHA256 (facebookresearch-faiss-v1.11.0_GH0.tar.gz) = c5d517da6deb6a6d74290d7145331fc7474426025e2d826fa4a6d40670f4493c +SIZE (facebookresearch-faiss-v1.11.0_GH0.tar.gz) = 1138777 +SHA256 (01c7e647388f9e23fc828059a3fd9c61b43c0740.patch) = 6248c0d69b2309c5b977d6cd0ff75788a6e668b6c6c87c3113bb2e5603273ea4 +SIZE (01c7e647388f9e23fc828059a3fd9c61b43c0740.patch) = 795 diff --git a/math/faiss/files/patch-perf__tests_CMakeLists.txt b/math/faiss/files/patch-perf__tests_CMakeLists.txt new file mode 100644 index 000000000000..ff5d7b65c0ed --- /dev/null +++ b/math/faiss/files/patch-perf__tests_CMakeLists.txt @@ -0,0 +1,17 @@ +--- perf_tests/CMakeLists.txt.orig 2025-04-26 22:25:16 UTC ++++ perf_tests/CMakeLists.txt +@@ -7,13 +7,7 @@ set(BENCHMARK_ENABLE_TESTING OFF) + project(faiss_perf_tests) + set(BENCHMARK_ENABLE_TESTING OFF) + +-include(FetchContent) +-FetchContent_Declare(googlebenchmark +- GIT_REPOSITORY https://github.com/google/benchmark.git +- GIT_TAG main) # need main for benchmark::benchmark +-FetchContent_MakeAvailable( +- googlebenchmark) +- ++find_package(benchmark) + + find_package(Threads REQUIRED) + find_package(OpenMP REQUIRED) diff --git a/math/faiss/files/patch-tests_CMakeLists.txt b/math/faiss/files/patch-tests_CMakeLists.txt new file mode 100644 index 000000000000..94541869d110 --- /dev/null +++ b/math/faiss/files/patch-tests_CMakeLists.txt @@ -0,0 +1,27 @@ +--- tests/CMakeLists.txt.orig 2025-04-26 22:40:11 UTC ++++ tests/CMakeLists.txt +@@ -50,15 +50,7 @@ endif() + target_link_libraries(faiss_test PUBLIC faiss_example_external_module) + endif() + +-include(FetchContent) +-FetchContent_Declare( +- googletest +- GIT_REPOSITORY https://github.com/google/googletest.git +- GIT_TAG 58d77fa8070e8cec2dc1ed015d66b454c8d78850 # release-1.12.1 +- OVERRIDE_FIND_PACKAGE) +-set(BUILD_GMOCK CACHE BOOL OFF) +-set(INSTALL_GTEST CACHE BOOL OFF) +-FetchContent_MakeAvailable(googletest) ++find_package(GTest CONFIG REQUIRED) + + if(NOT EXISTS ${CMAKE_FIND_PACKAGE_REDIRECTS_DIR}/gtest-config.cmake + AND NOT EXISTS ${CMAKE_FIND_PACKAGE_REDIRECTS_DIR}/GTestConfig.cmake) +@@ -79,7 +71,6 @@ find_package(OpenMP REQUIRED) + endif() + + find_package(OpenMP REQUIRED) +-find_package(GTest CONFIG REQUIRED) + + target_link_libraries(faiss_test PRIVATE + OpenMP::OpenMP_CXX diff --git a/math/faiss/pkg-plist b/math/faiss/pkg-plist index 726ba7114f2b..a8c21fd07a17 100644 --- a/math/faiss/pkg-plist +++ b/math/faiss/pkg-plist @@ -25,14 +25,17 @@ include/faiss/IndexIVFIndependentQuantizer.h include/faiss/IndexIVFPQ.h include/faiss/IndexIVFPQFastScan.h include/faiss/IndexIVFPQR.h +include/faiss/IndexIVFRaBitQ.h include/faiss/IndexIVFSpectralHash.h include/faiss/IndexLSH.h include/faiss/IndexLattice.h include/faiss/IndexNNDescent.h include/faiss/IndexNSG.h +include/faiss/IndexNeuralNetCodec.h include/faiss/IndexPQ.h include/faiss/IndexPQFastScan.h include/faiss/IndexPreTransform.h +include/faiss/IndexRaBitQ.h include/faiss/IndexRefine.h include/faiss/IndexReplicas.h include/faiss/IndexRowwiseMinMax.h @@ -61,18 +64,23 @@ include/faiss/impl/ProductAdditiveQuantizer.h include/faiss/impl/ProductQuantizer-inl.h include/faiss/impl/ProductQuantizer.h include/faiss/impl/Quantizer.h +include/faiss/impl/RaBitQuantizer.h include/faiss/impl/ResidualQuantizer.h include/faiss/impl/ResultHandler.h include/faiss/impl/ScalarQuantizer.h include/faiss/impl/ThreadedIndex-inl.h include/faiss/impl/ThreadedIndex.h include/faiss/impl/code_distance/code_distance-avx2.h +include/faiss/impl/code_distance/code_distance-avx512.h include/faiss/impl/code_distance/code_distance-generic.h +include/faiss/impl/code_distance/code_distance-sve.h include/faiss/impl/code_distance/code_distance.h +include/faiss/impl/index_read_utils.h include/faiss/impl/io.h include/faiss/impl/io_macros.h include/faiss/impl/kmeans1d.h include/faiss/impl/lattice_Zn.h +include/faiss/impl/maybe_owned_vector.h include/faiss/impl/platform_macros.h include/faiss/impl/pq4_fast_scan.h include/faiss/impl/residual_quantizer_encode_steps.h @@ -86,6 +94,7 @@ include/faiss/invlists/InvertedListsIOHook.h include/faiss/invlists/OnDiskInvertedLists.h include/faiss/utils/AlignedTable.h include/faiss/utils/Heap.h +include/faiss/utils/NeuralNet.h include/faiss/utils/WorkerThread.h include/faiss/utils/approx_topk/approx_topk.h include/faiss/utils/approx_topk/avx2-inl.h @@ -106,6 +115,7 @@ include/faiss/utils/fp16.h include/faiss/utils/hamming-inl.h include/faiss/utils/hamming.h include/faiss/utils/hamming_distance/avx2-inl.h +include/faiss/utils/hamming_distance/avx512-inl.h include/faiss/utils/hamming_distance/common.h include/faiss/utils/hamming_distance/generic-inl.h include/faiss/utils/hamming_distance/hamdis-inl.h @@ -117,10 +127,13 @@ include/faiss/utils/quantize_lut.h include/faiss/utils/random.h include/faiss/utils/simdlib.h include/faiss/utils/simdlib_avx2.h +include/faiss/utils/simdlib_avx512.h include/faiss/utils/simdlib_emulated.h include/faiss/utils/simdlib_neon.h +include/faiss/utils/simdlib_ppc64.h include/faiss/utils/sorting.h include/faiss/utils/transpose/transpose-avx2-inl.h +include/faiss/utils/transpose/transpose-avx512-inl.h include/faiss/utils/utils.h lib/libfaiss.so %%DATADIR%%/faiss-config-version.cmake diff --git a/math/py-faiss/Makefile b/math/py-faiss/Makefile index b83f259c71b5..355434f96dc8 100644 --- a/math/py-faiss/Makefile +++ b/math/py-faiss/Makefile @@ -1,6 +1,6 @@ PORTNAME= faiss DISTVERSIONPREFIX= v -DISTVERSION= 1.9.0 +DISTVERSION= 1.11.0 CATEGORIES= math PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -30,7 +30,7 @@ WRKSRC_SUBDIR= faiss/python CMAKE_ARGS= -DPython_EXECUTABLE:STRING=${PYTHON_CMD} -TEST_WRKSRC= ${WRKSRC}/../.. +TEST_WRKSRC= ${WRKSRC}/../../tests TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} post-patch: # remove GPU testcases @@ -44,4 +44,6 @@ do-install: # see https://github.com/facebookresearch/faiss/issues/2194 .endfor cd ${BUILD_WRKSRC} && ${COPYTREE_SHARE} contrib ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/${PORTNAME} +# tests are broken, see https://github.com/facebookresearch/faiss/issues/4317 + .include diff --git a/math/py-faiss/distinfo b/math/py-faiss/distinfo index ad7e827ec030..840cf5ea3b37 100644 --- a/math/py-faiss/distinfo +++ b/math/py-faiss/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1728191400 -SHA256 (facebookresearch-faiss-v1.9.0_GH0.tar.gz) = a6c3c60811aeec2dd8943a41f3df244bfed12371453d9b10eaf6ba55fafad1d2 -SIZE (facebookresearch-faiss-v1.9.0_GH0.tar.gz) = 1084439 +TIMESTAMP = 1745711421 +SHA256 (facebookresearch-faiss-v1.11.0_GH0.tar.gz) = c5d517da6deb6a6d74290d7145331fc7474426025e2d826fa4a6d40670f4493c +SIZE (facebookresearch-faiss-v1.11.0_GH0.tar.gz) = 1138777