From 3547810476755ab02b6dac3dca7a959410b12e14 Mon Sep 17 00:00:00 2001 From: Alejandro Saucedo Date: Mon, 8 Feb 2021 21:42:32 +0000 Subject: [PATCH] reformat --- src/include/kompute/Manager.hpp | 6 +++--- test/TestMultipleAlgoExecutions.cpp | 9 ++++++--- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/src/include/kompute/Manager.hpp b/src/include/kompute/Manager.hpp index b20fa310d..ad3facd98 100644 --- a/src/include/kompute/Manager.hpp +++ b/src/include/kompute/Manager.hpp @@ -248,11 +248,10 @@ class Manager tensor->init(this->mPhysicalDevice, this->mDevice); if (syncDataToGPU) { - this->evalOpDefault({tensor}); + this->evalOpDefault({ tensor }); } this->mManagedTensors.insert(tensor); - return tensor; } @@ -267,7 +266,8 @@ class Manager * @param syncDataToGPU Whether to sync the data to GPU memory * @returns Initialized Tensor with memory Syncd to GPU device */ - void rebuildTensors(std::vector> tensors, bool syncDataToGPU = true) + void rebuildTensors(std::vector> tensors, + bool syncDataToGPU = true) { SPDLOG_DEBUG("Kompute Manager rebuildTensors triggered"); for (std::shared_ptr tensor : tensors) { diff --git a/test/TestMultipleAlgoExecutions.cpp b/test/TestMultipleAlgoExecutions.cpp index 208f1f9c8..4d2a44a9f 100644 --- a/test/TestMultipleAlgoExecutions.cpp +++ b/test/TestMultipleAlgoExecutions.cpp @@ -277,9 +277,12 @@ TEST(TestMultipleAlgoExecutions, ManagerEvalMultSourceStrMgrCreate) kp::Manager mgr; - auto tensorInA = mgr.buildTensor({ 2.0, 4.0, 6.0 }, kp::Tensor::TensorTypes::eDevice, false); - auto tensorInB = mgr.buildTensor({ 0.0, 1.0, 2.0 }, kp::Tensor::TensorTypes::eDevice, false); - auto tensorOut = mgr.buildTensor({ 0.0, 0.0, 0.0 }, kp::Tensor::TensorTypes::eDevice, false); + auto tensorInA = mgr.buildTensor( + { 2.0, 4.0, 6.0 }, kp::Tensor::TensorTypes::eDevice, false); + auto tensorInB = mgr.buildTensor( + { 0.0, 1.0, 2.0 }, kp::Tensor::TensorTypes::eDevice, false); + auto tensorOut = mgr.buildTensor( + { 0.0, 0.0, 0.0 }, kp::Tensor::TensorTypes::eDevice, false); std::string shader(R"( // The version to use