diff options
Diffstat (limited to 'src/dynamic_fusion/sketch/gpu/components/cl/ClComponentStore.cpp')
-rw-r--r-- | src/dynamic_fusion/sketch/gpu/components/cl/ClComponentStore.cpp | 26 |
1 files changed, 20 insertions, 6 deletions
diff --git a/src/dynamic_fusion/sketch/gpu/components/cl/ClComponentStore.cpp b/src/dynamic_fusion/sketch/gpu/components/cl/ClComponentStore.cpp index a3283b1866..12b81c3d56 100644 --- a/src/dynamic_fusion/sketch/gpu/components/cl/ClComponentStore.cpp +++ b/src/dynamic_fusion/sketch/gpu/components/cl/ClComponentStore.cpp @@ -24,8 +24,11 @@ #include "ClComponentStore.h" #include "src/dynamic_fusion/sketch/ArgumentPack.h" -#include "src/dynamic_fusion/sketch/gpu/ckw_driver/components/GpuCkwStore.h" +#ifndef ACL_INTERNAL_TEST_CKW_IN_DF #include "src/dynamic_fusion/sketch/gpu/template_writer/cl/ClTemplateStore.h" +#else //ACL_INTERNAL_TEST_CKW_IN_DF +#include "src/dynamic_fusion/sketch/gpu/ckw_driver/components/GpuCkwStore.h" +#endif //ACL_INTERNAL_TEST_CKW_IN_DF #include <memory> @@ -43,19 +46,30 @@ Status ClComponentStore::validate( return Status{}; } ClComponentStore::ClComponentStore(ComponentId id, const Properties &properties, const ArgumentPack<ITensorInfo> &tensors) - : IGpuKernelComponent{ id, properties, tensors }, _component_writer{ std::make_unique<ClTemplateStore>(id, tensors) }, _ckw_driver{ std::make_unique<GpuCkwStore>(id, tensors) } + : IGpuKernelComponent{ id, properties, tensors }, +#ifndef ACL_INTERNAL_TEST_CKW_IN_DF + _component_writer { + std::make_unique<ClTemplateStore>(id, tensors) } -ClComponentStore::~ClComponentStore() +#else //ACL_INTERNAL_TEST_CKW_IN_DF + _component_writer { + std::make_unique<GpuCkwStore>(id, tensors) } -const IGpuTemplateComponentWriter *ClComponentStore::template_writer() const +#endif //ACL_INTERNAL_TEST_CKW_IN_DF { - return _component_writer.get(); } +ClComponentStore::~ClComponentStore() +{ +} +#ifndef ACL_INTERNAL_TEST_CKW_IN_DF +const IGpuTemplateComponentWriter *ClComponentStore::template_writer() const +#else //ACL_INTERNAL_TEST_CKW_IN_DF const IGpuCkwComponentDriver *ClComponentStore::ckw_component_driver() const +#endif //ACL_INTERNAL_TEST_CKW_IN_DF { - return _ckw_driver.get(); + return _component_writer.get(); } } // namespace dynamic_fusion } // namespace experimental |