Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing guard around debug message #203

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Level zero loader changelog

## v1.17.44
* Add missing guard around debug message
## v1.17.43
* Switch to monotonically increasing patch numbers
* Fix warning by updating min cmake version to 3.5
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -11,7 +11,7 @@ message(FATAL_ERROR "Visual Studio Compiler Version >= 1900 Required to build.")
endif()

# This project follows semantic versioning (https://semver.org/)
project(level-zero VERSION 1.17.43)
project(level-zero VERSION 1.17.44)

include(GNUInstallDirs)

6 changes: 4 additions & 2 deletions source/loader/ze_loader.cpp
Original file line number Diff line number Diff line change
@@ -389,8 +389,10 @@ namespace loader
}
}
if(allDrivers.size()==0){
std::string message = "0 Drivers Discovered";
debug_trace_message(message, "");
if (debugTraceEnabled) {
std::string message = "0 Drivers Discovered";
debug_trace_message(message, "");
}
zel_logger->log_error("0 Drivers Discovered");
return ZE_RESULT_ERROR_UNINITIALIZED;
}