diff --git a/src/BaseOp.cpp b/src/BaseOp.cpp index 650d1dc4b..1a682c7ab 100644 --- a/src/BaseOp.cpp +++ b/src/BaseOp.cpp @@ -4,32 +4,30 @@ #define SPDLOG_ACTIVE_LEVEL SPDLOG_LEVEL_DEBUG #endif -#include - #include "BaseOp.hpp" -namespace kp { - -template -BaseOp::BaseOp() -{} - -template -BaseOp::BaseOp(std::shared_ptr physicalDevice, - std::shared_ptr device, - std::shared_ptr commandBuffer) -{ - SPDLOG_DEBUG("Compute BaseOp constructor started"); - - this->mPhysicalDevice = physicalDevice; - this->mDevice = device; - this->mCommandBuffer = commandBuffer; -} - -template -BaseOp::~BaseOp() -{ - SPDLOG_DEBUG("Compute BaseOp destructor started"); -} - -} +//namespace kp { +// +//template +//BaseOp::BaseOp() +//{} +// +//template +//BaseOp::BaseOp(std::shared_ptr physicalDevice, +// std::shared_ptr device, +// std::shared_ptr commandBuffer) +//{ +// SPDLOG_DEBUG("Compute BaseOp constructor started"); +// +// this->mPhysicalDevice = physicalDevice; +// this->mDevice = device; +// this->mCommandBuffer = commandBuffer; +//} +// +//template +//BaseOp::~BaseOp() +//{ +// SPDLOG_DEBUG("Compute BaseOp destructor started"); +//} +// +//} diff --git a/src/BaseOp.hpp b/src/BaseOp.hpp index 018fb5161..3c5532e10 100644 --- a/src/BaseOp.hpp +++ b/src/BaseOp.hpp @@ -19,11 +19,22 @@ class BaseOp { private: public: - BaseOp(); + BaseOp() {} + BaseOp(std::shared_ptr physicalDevice, std::shared_ptr device, - std::shared_ptr commandBuffer); - virtual ~BaseOp(); + std::shared_ptr commandBuffer) { + SPDLOG_DEBUG("Compute BaseOp constructor started"); + + this->mPhysicalDevice = physicalDevice; + this->mDevice = device; + this->mCommandBuffer = commandBuffer; + } + + ~BaseOp() + { + SPDLOG_DEBUG("Compute BaseOp destructor started"); + } template void init(TArgs&&... args) @@ -46,3 +57,4 @@ class BaseOp }; } // End namespace kp + diff --git a/src/OpCreateTensor.cpp b/src/OpCreateTensor.cpp index 4fc687528..3ec39cf6b 100644 --- a/src/OpCreateTensor.cpp +++ b/src/OpCreateTensor.cpp @@ -5,23 +5,27 @@ namespace kp { -OpCreateTensor::OpCreateTensor() {} +OpCreateTensor::OpCreateTensor() { + SPDLOG_DEBUG("Kompute OpCreateTensor constructor base"); + +} OpCreateTensor::OpCreateTensor(std::shared_ptr physicalDevice, std::shared_ptr device, std::shared_ptr commandBuffer) : BaseOp(physicalDevice, device, commandBuffer) { - + SPDLOG_DEBUG("Kompute OpCreateTensor constructor with params"); } OpCreateTensor::~OpCreateTensor() { - + SPDLOG_DEBUG("Kompute OpCreateTensor destructor started"); } void OpCreateTensor::init(std::shared_ptr tensor, std::vector data) { + SPDLOG_DEBUG("Kompute OpCreateTensor init called"); this->mPrimaryTensor = tensor; if (tensor->tensorType() == Tensor::TensorTypes::eDevice) { @@ -40,6 +44,8 @@ OpCreateTensor::init(std::shared_ptr tensor, std::vector data) void OpCreateTensor::record() { + SPDLOG_DEBUG("Kompute OpCreateTensor record called"); + if (this->mPrimaryTensor->tensorType() == Tensor::TensorTypes::eDevice) { this->mPrimaryTensor->recordCopyFrom(this->mStagingTensor); }