mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 17:09:10 -07:00
dev-libs/ncnn: fix build with avx512
Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
This commit is contained in:
16
dev-libs/ncnn/files/ncnn-20241226-avx512.patch
Normal file
16
dev-libs/ncnn/files/ncnn-20241226-avx512.patch
Normal file
@@ -0,0 +1,16 @@
|
||||
Quick fix for build with -march that enables avx512f.
|
||||
|
||||
This is not where ncnn would include this though, it seems to have
|
||||
tendency to put headers not where they're used by in every files
|
||||
before including this.
|
||||
--- a/src/layer/x86/gemm_int8.h
|
||||
+++ b/src/layer/x86/gemm_int8.h
|
||||
@@ -13,4 +13,8 @@
|
||||
// specific language governing permissions and limitations under the License.
|
||||
|
||||
+#if __AVX512F__
|
||||
+#include "avx512_mathfun.h"
|
||||
+#endif
|
||||
+
|
||||
#if NCNN_RUNTIME_CPU && NCNN_AVX512VNNI && __AVX512F__ && !__AVX512VNNI__
|
||||
void pack_A_tile_int8_avx512vnni(const Mat& A, Mat& AT, int i, int max_ii, int k, int max_kk);
|
||||
@@ -41,6 +41,10 @@ BDEPEND="
|
||||
|
||||
DOCS=( README.md docs/. )
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${P}-avx512.patch
|
||||
)
|
||||
|
||||
pkg_pretend() {
|
||||
[[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user