diff options
author | HÃ¥vard Pettersen <havardpe@gmail.com> | 2017-02-14 12:35:12 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-14 12:35:12 +0100 |
commit | e9d5abed209ac3418fc869664da08d687520e1c5 (patch) | |
tree | 8621c1316524fc6c51904802678e7432a5e28b74 /vespalib | |
parent | 35e47c065c8ce01f8813b1f344994535c5e7fc32 (diff) | |
parent | ac2bcd0e078a2ddd82d6c58df5f37e32581484a9 (diff) |
Merge pull request #1762 from yahoo/balder/use-optimize-dotproduct-for-single-queryterm-dotproduct-fresh
Balder/use optimize dotproduct for single queryterm dotproduct fresh
Diffstat (limited to 'vespalib')
12 files changed, 13 insertions, 24 deletions
diff --git a/vespalib/src/vespa/vespalib/hwaccelrated/avx.cpp b/vespalib/src/vespa/vespalib/hwaccelrated/avx.cpp index ec5064bf647..477add66aa8 100644 --- a/vespalib/src/vespa/vespalib/hwaccelrated/avx.cpp +++ b/vespalib/src/vespa/vespalib/hwaccelrated/avx.cpp @@ -1,7 +1,7 @@ // Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -#include <vespa/vespalib/hwaccelrated/avx.h> -#include <vespa/vespalib/hwaccelrated/avxprivate.hpp> +#include "avx.h" +#include "avxprivate.hpp" namespace vespalib { diff --git a/vespalib/src/vespa/vespalib/hwaccelrated/avx.h b/vespalib/src/vespa/vespalib/hwaccelrated/avx.h index 4b391c163ac..3528d52fa23 100644 --- a/vespalib/src/vespa/vespalib/hwaccelrated/avx.h +++ b/vespalib/src/vespa/vespalib/hwaccelrated/avx.h @@ -2,7 +2,7 @@ #pragma once -#include <vespa/vespalib/hwaccelrated/sse2.h> +#include "sse2.h" namespace vespalib { diff --git a/vespalib/src/vespa/vespalib/hwaccelrated/avx2.cpp b/vespalib/src/vespa/vespalib/hwaccelrated/avx2.cpp index f87738e3a6c..f160dd4f53e 100644 --- a/vespalib/src/vespa/vespalib/hwaccelrated/avx2.cpp +++ b/vespalib/src/vespa/vespalib/hwaccelrated/avx2.cpp @@ -1,7 +1,7 @@ // Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -#include <vespa/vespalib/hwaccelrated/avx2.h> -#include <vespa/vespalib/hwaccelrated/avxprivate.hpp> +#include "avx2.h" +#include "avxprivate.hpp" namespace vespalib { diff --git a/vespalib/src/vespa/vespalib/hwaccelrated/avx2.h b/vespalib/src/vespa/vespalib/hwaccelrated/avx2.h index 56d3a8ac65e..b043a07317e 100644 --- a/vespalib/src/vespa/vespalib/hwaccelrated/avx2.h +++ b/vespalib/src/vespa/vespalib/hwaccelrated/avx2.h @@ -2,7 +2,7 @@ #pragma once -#include <vespa/vespalib/hwaccelrated/avx.h> +#include "avx.h" namespace vespalib { diff --git a/vespalib/src/vespa/vespalib/hwaccelrated/avx512.cpp b/vespalib/src/vespa/vespalib/hwaccelrated/avx512.cpp index 9f7a6dcda3e..714a49aa0ca 100644 --- a/vespalib/src/vespa/vespalib/hwaccelrated/avx512.cpp +++ b/vespalib/src/vespa/vespalib/hwaccelrated/avx512.cpp @@ -1,7 +1,7 @@ // Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -#include <vespa/vespalib/hwaccelrated/avx512.h> -#include <vespa/vespalib/hwaccelrated/avxprivate.hpp> +#include "avx512.h" +#include "avxprivate.hpp" namespace vespalib { diff --git a/vespalib/src/vespa/vespalib/hwaccelrated/avxprivate.hpp b/vespalib/src/vespa/vespalib/hwaccelrated/avxprivate.hpp index 87a043b3428..a04f136f814 100644 --- a/vespalib/src/vespa/vespalib/hwaccelrated/avxprivate.hpp +++ b/vespalib/src/vespa/vespalib/hwaccelrated/avxprivate.hpp @@ -59,7 +59,7 @@ T computeDotProduct(const T * af, const T * bf, size_t sz) } template <typename T, size_t VLEN, size_t VectorsPerChunk=4> -VESPA_DLL_LOCAL static T dotProductSelectAlignment(const T * af, const T * bf, size_t sz); +VESPA_DLL_LOCAL T dotProductSelectAlignment(const T * af, const T * bf, size_t sz); template <typename T, size_t VLEN, size_t VectorsPerChunk> T dotProductSelectAlignment(const T * af, const T * bf, size_t sz) diff --git a/vespalib/src/vespa/vespalib/hwaccelrated/generic.cpp b/vespalib/src/vespa/vespalib/hwaccelrated/generic.cpp index f218e4172f9..a624c057943 100644 --- a/vespalib/src/vespa/vespalib/hwaccelrated/generic.cpp +++ b/vespalib/src/vespa/vespalib/hwaccelrated/generic.cpp @@ -1,8 +1,6 @@ // Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -// Copyright (C) 2003 Fast Search & Transfer ASA -// Copyright (C) 2003 Overture Services Norway AS -#include <vespa/vespalib/hwaccelrated/generic.h> +#include "generic.h" namespace vespalib { diff --git a/vespalib/src/vespa/vespalib/hwaccelrated/generic.h b/vespalib/src/vespa/vespalib/hwaccelrated/generic.h index 0cb21b70ca3..0d6943fa477 100644 --- a/vespalib/src/vespa/vespalib/hwaccelrated/generic.h +++ b/vespalib/src/vespa/vespalib/hwaccelrated/generic.h @@ -4,7 +4,7 @@ #pragma once -#include <vespa/vespalib/hwaccelrated/iaccelrated.h> +#include "iaccelrated.h" namespace vespalib { diff --git a/vespalib/src/vespa/vespalib/hwaccelrated/iaccelrated.cpp b/vespalib/src/vespa/vespalib/hwaccelrated/iaccelrated.cpp index 828d64e7a2e..7741b60ac01 100644 --- a/vespalib/src/vespa/vespalib/hwaccelrated/iaccelrated.cpp +++ b/vespalib/src/vespa/vespalib/hwaccelrated/iaccelrated.cpp @@ -1,6 +1,4 @@ // Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -// Copyright (C) 2003 Fast Search & Transfer ASA -// Copyright (C) 2003 Overture Services Norway AS #include <vespa/vespalib/hwaccelrated/iaccelrated.h> #include <vespa/vespalib/hwaccelrated/generic.h> @@ -8,7 +6,6 @@ #include <vespa/vespalib/hwaccelrated/avx.h> #include <vespa/vespalib/hwaccelrated/avx2.h> #include <vespa/vespalib/hwaccelrated/avx512.h> -#include <assert.h> namespace vespalib { diff --git a/vespalib/src/vespa/vespalib/hwaccelrated/iaccelrated.h b/vespalib/src/vespa/vespalib/hwaccelrated/iaccelrated.h index b8c7794a386..86f21e57f6a 100644 --- a/vespalib/src/vespa/vespalib/hwaccelrated/iaccelrated.h +++ b/vespalib/src/vespa/vespalib/hwaccelrated/iaccelrated.h @@ -1,6 +1,4 @@ // Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -// Copyright (C) 2003 Fast Search & Transfer ASA -// Copyright (C) 2003 Overture Services Norway AS #pragma once diff --git a/vespalib/src/vespa/vespalib/hwaccelrated/sse2.cpp b/vespalib/src/vespa/vespalib/hwaccelrated/sse2.cpp index 11333d62f78..424f6d62f11 100644 --- a/vespalib/src/vespa/vespalib/hwaccelrated/sse2.cpp +++ b/vespalib/src/vespa/vespalib/hwaccelrated/sse2.cpp @@ -1,8 +1,6 @@ // Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -// Copyright (C) 2003 Fast Search & Transfer ASA -// Copyright (C) 2003 Overture Services Norway AS -#include <vespa/vespalib/hwaccelrated/sse2.h> +#include "sse2.h" namespace vespalib { diff --git a/vespalib/src/vespa/vespalib/hwaccelrated/sse2.h b/vespalib/src/vespa/vespalib/hwaccelrated/sse2.h index a7c39581997..abc0f3a27fe 100644 --- a/vespalib/src/vespa/vespalib/hwaccelrated/sse2.h +++ b/vespalib/src/vespa/vespalib/hwaccelrated/sse2.h @@ -1,10 +1,8 @@ // Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -// Copyright (C) 2003 Fast Search & Transfer ASA -// Copyright (C) 2003 Overture Services Norway AS #pragma once -#include <vespa/vespalib/hwaccelrated/generic.h> +#include "generic.h" namespace vespalib { |