Check for unsupported armv7a optimized pooling kernels
authorMichele Di Giorgio <michele.digiorgio@arm.com>
Fri, 22 Jan 2021 11:21:13 +0000 (11:21 +0000)
committerMichele Di Giorgio <michele.digiorgio@arm.com>
Fri, 22 Jan 2021 15:22:34 +0000 (15:22 +0000)
Resolves COMPMID-4136

Change-Id: I3c1f9e615cb2d2c48464ac5b7dbf0a26dc435889
Signed-off-by: Michele Di Giorgio <michele.digiorgio@arm.com>
Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/4906
Reviewed-by: Giorgio Arena <giorgio.arena@arm.com>
Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
Tested-by: Arm Jenkins <bsgcomp@arm.com>
src/core/NEON/kernels/assembly/NEPoolingAssemblyWrapperKernel.cpp

index a73200e6f660e751b4ffad55b4de87534df5f9c5..7e58eaf44afb00e61619c7db460e4796ba22b8ed 100644 (file)
@@ -87,6 +87,9 @@ Status NEPoolingAssemblyWrapperKernel::validate(const ITensorInfo *input, const
 {
     ARM_COMPUTE_RETURN_ERROR_ON_NULLPTR(input, output);
 
+#ifndef __aarch64__
+    ARM_COMPUTE_RETURN_ERROR_MSG("32-bit is not supported by assembly kernels");
+#endif /* __aarch64__ */
     ARM_COMPUTE_RETURN_ERROR_ON_CPU_F16_UNSUPPORTED(input);
     ARM_COMPUTE_RETURN_ERROR_ON_DATA_TYPE_CHANNEL_NOT_IN(input, 1, DataType::QASYMM8, DataType::QASYMM8_SIGNED, DataType::F16, DataType::F32);
     ARM_COMPUTE_RETURN_ERROR_ON_MSG((input->data_layout() != DataLayout::NHWC) || (info.data_layout != DataLayout::NHWC), "Only NHWC is supported by assembly kernels");