Skip to content
Merged
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions src/common/ittnotify.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,9 @@ void primitive_task_start(primitive_kind_t kind) {
if (kind_idx < primitive_kind::internal_only_start) {
assert((size_t)kind_idx < sizeof(prim_kind_itt_strings)
/ sizeof(prim_kind_itt_strings[0]));
__itt_task_begin(itt_domain(), __itt_null, __itt_null,
prim_kind_itt_strings[kind_idx]);
}
__itt_task_begin(itt_domain(), __itt_null, __itt_null,
prim_kind_itt_strings[kind_idx]);
thread_primitive_kind = kind;
}

Expand Down
6 changes: 5 additions & 1 deletion src/common/logging.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#include "common/logging.hpp"
#include "common/utils.hpp"

#define SPDLOG_DISABLE_DEFAULT_LOGGER
#include "spdlog/sinks/rotating_file_sink.h"
#include "spdlog/spdlog.h"

Expand Down Expand Up @@ -54,9 +55,12 @@ log_manager_t::log_manager_t()
"logger enabled,logfile::{},size::{},num_logfiles::{}",
logfile_path_, logfile_size_, num_logfiles_);
dnnl_logger->info(SEPARATOR_STR);
} catch (spdlog::spdlog_ex &exception) {
} catch (const spdlog::spdlog_ex &exception) {
printf("onednn_verbose,info,exception while creating logfile: %s\n",
exception.what());
} catch (const std::exception &exception) {
printf("onednn_verbose,info,standard library exception caught: %s\n",
exception.what());
}
}

Expand Down
Loading