aboutsummaryrefslogtreecommitdiff
path: root/compute_kernel_writer/src/cl
diff options
context:
space:
mode:
authorNikolaj Jensen <nikolaj.jensen@arm.com>2023-07-03 09:44:42 +0100
committerNikolaj Jensen <nikolaj.jensen@arm.com>2023-07-07 08:51:11 +0000
commitacea4071a7f457bab696dc3c895ba47d60345541 (patch)
tree66a5f659f995ea110bcb8e217dc6a94e1f7ac47d /compute_kernel_writer/src/cl
parente86f992d26a79cad76244c4444d113e45afa9b88 (diff)
downloadComputeLibrary-acea4071a7f457bab696dc3c895ba47d60345541.tar.gz
Fix code formatting in CKW
Signed-off-by: Nikolaj Jensen <nikolaj.jensen@arm.com> Change-Id: I8064b345c1efd243f8bded12ed5d561afe7c339a Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/9854 Benchmark: Arm Jenkins <bsgcomp@arm.com> Tested-by: Arm Jenkins <bsgcomp@arm.com> Reviewed-by: Jakub Sujak <jakub.sujak@arm.com> Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'compute_kernel_writer/src/cl')
-rw-r--r--compute_kernel_writer/src/cl/CLConstantTile.cpp2
-rw-r--r--compute_kernel_writer/src/cl/CLConstantTile.h6
-rw-r--r--compute_kernel_writer/src/cl/CLTile.cpp5
-rw-r--r--compute_kernel_writer/src/cl/CLTile.h6
-rw-r--r--compute_kernel_writer/src/cl/ICLTile.cpp2
5 files changed, 14 insertions, 7 deletions
diff --git a/compute_kernel_writer/src/cl/CLConstantTile.cpp b/compute_kernel_writer/src/cl/CLConstantTile.cpp
index 1477a683e6..e2acffb99b 100644
--- a/compute_kernel_writer/src/cl/CLConstantTile.cpp
+++ b/compute_kernel_writer/src/cl/CLConstantTile.cpp
@@ -25,8 +25,8 @@
#include "ckw/TileInfo.h"
#include "src/Helpers.h"
-#include "src/cl/CLHelpers.h"
#include "src/cl/CLConstantTile.h"
+#include "src/cl/CLHelpers.h"
namespace ckw
{
diff --git a/compute_kernel_writer/src/cl/CLConstantTile.h b/compute_kernel_writer/src/cl/CLConstantTile.h
index ebd0f04659..c8318487e6 100644
--- a/compute_kernel_writer/src/cl/CLConstantTile.h
+++ b/compute_kernel_writer/src/cl/CLConstantTile.h
@@ -48,13 +48,17 @@ public:
// Inherited method overridden
TileVariable scalar(int32_t row, int32_t col) const override;
+
TileVariable vector(int32_t row) const override;
+
TileVariable vector(int32_t row, int32_t col_start, int32_t width) const override;
+
std::vector<TileVariable> all() const override;
+
bool is_assignable() const override;
private:
- TileContainer _vals {};
+ TileContainer _vals{};
};
} // namespace ckw
diff --git a/compute_kernel_writer/src/cl/CLTile.cpp b/compute_kernel_writer/src/cl/CLTile.cpp
index bc544ecedf..cb0b22a23b 100644
--- a/compute_kernel_writer/src/cl/CLTile.cpp
+++ b/compute_kernel_writer/src/cl/CLTile.cpp
@@ -68,7 +68,7 @@ TileVariable CLTile::vector(int32_t row) const
row = clamp(row, static_cast<int32_t>(0), _info.height() - 1);
TileVariable t;
- t.str = create_var_name(row);
+ t.str = create_var_name(row);
t.desc.dt = _info.data_type();
t.desc.len = _info.width();
return t;
@@ -104,7 +104,7 @@ std::vector<TileVariable> CLTile::all() const
for(int32_t y = 0; y < _info.height(); ++y)
{
TileVariable t;
- t.str = create_var_name(y);
+ t.str = create_var_name(y);
t.desc.dt = _info.data_type();
t.desc.len = _info.width();
vars.push_back(t);
@@ -125,7 +125,6 @@ std::string CLTile::create_var_name(int32_t row) const
if(_info.height() == 1)
{
return var_name;
-
}
else
{
diff --git a/compute_kernel_writer/src/cl/CLTile.h b/compute_kernel_writer/src/cl/CLTile.h
index 285f0b6e58..039bd5613f 100644
--- a/compute_kernel_writer/src/cl/CLTile.h
+++ b/compute_kernel_writer/src/cl/CLTile.h
@@ -44,13 +44,17 @@ public:
* @param[in] name Tile name
* @param[in] info Tile info
*/
- CLTile(const std::string& name, const TileInfo &info);
+ CLTile(const std::string &name, const TileInfo &info);
// Inherited method overridden
TileVariable scalar(int32_t row, int32_t col) const override;
+
TileVariable vector(int32_t row) const override;
+
TileVariable vector(int32_t row, int32_t col_start, int32_t width) const override;
+
std::vector<TileVariable> all() const override;
+
bool is_assignable() const override;
private:
diff --git a/compute_kernel_writer/src/cl/ICLTile.cpp b/compute_kernel_writer/src/cl/ICLTile.cpp
index f9c8827ef4..38418b5c2a 100644
--- a/compute_kernel_writer/src/cl/ICLTile.cpp
+++ b/compute_kernel_writer/src/cl/ICLTile.cpp
@@ -33,7 +33,7 @@ namespace ckw
{
std::vector<int32_t> ICLTile::supported_vector_lengths() const
{
- return std::vector<int32_t> {1, 2, 3, 4, 8, 16};
+ return std::vector<int32_t>{ 1, 2, 3, 4, 8, 16 };
}
void ICLTile::validate_tile_info(const TileInfo &info) const