From 2d0c2f5700434a4b0c3345c71a3a45825a0e6766 Mon Sep 17 00:00:00 2001 From: Viet-Hoa Do Date: Thu, 24 Aug 2023 11:48:19 +0100 Subject: Add CKW flow control writing methods * Structures: if/else/else if, for, return. * Add corresponding tests. Partially resolves: COMPMID-6387 Signed-off-by: Viet-Hoa Do Change-Id: I2912ccaf46f836907f21bb53fa82bcc1f48dd224 Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/10199 Tested-by: Arm Jenkins Reviewed-by: SiCong Li Reviewed-by: Gunes Bayir Comments-Addressed: Arm Jenkins Benchmark: Arm Jenkins --- compute_kernel_writer/validation/Validation.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'compute_kernel_writer/validation/Validation.cpp') diff --git a/compute_kernel_writer/validation/Validation.cpp b/compute_kernel_writer/validation/Validation.cpp index 3d73900c90..6425d25f2b 100644 --- a/compute_kernel_writer/validation/Validation.cpp +++ b/compute_kernel_writer/validation/Validation.cpp @@ -30,7 +30,10 @@ #include "validation/tests/CLKernelWriterDeclareConstantTileTest.h" #include "validation/tests/CLKernelWriterDeclareTensorTest.h" #include "validation/tests/CLKernelWriterDeclareTileTest.h" +#include "validation/tests/CLKernelWriterForTest.h" +#include "validation/tests/CLKernelWriterIfTest.h" #include "validation/tests/CLKernelWriterOpLoadStoreTest.h" +#include "validation/tests/CLKernelWriterReturnTest.h" #include "validation/tests/CLKernelWriterTernaryOpTest.h" #include "validation/tests/CLKernelWriterUnaryExpressionTest.h" #include "validation/tests/CLTensorArgumentTest.h" @@ -89,6 +92,9 @@ int32_t main() const auto test29 = std::make_unique(); const auto test30 = std::make_unique(); const auto test31 = std::make_unique(); + const auto test32 = std::make_unique(); + const auto test33 = std::make_unique(); + const auto test34 = std::make_unique(); tests.push_back(test3.get()); tests.push_back(test4.get()); @@ -121,6 +127,9 @@ int32_t main() tests.push_back(test29.get()); tests.push_back(test30.get()); tests.push_back(test31.get()); + tests.push_back(test32.get()); + tests.push_back(test33.get()); + tests.push_back(test34.get()); #endif /* COMPUTE_KERNEL_WRITER_OPENCL_ENABLED */ bool all_test_passed = true; -- cgit v1.2.1