From 48a063158ad664cdaebb14b5bfd805c5c5034327 Mon Sep 17 00:00:00 2001 From: vrooomy Date: Mon, 22 Jun 2026 18:35:06 +0530 Subject: [PATCH] define MlasGemmSupported under MLAS_GEMM_ONLY --- 3rdparty/mlas/lib/platform.cpp | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/3rdparty/mlas/lib/platform.cpp b/3rdparty/mlas/lib/platform.cpp index 52b5ac234c..f492eace8c 100644 --- a/3rdparty/mlas/lib/platform.cpp +++ b/3rdparty/mlas/lib/platform.cpp @@ -420,6 +420,17 @@ MLAS_PLATFORM::MLAS_PLATFORM(void) // calls MlasSgemmKernelZero / MlasSgemmKernelAdd directly without going // through GetMlasPlatform().GemmFloatKernel. } + +// FP16 HGemm kernels aren't vendored (MLAS_GEMM_ONLY) but compute.cpp references this probe; define it so static links resolve. See opencv/opencv#29342. +bool +MLASCALL +MlasHGemmSupported( + CBLAS_TRANSPOSE /*TransA*/, + CBLAS_TRANSPOSE /*TransB*/ + ) +{ + return false; +} #else // !MLAS_GEMM_ONLY MLAS_PLATFORM::MLAS_PLATFORM( void @@ -881,7 +892,7 @@ Return Value: } else{ this->ErfFP16KernelRoutine = MlasNeonErfFP16Kernel; - this->GeluFP16KernelRoutine = MlasNeonGeluFP16Kernel; + this->GeluFP16KernelRoutine = MlasNeonGeluFP16Kernel; } #else this->ErfFP16KernelRoutine = MlasNeonErfFP16Kernel;