Skip to content

Commit

Permalink
Futher versions of anira should be compatible with version 1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
faressc committed Nov 13, 2024
1 parent 907ecc0 commit 4637a4c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/scheduler/Context.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ std::shared_ptr<Context> Context::get_instance(const ContextConfig& context_conf
} else {
// TODO: Better error handling
if (m_context->m_context_config.m_anira_version != context_config.m_anira_version) {
std::cerr << "[ERROR] Context already initialized with different version!" << std::endl;
}
if (m_context->m_context_config.m_enabled_backends != context_config.m_enabled_backends) {
std::cerr << "[ERROR] Context already initialized with different backends enabled!" << std::endl;
Expand All @@ -33,7 +32,7 @@ std::shared_ptr<Context> Context::get_instance(const ContextConfig& context_conf
m_context->m_context_config.m_use_host_threads = false; // Can only be set to true again if all sessions are released
}
}
std::cout << "Anira Version " << m_context->m_context_config.m_anira_version << std::endl;
std::cout << "[INFO] Anira version: " << m_context->m_context_config.m_anira_version << std::endl;
return m_context;
}

Expand Down

0 comments on commit 4637a4c

Please sign in to comment.