aboutsummaryrefslogtreecommitdiff
path: root/compute_kernel_writer/validation/tests/CLTileTest.hpp
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/tests/CLTileTest.hpp
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/tests/CLTileTest.hpp')
-rw-r--r--compute_kernel_writer/validation/tests/CLTileTest.hpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/compute_kernel_writer/validation/tests/CLTileTest.hpp b/compute_kernel_writer/validation/tests/CLTileTest.hpp
index ecfe811267..a95a11ace7 100644
--- a/compute_kernel_writer/validation/tests/CLTileTest.hpp
+++ b/compute_kernel_writer/validation/tests/CLTileTest.hpp
@@ -22,8 +22,8 @@
* SOFTWARE.
*/
-#ifndef COMPUTE_KERNEL_WRITER_TESTS_CLTILETEST_HPP
-#define COMPUTE_KERNEL_WRITER_TESTS_CLTILETEST_HPP
+#ifndef CKW_VALIDATION_TESTS_CLTILETEST_HPP
+#define CKW_VALIDATION_TESTS_CLTILETEST_HPP
#include "common/Common.h"
#include "src/Helpers.h"
@@ -63,7 +63,7 @@ public:
for(int32_t y = 0; y < height; ++y)
{
- const std::string expected_var_name = tile_name + "_" + std::to_string(y);
+ const std::string expected_var_name = tile_name + "__" + std::to_string(y);
const std::string actual_var_name = vars[y].str;
VALIDATE_TEST(actual_var_name.compare(expected_var_name) == 0, all_tests_passed, test_idx++);
}
@@ -172,7 +172,7 @@ public:
const std::string actual_var_name = var.str;
std::string expected_var_name = tile_name;
- expected_var_name += "_" + std::to_string(y_coord);
+ expected_var_name += "__" + std::to_string(y_coord);
expected_var_name += ".s" + dec_to_hex_as_string(x_coord);
VALIDATE_TEST(actual_var_name.compare(expected_var_name) == 0, all_tests_passed, test_idx++);
@@ -238,7 +238,7 @@ public:
const std::string actual_var_name = var.str;
std::string expected_var_name = tile_name;
- expected_var_name += "_" + std::to_string(y_coord);
+ expected_var_name += "__" + std::to_string(y_coord);
if(width != 1)
{
expected_var_name += ".s" + dec_to_hex_as_string(x_coord_clamped);
@@ -310,7 +310,7 @@ public:
std::string expected_var_name = tile_name;
if(height != 1)
{
- expected_var_name += "_" + std::to_string(y_coord_clamped);
+ expected_var_name += "__" + std::to_string(y_coord_clamped);
}
if(width != 1)
@@ -367,7 +367,7 @@ public:
std::string expected_var_name = tile_name;
if(height != 1)
{
- expected_var_name += "_" + std::to_string(row);
+ expected_var_name += "__" + std::to_string(row);
}
VALIDATE_TEST(actual_var_name.compare(expected_var_name) == 0, all_tests_passed, test_idx++);
@@ -423,7 +423,7 @@ public:
std::string expected_var_name = tile_name;
if(height != 1)
{
- expected_var_name += "_" + std::to_string(row);
+ expected_var_name += "__" + std::to_string(row);
}
if(width != 1)
@@ -464,4 +464,4 @@ private:
};
} // namespace ckw
-#endif /* COMPUTE_KERNEL_WRITER_TESTS_CLTILETEST_HPP */
+#endif // CKW_VALIDATION_TESTS_CLTILETEST_HPP