-
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Implemented AVX-512 optimized minimum and maximum search functions. * Implemented AVX-512 optimized direct convolution function. * Updated build scripts. * Updated module versions in dependencies.
- Loading branch information
Showing
27 changed files
with
1,373 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/* | ||
* Copyright (C) 2024 Linux Studio Plugins Project <https://lsp-plug.in/> | ||
* (C) 2024 Vladimir Sadovnikov <[email protected]> | ||
* | ||
* This file is part of lsp-dsp-lib | ||
* Created on: 29 июл. 2024 г. | ||
* | ||
* lsp-dsp-lib is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU Lesser General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* any later version. | ||
* | ||
* lsp-dsp-lib is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU Lesser General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Lesser General Public License | ||
* along with lsp-dsp-lib. If not, see <https://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
#ifndef PRIVATE_DSP_ARCH_X86_AVX512_SEARCH_H_ | ||
#define PRIVATE_DSP_ARCH_X86_AVX512_SEARCH_H_ | ||
|
||
#include <lsp-plug.in/dsp/common/types.h> | ||
|
||
#include <private/dsp/arch/x86/avx512/search/minmax.h> | ||
#include <private/dsp/arch/x86/avx512/search/iminmax.h> | ||
|
||
#endif /* PRIVATE_DSP_ARCH_X86_AVX512_SEARCH_H_ */ |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
# | ||
# Copyright (C) 2024 Linux Studio Plugins Project <https://lsp-plug.in/> | ||
# (C) 2024 Vladimir Sadovnikov <[email protected]> | ||
# Copyright (C) 2020 Linux Studio Plugins Project <https://lsp-plug.in/> | ||
# (C) 2020 Vladimir Sadovnikov <[email protected]> | ||
# | ||
# This file is part of lsp-dsp-lib | ||
# This file is part of lsp-plugins | ||
# | ||
# lsp-dsp-lib is free software: you can redistribute it and/or modify | ||
# lsp-plugins is free software: you can redistribute it and/or modify | ||
# it under the terms of the GNU Lesser General Public License as published by | ||
# the Free Software Foundation, either version 3 of the License, or | ||
# any later version. | ||
# | ||
# lsp-dsp-lib is distributed in the hope that it will be useful, | ||
# lsp-plugins is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU Lesser General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU Lesser General Public License | ||
# along with lsp-dsp-lib. If not, see <https://www.gnu.org/licenses/>. | ||
# along with lsp-plugins. If not, see <https://www.gnu.org/licenses/>. | ||
# | ||
|
||
# Detect operating system | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,13 +19,13 @@ | |
# | ||
|
||
# Variables that describe dependencies | ||
LSP_COMMON_LIB_VERSION := 1.0.36 | ||
LSP_COMMON_LIB_VERSION := 1.0.37 | ||
LSP_COMMON_LIB_NAME := lsp-common-lib | ||
LSP_COMMON_LIB_TYPE := src | ||
LSP_COMMON_LIB_URL_RO := https://github.com/lsp-plugins/$(LSP_COMMON_LIB_NAME).git | ||
LSP_COMMON_LIB_URL_RW := [email protected]:lsp-plugins/$(LSP_COMMON_LIB_NAME).git | ||
|
||
LSP_TEST_FW_VERSION := 1.0.25 | ||
LSP_TEST_FW_VERSION := 1.0.26 | ||
LSP_TEST_FW_NAME := lsp-test-fw | ||
LSP_TEST_FW_TYPE := src | ||
LSP_TEST_FW_URL_RO := https://github.com/lsp-plugins/$(LSP_TEST_FW_NAME).git | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/* | ||
* Copyright (C) 2020 Linux Studio Plugins Project <https://lsp-plug.in/> | ||
* (C) 2020 Vladimir Sadovnikov <[email protected]> | ||
* Copyright (C) 2024 Linux Studio Plugins Project <https://lsp-plug.in/> | ||
* (C) 2024 Vladimir Sadovnikov <[email protected]> | ||
* | ||
* This file is part of lsp-dsp-lib | ||
* Created on: 31 мар. 2020 г. | ||
|
@@ -46,6 +46,11 @@ namespace lsp | |
void convolve(float *dst, const float *src, const float *conv, size_t length, size_t count); | ||
void convolve_fma3(float *dst, const float *src, const float *conv, size_t length, size_t count); | ||
} | ||
|
||
namespace avx512 | ||
{ | ||
void convolve(float *dst, const float *src, const float *conv, size_t length, size_t count); | ||
} | ||
) | ||
|
||
IF_ARCH_ARM( | ||
|
@@ -133,6 +138,7 @@ PTEST_BEGIN("dsp", convolve, 5, 1000) | |
IF_ARCH_X86(CALL((1 << j), (1 << i), sse::convolve)); | ||
IF_ARCH_X86(CALL((1 << j), (1 << i), avx::convolve)); | ||
IF_ARCH_X86(CALL((1 << j), (1 << i), avx::convolve_fma3)); | ||
IF_ARCH_X86(CALL((1 << j), (1 << i), avx512::convolve)); | ||
IF_ARCH_ARM(CALL((1 << j), (1 << i), neon_d32::convolve)); | ||
IF_ARCH_AARCH64(CALL((1 << j), (1 << i), asimd::convolve)); | ||
|
||
|
@@ -145,6 +151,7 @@ PTEST_BEGIN("dsp", convolve, 5, 1000) | |
IF_ARCH_X86(CALL((1 << MAX_RANK) - 1, (1 << MAX_RANK) - 1, sse::convolve)); | ||
IF_ARCH_X86(CALL((1 << MAX_RANK) - 1, (1 << MAX_RANK) - 1, avx::convolve)); | ||
IF_ARCH_X86(CALL((1 << MAX_RANK) - 1, (1 << MAX_RANK) - 1, avx::convolve_fma3)); | ||
IF_ARCH_X86(CALL((1 << MAX_RANK) - 1, (1 << MAX_RANK) - 1, avx512::convolve)); | ||
IF_ARCH_ARM(CALL((1 << MAX_RANK) - 1, (1 << MAX_RANK) - 1, neon_d32::convolve)); | ||
IF_ARCH_AARCH64(CALL((1 << MAX_RANK) - 1, (1 << MAX_RANK) - 1, asimd::convolve)); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/* | ||
* Copyright (C) 2020 Linux Studio Plugins Project <https://lsp-plug.in/> | ||
* (C) 2020 Vladimir Sadovnikov <[email protected]> | ||
* Copyright (C) 2024 Linux Studio Plugins Project <https://lsp-plug.in/> | ||
* (C) 2024 Vladimir Sadovnikov <[email protected]> | ||
* | ||
* This file is part of lsp-dsp-lib | ||
* Created on: 31 мар. 2020 г. | ||
|
@@ -62,6 +62,17 @@ namespace lsp | |
float abs_max(const float *src, size_t count); | ||
void abs_minmax(const float *src, size_t count, float *min, float *max); | ||
} | ||
|
||
namespace avx512 | ||
{ | ||
float min(const float *src, size_t count); | ||
float max(const float *src, size_t count); | ||
void minmax(const float *src, size_t count, float *min, float *max); | ||
|
||
float abs_min(const float *src, size_t count); | ||
float abs_max(const float *src, size_t count); | ||
void abs_minmax(const float *src, size_t count, float *min, float *max); | ||
} | ||
) | ||
|
||
IF_ARCH_ARM( | ||
|
@@ -147,12 +158,14 @@ PTEST_BEGIN("dsp.search", minmax, 5, 1000) | |
CALL(generic::min); | ||
IF_ARCH_X86(CALL(sse::min)); | ||
IF_ARCH_X86(CALL(avx::min)); | ||
IF_ARCH_X86(CALL(avx512::min)); | ||
IF_ARCH_ARM(CALL(neon_d32::min)); | ||
IF_ARCH_AARCH64(CALL(asimd::min)); | ||
|
||
CALL(generic::abs_min); | ||
IF_ARCH_X86(CALL(sse::abs_min)); | ||
IF_ARCH_X86(CALL(avx::abs_min)); | ||
IF_ARCH_X86(CALL(avx512::abs_min)); | ||
IF_ARCH_ARM(CALL(neon_d32::abs_min)); | ||
IF_ARCH_AARCH64(CALL(asimd::abs_min)); | ||
PTEST_SEPARATOR; | ||
|
@@ -161,12 +174,14 @@ PTEST_BEGIN("dsp.search", minmax, 5, 1000) | |
CALL(generic::max); | ||
IF_ARCH_X86(CALL(sse::max)); | ||
IF_ARCH_X86(CALL(avx::max)); | ||
IF_ARCH_X86(CALL(avx512::max)); | ||
IF_ARCH_ARM(CALL(neon_d32::max)); | ||
IF_ARCH_AARCH64(CALL(asimd::max)); | ||
|
||
CALL(generic::abs_max); | ||
IF_ARCH_X86(CALL(sse::abs_max)); | ||
IF_ARCH_X86(CALL(avx::abs_max)); | ||
IF_ARCH_X86(CALL(avx512::abs_max)); | ||
IF_ARCH_ARM(CALL(neon_d32::abs_max)); | ||
IF_ARCH_AARCH64(CALL(asimd::abs_max)); | ||
PTEST_SEPARATOR; | ||
|
@@ -175,12 +190,14 @@ PTEST_BEGIN("dsp.search", minmax, 5, 1000) | |
CALL(generic::minmax); | ||
IF_ARCH_X86(CALL(sse::minmax)); | ||
IF_ARCH_X86(CALL(avx::minmax)); | ||
IF_ARCH_X86(CALL(avx512::minmax)); | ||
IF_ARCH_ARM(CALL(neon_d32::minmax)); | ||
IF_ARCH_AARCH64(CALL(asimd::minmax)); | ||
|
||
CALL(generic::abs_minmax); | ||
IF_ARCH_X86(CALL(sse::abs_minmax)); | ||
IF_ARCH_X86(CALL(avx::abs_minmax)); | ||
IF_ARCH_X86(CALL(avx512::abs_minmax)); | ||
IF_ARCH_ARM(CALL(neon_d32::abs_minmax)); | ||
IF_ARCH_AARCH64(CALL(asimd::abs_minmax)); | ||
PTEST_SEPARATOR2; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.