From 7c75ba0316510ab46bfb56e7b575e72ec1668c46 Mon Sep 17 00:00:00 2001 From: Michalis Spyrou Date: Thu, 18 Oct 2018 16:17:16 +0100 Subject: COMPMID-1661 Nightly - CLReductionOperation FP16 failures Change-Id: If496709958bf29589601eac62a268819736a4fd2 Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/154173 Reviewed-by: Pablo Tello Tested-by: bsgcomp --- tests/validation/CL/ReductionOperation.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'tests/validation/CL/ReductionOperation.cpp') diff --git a/tests/validation/CL/ReductionOperation.cpp b/tests/validation/CL/ReductionOperation.cpp index 794db1a3e5..35cb0c51e1 100644 --- a/tests/validation/CL/ReductionOperation.cpp +++ b/tests/validation/CL/ReductionOperation.cpp @@ -44,8 +44,10 @@ namespace validation namespace { /** Tolerance for float operations */ -RelativeTolerance tolerance_f32(0.00001f); -AbsoluteTolerance tolerance_f16(0.1f); +AbsoluteTolerance tolerance_f32(0.01f); +RelativeTolerance rel_tolerance_f32(0.00001f); +AbsoluteTolerance tolerance_f16(0.5f); +RelativeTolerance rel_tolerance_f16(0.2f); } // namespace TEST_SUITE(CL) @@ -96,7 +98,7 @@ FIXTURE_DATA_TEST_CASE(RunLarge, CLReductionOperationFixture, framework::D combine(combine(combine(datasets::LargeShapes(), framework::dataset::make("DataType", DataType::F16)), framework::dataset::make("Axis", { 0, 1, 2, 3 })), datasets::ReductionOperations())) { // Validate output - validate(CLAccessor(_target), _reference, tolerance_f16); + validate(CLAccessor(_target), _reference, rel_tolerance_f16, 0, tolerance_f16); } TEST_SUITE_END() // F16 TEST_SUITE(FP32) @@ -110,7 +112,7 @@ FIXTURE_DATA_TEST_CASE(RunLarge, CLReductionOperationFixture, framework:: combine(combine(combine(datasets::LargeShapes(), framework::dataset::make("DataType", DataType::F32)), framework::dataset::make("Axis", { 0, 1, 2, 3 })), datasets::ReductionOperations())) { // Validate output - validate(CLAccessor(_target), _reference, tolerance_f32); + validate(CLAccessor(_target), _reference, rel_tolerance_f32, 0, tolerance_f32); } TEST_SUITE_END() // F32 TEST_SUITE_END() // Float -- cgit v1.2.1