aboutsummaryrefslogtreecommitdiff
path: root/tests/validation/CL/GEMMMatrixMultiplyReshaped.cpp
diff options
context:
space:
mode:
authorSheri Zhang <sheri.zhang@arm.com>2020-11-16 21:17:28 +0000
committerSheri Zhang <sheri.zhang@arm.com>2020-11-18 09:07:18 +0000
commitcc3e53cccb21a8ae93d641b58b7e9b86a61d0fc5 (patch)
tree2ba94eaada6648eff2ceb0069a473e7a5fb40734 /tests/validation/CL/GEMMMatrixMultiplyReshaped.cpp
parent04a0706dddc6ca24cb80e3e0789c6b0f54c48b28 (diff)
downloadComputeLibrary-cc3e53cccb21a8ae93d641b58b7e9b86a61d0fc5.tar.gz
COMPMID-3972: ExportToCLImage test failure
Signed-off-by: Sheri Zhang <sheri.zhang@arm.com> Change-Id: I09d203c8c29935cbd08effc50de7a383d7a99bf3 Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/4437 Comments-Addressed: Arm Jenkins <bsgcomp@arm.com> Tested-by: Arm Jenkins <bsgcomp@arm.com> Reviewed-by: Pablo Marquez Tello <pablo.tello@arm.com>
Diffstat (limited to 'tests/validation/CL/GEMMMatrixMultiplyReshaped.cpp')
-rw-r--r--tests/validation/CL/GEMMMatrixMultiplyReshaped.cpp32
1 files changed, 16 insertions, 16 deletions
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<float>, 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<float>, 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<float>,
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<float>,
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<half>, 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<half>, 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<half>,
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<half>,
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);
}