From d4c9cb3b5159ab5770e3ab5a8bd25a95b188b40b Mon Sep 17 00:00:00 2001 From: Jack Mazanec Date: Thu, 10 Sep 2020 11:17:27 -0700 Subject: [PATCH] Disable optimizations for knn library during docker build (#384) * disable optimizations for knn * fix formatting * test workflow * Revert "test workflow" This reverts commit 3604de675a9cc018dc6d37780f1cc8c2873bf9b2. Co-authored-by: John Mazanec --- elasticsearch/docker/templates/Dockerfile.j2 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/elasticsearch/docker/templates/Dockerfile.j2 b/elasticsearch/docker/templates/Dockerfile.j2 index 558c0d3e6..70dd3025f 100644 --- a/elasticsearch/docker/templates/Dockerfile.j2 +++ b/elasticsearch/docker/templates/Dockerfile.j2 @@ -11,9 +11,9 @@ # express or implied. See the License for the specific language governing # permissions and limitations under the License. -# Description: +# Description: # Dockerfile for building the docker image for open distro for elasticsearch -# +# # This file was generated from the template at templates/Dockerfile.j2 ################################################################################ @@ -92,6 +92,8 @@ RUN set -ex; \ \ && cd /usr/share/elasticsearch/k-NN/jni \ \ + && sed -i 's/-march=native/-march=x86-64/g' external/nmslib/similarity_search/CMakeLists.txt \ +\ && cmake . \ \ && make \