diff --git a/Makefile b/Makefile index b2059ee00..14196b13e 100644 --- a/Makefile +++ b/Makefile @@ -15,6 +15,7 @@ SCMP=/c/VulkanSDK/1.2.141.2/Bin32/glslangValidator.exe build: build_shaders $(CC) \ src/* \ + -w \ -std=c++17 \ -g -fexceptions -fPIC \ -static-libgcc -static-libstdc++ \ diff --git a/src/Sequence.hpp b/src/Sequence.hpp index cf20e1dd0..fa4b1a387 100644 --- a/src/Sequence.hpp +++ b/src/Sequence.hpp @@ -32,7 +32,7 @@ class Sequence void record(TArgs&&... args) { SPDLOG_DEBUG("Kompute Sequence record"); - T op(this->mCommandBuffer); + T op(this->mPhysicalDevice, this->mDevice, this->mCommandBuffer); op.init(std::forward(args)...); op.record(); } diff --git a/src/Tensor.hpp b/src/Tensor.hpp index 1c7ca44b4..c0423e5ff 100644 --- a/src/Tensor.hpp +++ b/src/Tensor.hpp @@ -39,7 +39,7 @@ class Tensor // Getter functions std::vector data(); uint32_t size(); - std::vector shape(); + std::array shape(); TensorTypes tensorType(); bool isInit(); diff --git a/src/main.cpp b/src/main.cpp index c7b1a99ac..672c50a40 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -623,7 +623,7 @@ main() std::vector data = {0.0, 1.0, 2.0}; kp::Tensor tensor({data.size()}); spdlog::info("Calling manager eval w opcreatetensor"); - mgr.evalOp(&tensor, data); + mgr.evalOp(std::shared_ptr(&tensor), data); spdlog::info("Called manager eval success"); std::vector outData = tensor.data(); spdlog::info("Output data: {}", outData);