mirror of
https://github.com/opencv/opencv.git
synced 2026-07-30 07:43:03 +04:00
define MlasGemmSupported under MLAS_GEMM_ONLY
This commit is contained in:
Vendored
+12
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user