From c22247534a4e4dddd0f9ca1c51e76d9fc0c5ec57 Mon Sep 17 00:00:00 2001 From: Alejandro Saucedo Date: Tue, 25 Aug 2020 21:07:35 +0100 Subject: [PATCH] Updated to ensure compiling on Release and Debug --- single_include/kompute/Kompute.hpp | 3 +++ src/include/kompute/OpMult.hpp | 3 +++ 2 files changed, 6 insertions(+) diff --git a/single_include/kompute/Kompute.hpp b/single_include/kompute/Kompute.hpp index 85168a422..43b22d35c 100755 --- a/single_include/kompute/Kompute.hpp +++ b/single_include/kompute/Kompute.hpp @@ -579,6 +579,7 @@ OpMult::init(std::vector> tensors) shader_data::shaders_glsl_opmult_comp_spv, shader_data::shaders_glsl_opmult_comp_spv + kp::shader_data::shaders_glsl_opmult_comp_spv_len); #else + SPDLOG_DEBUG("Kompute OpMult Running debug loading shaders directly from spirv file"); // TODO: Move to utility function std::string shaderFilePath = "shaders/glsl/opmult.comp.spv"; @@ -594,6 +595,8 @@ OpMult::init(std::vector> tensors) std::vector shaderFileData(shaderDataRaw, shaderDataRaw + shaderFileSize); #endif + SPDLOG_DEBUG("Kompute OpMult Initialising algorithm component"); + this->mAlgorithm->init(shaderFileData, tensors); } diff --git a/src/include/kompute/OpMult.hpp b/src/include/kompute/OpMult.hpp index b550c1a58..86fd32e05 100644 --- a/src/include/kompute/OpMult.hpp +++ b/src/include/kompute/OpMult.hpp @@ -147,6 +147,7 @@ OpMult::init(std::vector> tensors) shader_data::shaders_glsl_opmult_comp_spv, shader_data::shaders_glsl_opmult_comp_spv + kp::shader_data::shaders_glsl_opmult_comp_spv_len); #else + SPDLOG_DEBUG("Kompute OpMult Running debug loading shaders directly from spirv file"); // TODO: Move to utility function std::string shaderFilePath = "shaders/glsl/opmult.comp.spv"; @@ -162,6 +163,8 @@ OpMult::init(std::vector> tensors) std::vector shaderFileData(shaderDataRaw, shaderDataRaw + shaderFileSize); #endif + SPDLOG_DEBUG("Kompute OpMult Initialising algorithm component"); + this->mAlgorithm->init(shaderFileData, tensors); }