aboutsummaryrefslogtreecommitdiff
path: root/compute_kernel_writer/src/cl/CLTile.h
diff options
context:
space:
mode:
authorGian Marco Iodice <gianmarco.iodice@arm.com>2023-06-15 17:40:28 +0100
committerGian Marco Iodice <gianmarco.iodice@arm.com>2023-06-20 14:03:01 +0000
commit68e9c4dfd3c02b3f2e25290f9ad9c3b0bc001d25 (patch)
treea846a18407fb47c9e56c3f617dc4f02793aa413e /compute_kernel_writer/src/cl/CLTile.h
parent59b9ff0adac8b7d7044b4a74c23b710fe1062d10 (diff)
downloadComputeLibrary-68e9c4dfd3c02b3f2e25290f9ad9c3b0bc001d25.tar.gz
Implement CLConstantTile
- Create tile object to store constant variables - Add unit tests for the CLConstantTile - Extend unit test for CLTile Resolves COMPMID-5786 Signed-off-by: Gian Marco Iodice <gianmarco.iodice@arm.com> Change-Id: I351d8b88327e071791b781a04a6ab4990c89c04d Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/9794 Benchmark: Arm Jenkins <bsgcomp@arm.com> Tested-by: Arm Jenkins <bsgcomp@arm.com> Reviewed-by: Viet-Hoa Do <viet-hoa.do@arm.com>
Diffstat (limited to 'compute_kernel_writer/src/cl/CLTile.h')
-rw-r--r--compute_kernel_writer/src/cl/CLTile.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/compute_kernel_writer/src/cl/CLTile.h b/compute_kernel_writer/src/cl/CLTile.h
index 50801675a7..83d49b7030 100644
--- a/compute_kernel_writer/src/cl/CLTile.h
+++ b/compute_kernel_writer/src/cl/CLTile.h
@@ -25,6 +25,7 @@
#define COMPUTE_KERNEL_WRITER_SRC_CL_CLTILE_H
#include "src/ITile.h"
+#include "src/cl/ICLTile.h"
#include <string>
@@ -34,7 +35,7 @@ namespace ckw
class TileInfo;
/** OpenCL specific tile */
-class CLTile : protected IVectorTile
+class CLTile : public ICLTile
{
public:
/** Constructor
@@ -45,16 +46,14 @@ public:
CLTile(const std::string& name, const TileInfo &info);
// Inherited method overridden
- TileVariable scalar(int32_t col, int32_t row) const override;
+ TileVariable scalar(int32_t row, int32_t col) const override;
TileVariable vector(int32_t row) const override;
- TileVariable vector(int32_t col_start, int32_t width, 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;
- std::vector<int32_t> supported_vector_lengths() const override;
bool is_assignable() const override;
private:
std::string create_var_name(int32_t row) const;
- void validate_tile_info(const TileInfo &info) const;
};
} // namespace ckw