diff options
Diffstat (limited to 'src/dynamic_fusion/sketch/gpu/components/cl/ClComponentElementwiseBinary.cpp')
-rw-r--r-- | src/dynamic_fusion/sketch/gpu/components/cl/ClComponentElementwiseBinary.cpp | 27 |
1 files changed, 20 insertions, 7 deletions
diff --git a/src/dynamic_fusion/sketch/gpu/components/cl/ClComponentElementwiseBinary.cpp b/src/dynamic_fusion/sketch/gpu/components/cl/ClComponentElementwiseBinary.cpp index 52739e23c0..88d729170c 100644 --- a/src/dynamic_fusion/sketch/gpu/components/cl/ClComponentElementwiseBinary.cpp +++ b/src/dynamic_fusion/sketch/gpu/components/cl/ClComponentElementwiseBinary.cpp @@ -25,8 +25,11 @@ #include "arm_compute/core/Validate.h" #include "src/core/CL/CLValidate.h" -#include "src/dynamic_fusion/sketch/gpu/ckw_driver/components/GpuCkwElementwiseBinary.h" +#ifndef ACL_INTERNAL_TEST_CKW_IN_DF #include "src/dynamic_fusion/sketch/gpu/template_writer/cl/ClTemplateElementwiseBinary.h" +#else //ACL_INTERNAL_TEST_CKW_IN_DF +#include "src/dynamic_fusion/sketch/gpu/ckw_driver/components/GpuCkwElementwiseBinary.h" +#endif //ACL_INTERNAL_TEST_CKW_IN_DF namespace arm_compute { @@ -106,28 +109,38 @@ Status ClComponentElementwiseBinary::validate(const ArgumentPack<ITensorInfo> &t return Status{}; } +ClComponentElementwiseBinary::~ClComponentElementwiseBinary() +{ +} ClComponentElementwiseBinary::ClComponentElementwiseBinary( ComponentId id, const Properties &properties, const ArgumentPack<ITensorInfo> &tensors, const Attributes &attributes) : IGpuKernelComponent{ id, properties, tensors }, - _component_writer{ std::make_unique<ClTemplateElementwiseBinary>(id, tensors, attributes) }, - _ckw_driver{ std::make_unique<GpuCkwElementwiseBinary>(id, tensors, attributes) } +#ifndef ACL_INTERNAL_TEST_CKW_IN_DF + _component_writer { + std::make_unique<ClTemplateElementwiseBinary>(id, tensors, attributes) } -ClComponentElementwiseBinary::~ClComponentElementwiseBinary() +#else //ACL_INTERNAL_TEST_CKW_IN_DF + _component_writer { + std::make_unique<GpuCkwElementwiseBinary>(id, tensors, attributes) } -const IGpuTemplateComponentWriter *ClComponentElementwiseBinary::template_writer() const +#endif //ACL_INTERNAL_TEST_CKW_IN_DF { - return _component_writer.get(); } +#ifndef ACL_INTERNAL_TEST_CKW_IN_DF +const IGpuTemplateComponentWriter *ClComponentElementwiseBinary::template_writer() const +#else //ACL_INTERNAL_TEST_CKW_IN_DF const IGpuCkwComponentDriver *ClComponentElementwiseBinary::ckw_component_driver() const +#endif //ACL_INTERNAL_TEST_CKW_IN_DF { - return _ckw_driver.get(); + return _component_writer.get(); } + } // namespace dynamic_fusion } // namespace experimental } // namespace arm_compute |