Skip to content
This repository has been archived by the owner on May 9, 2024. It is now read-only.

Commit

Permalink
Reroute L0Mgr destructor error messages to appropriate log
Browse files Browse the repository at this point in the history
  • Loading branch information
kurapov-peter committed Jun 29, 2023
1 parent c13e868 commit 5858692
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions omniscidb/L0Mgr/L0Mgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ L0Driver::L0Driver(ze_driver_handle_t handle) : driver_(handle) {
L0Driver::~L0Driver() {
auto status = (zeContextDestroy(context_));
if (status) {
std::cerr << "Non-zero status for context destructor" << std::endl;
LOG(ERROR) << "Non-zero status for context destructor";
}
}

Expand Down Expand Up @@ -116,7 +116,7 @@ L0CommandList::~L0CommandList() {
// TODO: maybe return to pool
auto status = zeCommandListDestroy(handle_);
if (status) {
std::cerr << "Non-zero status for command list destructor" << std::endl;
LOG(ERROR) << "Non-zero status for command list destructor";
}
}

Expand Down Expand Up @@ -201,7 +201,7 @@ ze_command_queue_handle_t L0CommandQueue::handle() const {
L0CommandQueue::~L0CommandQueue() {
auto status = (zeCommandQueueDestroy(handle_));
if (status) {
std::cerr << "Non-zero status for command queue destructor" << std::endl;
LOG(ERROR) << "Non-zero status for command queue destructor";
}
}

Expand Down Expand Up @@ -253,7 +253,7 @@ ze_module_handle_t L0Module::handle() const {
L0Module::~L0Module() {
auto status = zeModuleDestroy(handle_);
if (status) {
std::cerr << "Non-zero status for command module destructor" << std::endl;
LOG(ERROR) << "Non-zero status for command module destructor";
}
}

Expand Down Expand Up @@ -305,7 +305,7 @@ std::string L0Kernel::desc() const {
L0Kernel::~L0Kernel() {
auto status = zeKernelDestroy(handle_);
if (status) {
std::cerr << "Non-zero status for command kernel destructor" << std::endl;
LOG(ERROR) << "Non-zero status for command kernel destructor";
}
}

Expand Down

0 comments on commit 5858692

Please sign in to comment.