diff --git a/3rdparty/mlas/lib/platform.cpp b/3rdparty/mlas/lib/platform.cpp index 290288e1b4..eb2220ac04 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;