Updated opalgobase related to logging

This commit is contained in:
Alejandro Saucedo 2020-12-19 18:22:34 +00:00
parent 2a45f5f6af
commit 499e55f5ea

View file

@ -137,9 +137,11 @@ OpAlgoBase::postEval()
std::vector<char> std::vector<char>
OpAlgoBase::fetchSpirvBinaryData() OpAlgoBase::fetchSpirvBinaryData()
{ {
SPDLOG_WARN("Kompute OpAlgoBase Running shaders directly from spirv file"); SPDLOG_DEBUG("Kompute OpAlgoBase Running fetchSpirvBinaryData");
if (this->mShaderFilePath.size()) { if (this->mShaderFilePath.size()) {
SPDLOG_DEBUG("Kompute OpAlgoBase Reading data from file path");
std::ifstream fileStream(this->mShaderFilePath, std::ifstream fileStream(this->mShaderFilePath,
std::ios::binary | std::ios::in | std::ios::binary | std::ios::in |
std::ios::ate); std::ios::ate);
@ -159,6 +161,7 @@ OpAlgoBase::fetchSpirvBinaryData()
return std::vector<char>(shaderDataRaw, shaderDataRaw + shaderFileSize); return std::vector<char>(shaderDataRaw, shaderDataRaw + shaderFileSize);
} else if (this->mShaderDataRaw.size()) { } else if (this->mShaderDataRaw.size()) {
SPDLOG_DEBUG("Kompute OpAlgoBase Reading data from data provided");
return this->mShaderDataRaw; return this->mShaderDataRaw;
} else { } else {
throw std::runtime_error( throw std::runtime_error(