aboutsummaryrefslogtreecommitdiff
path: root/src/core/CL/CLMutableCommandBuffer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/CL/CLMutableCommandBuffer.cpp')
-rw-r--r--src/core/CL/CLMutableCommandBuffer.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/core/CL/CLMutableCommandBuffer.cpp b/src/core/CL/CLMutableCommandBuffer.cpp
index 0e078d8416..05b351fc25 100644
--- a/src/core/CL/CLMutableCommandBuffer.cpp
+++ b/src/core/CL/CLMutableCommandBuffer.cpp
@@ -26,7 +26,6 @@
#include "arm_compute/core/Error.h"
-#include "src/common/utils/Log.h"
#include "src/core/CL/CLUtils.h"
namespace arm_compute
@@ -49,11 +48,7 @@ CLMutableCommandBuffer::CLMutableCommandBuffer(cl_command_queue queue) : CLComma
CLMutableCommandBuffer::~CLMutableCommandBuffer()
{
const auto status = clReleaseCommandBufferKHR(_cb);
- if (status != CL_SUCCESS)
- {
- const std::string error_message = "clReleaseCommandBufferKHR - Error code: " + std::to_string(status);
- ARM_COMPUTE_LOG_ERROR_ACL(error_message);
- }
+ handle_cl_error("clReleaseCommandBufferKHR", status);
}
void CLMutableCommandBuffer::add_kernel(cl_kernel kernel,