Nilesh Patra pushed to branch master at Debian Med / hnswlib
Commits: 9f6b91e3 by Nilesh Patra at 2020-11-11T03:35:25+05:30 Pulled changes from source-only upload which remained unpushed to salsa - - - - - ecd7de07 by Nilesh Patra at 2020-11-11T03:35:36+05:30 Remove -march=native flags - - - - - a202e322 by Nilesh Patra at 2020-11-11T03:35:48+05:30 Limit archs for testing - - - - - 6 changed files: - debian/changelog - + debian/patches/do-not-use-native-flags.patch - debian/patches/series - debian/rules - debian/tests/control - debian/upstream/metadata Changes: ===================================== debian/changelog ===================================== @@ -1,3 +1,9 @@ +hnswlib (0.4.0-2) unstable; urgency=medium + + * Proper build instructions. (by Nilesh Patra) + + -- Steffen Moeller <[email protected]> Mon, 21 Sep 2020 16:59:36 +0200 + hnswlib (0.4.0-1) unstable; urgency=medium * Initial release (Closes: #969558) ===================================== debian/patches/do-not-use-native-flags.patch ===================================== @@ -0,0 +1,33 @@ +Description: Disable -march=native which is a baseline violation +Author: Nilesh Patra <[email protected]> +Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=974043 +Forwarded: no +Last-Update: 2020-11-11 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -14,11 +14,11 @@ + + add_executable(main ${SOURCE_EXE}) + if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang") +- SET( CMAKE_CXX_FLAGS "-Ofast -DNDEBUG -std=c++11 -DHAVE_CXX0X -openmp -march=native -fpic -ftree-vectorize") ++ SET( CMAKE_CXX_FLAGS "-Ofast -DNDEBUG -std=c++11 -DHAVE_CXX0X -openmp -fpic -ftree-vectorize") + elseif (CMAKE_CXX_COMPILER_ID STREQUAL "GNU") +-SET( CMAKE_CXX_FLAGS "-Ofast -lrt -DNDEBUG -std=c++11 -DHAVE_CXX0X -openmp -march=native -fpic -w -fopenmp -ftree-vectorize -ftree-vectorizer-verbose=0" ) ++SET( CMAKE_CXX_FLAGS "-Ofast -lrt -DNDEBUG -std=c++11 -DHAVE_CXX0X -openmp -fpic -w -fopenmp -ftree-vectorize -ftree-vectorizer-verbose=0" ) + elseif (CMAKE_CXX_COMPILER_ID STREQUAL "MSVC") +- SET( CMAKE_CXX_FLAGS "-Ofast -lrt -DNDEBUG -std=c++11 -DHAVE_CXX0X -openmp -march=native -fpic -w -fopenmp -ftree-vectorize" ) ++ SET( CMAKE_CXX_FLAGS "-Ofast -lrt -DNDEBUG -std=c++11 -DHAVE_CXX0X -openmp -fpic -w -fopenmp -ftree-vectorize" ) + endif() + + add_executable(test_updates examples/updates_test.cpp) +--- a/python_bindings/setup.py ++++ b/python_bindings/setup.py +@@ -58,7 +58,7 @@ + """A custom build extension for adding compiler-specific options.""" + c_opts = { + 'msvc': ['/EHsc', '/openmp', '/O2'], +- 'unix': ['-O3', '-march=native'], # , '-w' ++ 'unix': ['-O3'], # , '-w' + } + link_opts = { + 'unix': [], ===================================== debian/patches/series ===================================== @@ -1,3 +1,4 @@ cassert.patch noTwine.patch use-shared-while-linking.patch +do-not-use-native-flags.patch ===================================== debian/rules ===================================== @@ -5,10 +5,6 @@ export LC_ALL=C.UTF-8 PYBUILD_NAME=hnswlib PYBUILD_SYSTEM=pybuild -#PYTHON_CONFIGURE_ARGS= --dir python_bindings -#PYTHON_BUILD_ARGS= --dir python_bindings -#PYTHON_INSTALL_ARGS= --dir python_bindings - include /usr/share/dpkg/default.mk export DEB_BUILD_MAINT_OPTIONS = hardening=+all ===================================== debian/tests/control ===================================== @@ -1,3 +1,4 @@ Tests: run-unit-test Depends: @, python3-all Restrictions: allow-stderr +Architecture: amd64 arm64 i386 armhf ===================================== debian/upstream/metadata ===================================== @@ -1,18 +1,16 @@ ---- -Archive: GitHub -Bug-Database: https://github.com/nmslib/hnswlib/issues -Bug-Submit: https://github.com/nmslib/hnswlib/issues/new -Changelog: https://github.com/nmslib/hnswlib/tags Reference: - Author: Yu. A. Malkov and D. A. Yashunin - Title: > - Efficient and robust approximate nearest neighbor search using - Hierarchical Navigable Small World graphs + Title: Efficient and robust approximate nearest neighbor search using Hierarchical Navigable Small World graphs Journal: arXiv.org Year: 2016 Volume: arXiv Number: 1603.09320 URL: https://arxiv.org/abs/1603.09320 eprint: https://arxiv.org/pdf/1603.09320 +--- +Archive: GitHub +Bug-Database: https://github.com/nmslib/hnswlib/issues +Bug-Submit: https://github.com/nmslib/hnswlib/issues/new +Changelog: https://github.com/nmslib/hnswlib/tags Repository: https://github.com/nmslib/hnswlib.git Repository-Browse: https://github.com/nmslib/hnswlib View it on GitLab: https://salsa.debian.org/med-team/hnswlib/-/compare/8abc08d6dd01014314688127319c7f66a95918cd...a202e322eeba7de100a4731f3286a9a8c6d2df3d -- View it on GitLab: https://salsa.debian.org/med-team/hnswlib/-/compare/8abc08d6dd01014314688127319c7f66a95918cd...a202e322eeba7de100a4731f3286a9a8c6d2df3d You're receiving this email because of your account on salsa.debian.org.
_______________________________________________ debian-med-commit mailing list [email protected] https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/debian-med-commit
