From cc3e53cccb21a8ae93d641b58b7e9b86a61d0fc5 Mon Sep 17 00:00:00 2001 From: Sheri Zhang Date: Mon, 16 Nov 2020 21:17:28 +0000 Subject: COMPMID-3972: ExportToCLImage test failure Signed-off-by: Sheri Zhang Change-Id: I09d203c8c29935cbd08effc50de7a383d7a99bf3 Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/4437 Comments-Addressed: Arm Jenkins Tested-by: Arm Jenkins Reviewed-by: Pablo Marquez Tello --- tests/validation/CL/GEMMMatrixMultiplyReshaped.cpp | 32 +++++++++++----------- 1 file changed, 16 insertions(+), 16 deletions(-) (limited to 'tests/validation/CL/GEMMMatrixMultiplyReshaped.cpp') diff --git a/tests/validation/CL/GEMMMatrixMultiplyReshaped.cpp b/tests/validation/CL/GEMMMatrixMultiplyReshaped.cpp index 95979b3131..52afb716e4 100644 --- a/tests/validation/CL/GEMMMatrixMultiplyReshaped.cpp +++ b/tests/validation/CL/GEMMMatrixMultiplyReshaped.cpp @@ -592,8 +592,8 @@ FIXTURE_DATA_TEST_CASE(RunSmall, CLGEMMMatrixMultiplyReshapedFixture, fra lhs_transpose_values), act_values)) { - // Validate output only if the target platform supports the OpenCL cl_khr_image2d_from_buffer extension - if(image2d_from_buffer_supported(CLKernelLibrary::get().get_device())) + // Validate output only if validate() is successful + if(validate_result) { validate(CLAccessor(_target), _reference, rel_tolerance_f32, 0.f, abs_tolerance_f32); } @@ -626,8 +626,8 @@ FIXTURE_DATA_TEST_CASE(RunLarge, CLGEMMMatrixMultiplyReshapedFixture, fra lhs_transpose_values), act_values)) { - // Validate output only if the target platform supports the OpenCL cl_khr_image2d_from_buffer extension - if(image2d_from_buffer_supported(CLKernelLibrary::get().get_device())) + // Validate output only if validate() is successful + if(validate_result) { validate(CLAccessor(_target), _reference, rel_tolerance_f32, 0.f, abs_tolerance_f32); } @@ -659,8 +659,8 @@ FIXTURE_DATA_TEST_CASE(RunSmall3D, CLGEMMMatrixMultiplyReshaped3DFixture, lhs_transpose_values), act_values)) { - // Validate output only if the target platform supports the OpenCL cl_khr_image2d_from_buffer extension - if(image2d_from_buffer_supported(CLKernelLibrary::get().get_device())) + // Validate output only if validate() is successful + if(validate_result) { validate(CLAccessor(_target), _reference, rel_tolerance_f32, 0.f, abs_tolerance_f32); } @@ -692,8 +692,8 @@ FIXTURE_DATA_TEST_CASE(RunLarge3D, CLGEMMMatrixMultiplyReshaped3DFixture, lhs_transpose_values), act_values)) { - // Validate output only if the target platform supports the OpenCL cl_khr_image2d_from_buffer extension - if(image2d_from_buffer_supported(CLKernelLibrary::get().get_device())) + // Validate output only if validate() is successful + if(validate_result) { validate(CLAccessor(_target), _reference, rel_tolerance_f32, 0.f, abs_tolerance_f32); } @@ -963,8 +963,8 @@ FIXTURE_DATA_TEST_CASE(RunSmall, CLGEMMMatrixMultiplyReshapedFixture, fram lhs_transpose_values), act_values)) { - // Validate output only if the target platform supports the OpenCL cl_khr_image2d_from_buffer extension - if(image2d_from_buffer_supported(CLKernelLibrary::get().get_device())) + // Validate output only if validate() is successful + if(validate_result) { validate(CLAccessor(_target), _reference, rel_tolerance_f16, 0.f, abs_tolerance_f16); } @@ -997,8 +997,8 @@ FIXTURE_DATA_TEST_CASE(RunLarge, CLGEMMMatrixMultiplyReshapedFixture, fram lhs_transpose_values), act_values)) { - // Validate output only if the target platform supports the OpenCL cl_khr_image2d_from_buffer extension - if(image2d_from_buffer_supported(CLKernelLibrary::get().get_device())) + // Validate output only if validate() is successful + if(validate_result) { validate(CLAccessor(_target), _reference, rel_tolerance_f16, 0.f, abs_tolerance_f16); } @@ -1030,8 +1030,8 @@ FIXTURE_DATA_TEST_CASE(RunSmall3D, CLGEMMMatrixMultiplyReshaped3DFixture, lhs_transpose_values), act_values)) { - // Validate output only if the target platform supports the OpenCL cl_khr_image2d_from_buffer extension - if(image2d_from_buffer_supported(CLKernelLibrary::get().get_device())) + // Validate output only if validate() is successful + if(validate_result) { validate(CLAccessor(_target), _reference, rel_tolerance_f16, 0.f, abs_tolerance_f16); } @@ -1063,8 +1063,8 @@ FIXTURE_DATA_TEST_CASE(RunLarge3D, CLGEMMMatrixMultiplyReshaped3DFixture, lhs_transpose_values), act_values)) { - // Validate output only if the target platform supports the OpenCL cl_khr_image2d_from_buffer extension - if(image2d_from_buffer_supported(CLKernelLibrary::get().get_device())) + // Validate output only if validate() is successful + if(validate_result) { validate(CLAccessor(_target), _reference, rel_tolerance_f16, 0.f, abs_tolerance_f16); } -- cgit v1.2.1