aboutsummaryrefslogtreecommitdiff
path: root/compute_kernel_writer/validation/Validation.cpp
diff options
context:
space:
mode:
authorGian Marco Iodice <gianmarco.iodice@arm.com>2023-07-07 11:25:57 +0100
committerViet-Hoa Do <viet-hoa.do@arm.com>2023-07-20 08:48:15 +0000
commitebfdb5a1ea73c2269eec5af492970c2174ab7d0f (patch)
tree5c60d083100118f0a40e629dfa69b7a7373dd7fd /compute_kernel_writer/validation/Validation.cpp
parent29dc9fc1d3d6e90746ba1173e3318b774dcf7bed (diff)
downloadComputeLibrary-ebfdb5a1ea73c2269eec5af492970c2174ab7d0f.tar.gz
Integrate CLTensorArgument
- Add CLTensorArgument to query the components and storages as OpenCL variables (or by values when possible) - Add caching mechanism in CLTensorArgument to keep track of the components and storages used - Add unit tests Resolves COMPMID-5787 Signed-off-by: Gian Marco Iodice <gianmarco.iodice@arm.com> Signed-off-by: Viet-Hoa Do <viet-hoa.do@arm.com> Change-Id: Ib39e1f77b097e5b907a296fe6b0d41bb4bcd4ffc Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/9908 Comments-Addressed: Arm Jenkins <bsgcomp@arm.com> Benchmark: Arm Jenkins <bsgcomp@arm.com> Tested-by: Arm Jenkins <bsgcomp@arm.com> Reviewed-by: Gunes Bayir <gunes.bayir@arm.com> Reviewed-by: Jakub Sujak <jakub.sujak@arm.com>
Diffstat (limited to 'compute_kernel_writer/validation/Validation.cpp')
-rw-r--r--compute_kernel_writer/validation/Validation.cpp21
1 files changed, 18 insertions, 3 deletions
diff --git a/compute_kernel_writer/validation/Validation.cpp b/compute_kernel_writer/validation/Validation.cpp
index e4884fa4aa..5d53a16eff 100644
--- a/compute_kernel_writer/validation/Validation.cpp
+++ b/compute_kernel_writer/validation/Validation.cpp
@@ -22,12 +22,13 @@
* SOFTWARE.
*/
+#include "tests/CLConstantTileTest.hpp"
#include "tests/CLKernelWriterCommentTest.h"
#include "tests/CLKernelWriterDeclareTileTest.h"
-#include "tests/CLConstantTileTest.hpp"
+#include "tests/CLTensorArgumentTest.h"
#include "tests/CLTileTest.hpp"
-#include "tests/TensorBitMaskTest.hpp"
-#include "tests/UtilsTest.hpp"
+#include "tests/TensorBitMaskTest.h"
+#include "tests/UtilsTest.h"
#include <memory>
#include <vector>
@@ -65,6 +66,13 @@ int32_t main()
const auto test15 = std::make_unique<CLKernelWriterCommentTest>();
#endif /* COMPUTE_KERNEL_WRITER_DEBUG_ENABLED */
const auto test16 = std::make_unique<CLKernelWriterDeclareTileTest>();
+ const auto test17 = std::make_unique<CLTensorArgumentComponentNamesTest>();
+ const auto test18 = std::make_unique<CLTensorArgumentStorageNamesTest>();
+ const auto test19 = std::make_unique<CLTensorArgumentComponentValuesTest>();
+ const auto test20 = std::make_unique<CLTensorArgumentComponentsUsedPassByValueFalseTest>();
+ const auto test21 = std::make_unique<CLTensorArgumentComponentsUsedPassByValueTrueTest>();
+ const auto test22 = std::make_unique<CLTensorArgumentStoragesUsedTest>();
+ const auto test23 = std::make_unique<CLTensorArgumentComponentsUsedPassByValueTrueDynamicDimTrueTest>();
tests.push_back(test3.get());
tests.push_back(test4.get());
@@ -82,6 +90,13 @@ int32_t main()
tests.push_back(test15.get());
#endif /* COMPUTE_KERNEL_WRITER_DEBUG_ENABLED */
tests.push_back(test16.get());
+ tests.push_back(test17.get());
+ tests.push_back(test18.get());
+ tests.push_back(test19.get());
+ tests.push_back(test20.get());
+ tests.push_back(test21.get());
+ tests.push_back(test22.get());
+ tests.push_back(test23.get());
#endif /* COMPUTE_KERNEL_WRITER_OPENCL_ENABLED */
bool all_test_passed = true;