aboutsummaryrefslogtreecommitdiff
path: root/tests/validation/fixtures/ArithmeticOperationsFixture.h
diff options
context:
space:
mode:
authorGunes Bayir <gunes.bayir@arm.com>2024-07-03 23:14:58 +0100
committerGunes Bayir <gunes.bayir@arm.com>2024-07-04 13:51:49 +0000
commit3bcc3c6337fe321e130a686a269a34162f42752b (patch)
tree55818fb6115c801ff5f59023f4a8b9e1d22bf04f /tests/validation/fixtures/ArithmeticOperationsFixture.h
parent347aaa7c0c2f87b3fba48ee3ea73426d41217cb3 (diff)
downloadComputeLibrary-3bcc3c6337fe321e130a686a269a34162f42752b.tar.gz
test: Enable Fp16 tests in Multi-ISA build for most ops in [A-C] range
Partially Resolves: COMPMID-7185 Change-Id: If1219e7c2d678da3950a68917c5a8fbfbb2ef5ae Signed-off-by: Gunes Bayir <gunes.bayir@arm.com> Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/11821 Benchmark: Arm Jenkins <bsgcomp@arm.com> Tested-by: Arm Jenkins <bsgcomp@arm.com> Reviewed-by: Pablo Marquez Tello <pablo.tello@arm.com> Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'tests/validation/fixtures/ArithmeticOperationsFixture.h')
-rw-r--r--tests/validation/fixtures/ArithmeticOperationsFixture.h14
1 files changed, 10 insertions, 4 deletions
diff --git a/tests/validation/fixtures/ArithmeticOperationsFixture.h b/tests/validation/fixtures/ArithmeticOperationsFixture.h
index 0785af1151..112d908a81 100644
--- a/tests/validation/fixtures/ArithmeticOperationsFixture.h
+++ b/tests/validation/fixtures/ArithmeticOperationsFixture.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2017-2021, 2023 Arm Limited.
+ * Copyright (c) 2017-2021, 2023-2024 Arm Limited.
*
* SPDX-License-Identifier: MIT
*
@@ -21,8 +21,8 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
-#ifndef ARM_COMPUTE_TEST_ARITHMETIC_OPERATIONS_FIXTURE
-#define ARM_COMPUTE_TEST_ARITHMETIC_OPERATIONS_FIXTURE
+#ifndef ACL_TESTS_VALIDATION_FIXTURES_ARITHMETICOPERATIONSFIXTURE_H
+#define ACL_TESTS_VALIDATION_FIXTURES_ARITHMETICOPERATIONSFIXTURE_H
#include "arm_compute/core/TensorShape.h"
#include "arm_compute/core/Types.h"
@@ -48,6 +48,12 @@ public:
void setup(reference::ArithmeticOperation op, const TensorShape &shape0, const TensorShape &shape1, DataType data_type, ConvertPolicy convert_policy,
QuantizationInfo qinfo0, QuantizationInfo qinfo1, QuantizationInfo qinfo_out, ActivationLayerInfo act_info, bool is_inplace)
{
+ if(std::is_same<TensorType, Tensor>::value && // Cpu
+ data_type == DataType::F16 && !CPUInfo::get().has_fp16())
+ {
+ return;
+ }
+
_op = op;
_act_info = act_info;
_is_inplace = is_inplace;
@@ -284,4 +290,4 @@ public:
} // namespace validation
} // namespace test
} // namespace arm_compute
-#endif /* ARM_COMPUTE_TEST_ARITHMETIC_OPERATIONS_FIXTURE */
+#endif // ACL_TESTS_VALIDATION_FIXTURES_ARITHMETICOPERATIONSFIXTURE_H