aboutsummaryrefslogtreecommitdiff
path: root/compute_kernel_writer/validation/Validation.cpp
diff options
context:
space:
mode:
authorViet-Hoa Do <viet-hoa.do@arm.com>2023-07-31 17:13:34 +0100
committerViet-Hoa Do <viet-hoa.do@arm.com>2023-08-22 08:42:23 +0000
commite1c3b466960d5e3fd5a54871287f5eb6102bfb8c (patch)
treeca7b46273f564cd96bbb6832fbcd743ce4642301 /compute_kernel_writer/validation/Validation.cpp
parent47a396e3aae96f2dcad44f4e0d6cb6b87b368395 (diff)
downloadComputeLibrary-e1c3b466960d5e3fd5a54871287f5eb6102bfb8c.tar.gz
Add CKW writing methods for CL unary ops
* Add writing methods for: - Assignment. - Cast. - Unary expression. * Add corresponding tests. Partially resolves: COMPMID-6388. Signed-off-by: Viet-Hoa Do <viet-hoa.do@arm.com> Change-Id: Ia654173e2e1ee9cddb7819980251e0591934439f Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/10155 Tested-by: Arm Jenkins <bsgcomp@arm.com> Reviewed-by: Gunes Bayir <gunes.bayir@arm.com> Reviewed-by: Jakub Sujak <jakub.sujak@arm.com> Comments-Addressed: Arm Jenkins <bsgcomp@arm.com> Benchmark: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'compute_kernel_writer/validation/Validation.cpp')
-rw-r--r--compute_kernel_writer/validation/Validation.cpp15
1 files changed, 12 insertions, 3 deletions
diff --git a/compute_kernel_writer/validation/Validation.cpp b/compute_kernel_writer/validation/Validation.cpp
index 3755986cf4..c55c7c0c07 100644
--- a/compute_kernel_writer/validation/Validation.cpp
+++ b/compute_kernel_writer/validation/Validation.cpp
@@ -23,14 +23,17 @@
*/
#include "validation/tests/CLConstantTileTest.hpp"
+#include "validation/tests/CLKernelWriterAssignTest.h"
+#include "validation/tests/CLKernelWriterCastTest.h"
#include "validation/tests/CLKernelWriterCommentTest.h"
+#include "validation/tests/CLKernelWriterDeclareTensorTest.h"
#include "validation/tests/CLKernelWriterDeclareTileTest.h"
+#include "validation/tests/CLKernelWriterOpLoadStoreTest.h"
+#include "validation/tests/CLKernelWriterUnaryExpressionTest.h"
#include "validation/tests/CLTensorArgumentTest.h"
#include "validation/tests/CLTileTest.hpp"
#include "validation/tests/TensorBitMaskTest.h"
#include "validation/tests/UtilsTest.h"
-#include "validation/tests/CLKernelWriterDeclareTensorTest.h"
-#include "validation/tests/CLKernelWriterOpLoadStoreTest.h"
#include <memory>
#include <vector>
@@ -77,6 +80,9 @@ int32_t main()
const auto test23 = std::make_unique<CLTensorArgumentComponentsUsedPassByValueTrueDynamicDimTrueTest>();
const auto test24 = std::make_unique<CLKernelWriterDeclareTensorTest>();
const auto test25 = std::make_unique<CLKernelWriterOpLoadStoreTest>();
+ const auto test26 = std::make_unique<CLKernelWriterAssignTest>();
+ const auto test27 = std::make_unique<CLKernelWriterCastTest>();
+ const auto test28 = std::make_unique<CLKernelWriterUnaryExpressionTest>();
tests.push_back(test3.get());
tests.push_back(test4.get());
@@ -102,7 +108,10 @@ int32_t main()
tests.push_back(test22.get());
tests.push_back(test23.get());
tests.push_back(test24.get());
- tests.push_back(test25.get());
+ CKW_UNUSED(test25); // CLKernelWriterOpLoadStoreTest test needs further changes.
+ tests.push_back(test26.get());
+ tests.push_back(test27.get());
+ tests.push_back(test28.get());
#endif /* COMPUTE_KERNEL_WRITER_OPENCL_ENABLED */
bool all_test_passed = true;