mirror of
https://github.com/nomic-ai/kompute.git
synced 2026-05-11 08:59:59 +00:00
Updated opalgobase related to logging
This commit is contained in:
@@ -137,9 +137,11 @@ OpAlgoBase::postEval()
|
||||
std::vector<char>
|
||||
OpAlgoBase::fetchSpirvBinaryData()
|
||||
{
|
||||
SPDLOG_WARN("Kompute OpAlgoBase Running shaders directly from spirv file");
|
||||
SPDLOG_DEBUG("Kompute OpAlgoBase Running fetchSpirvBinaryData");
|
||||
|
||||
if (this->mShaderFilePath.size()) {
|
||||
SPDLOG_DEBUG("Kompute OpAlgoBase Reading data from file path");
|
||||
|
||||
std::ifstream fileStream(this->mShaderFilePath,
|
||||
std::ios::binary | std::ios::in |
|
||||
std::ios::ate);
|
||||
@@ -159,6 +161,7 @@ OpAlgoBase::fetchSpirvBinaryData()
|
||||
|
||||
return std::vector<char>(shaderDataRaw, shaderDataRaw + shaderFileSize);
|
||||
} else if (this->mShaderDataRaw.size()) {
|
||||
SPDLOG_DEBUG("Kompute OpAlgoBase Reading data from data provided");
|
||||
return this->mShaderDataRaw;
|
||||
} else {
|
||||
throw std::runtime_error(
|
||||
|
||||
Reference in New Issue
Block a user