aboutsummaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorSiCong Li <sicong.li@arm.com>2023-11-14 15:17:10 +0000
committerSiCong Li <sicong.li@arm.com>2023-11-15 14:03:18 +0000
commitd4650e9e98c8f854776ae78fb6d3e46e7fe4ba20 (patch)
treed6b9d344884e3fae80561322f176c23903bf9707 /src/core
parentec2afd695381d90eb3aabf4a61059ff313f9a0d2 (diff)
downloadComputeLibrary-d4650e9e98c8f854776ae78fb6d3e46e7fe4ba20.tar.gz
Fix various coverity issues
Resolves COMPMID-6677 Signed-off-by: SiCong Li <sicong.li@arm.com> Change-Id: I99bf2385f6edc0836faacb31f5c66ed4fb051e40 Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/10729 Benchmark: Arm Jenkins <bsgcomp@arm.com> Reviewed-by: Viet-Hoa Do <viet-hoa.do@arm.com> Comments-Addressed: Arm Jenkins <bsgcomp@arm.com> Tested-by: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'src/core')
-rw-r--r--src/core/CL/CLMutableCommandBuffer.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/core/CL/CLMutableCommandBuffer.cpp b/src/core/CL/CLMutableCommandBuffer.cpp
index 05b351fc25..0e078d8416 100644
--- a/src/core/CL/CLMutableCommandBuffer.cpp
+++ b/src/core/CL/CLMutableCommandBuffer.cpp
@@ -26,6 +26,7 @@
#include "arm_compute/core/Error.h"
+#include "src/common/utils/Log.h"
#include "src/core/CL/CLUtils.h"
namespace arm_compute
@@ -48,7 +49,11 @@ CLMutableCommandBuffer::CLMutableCommandBuffer(cl_command_queue queue) : CLComma
CLMutableCommandBuffer::~CLMutableCommandBuffer()
{
const auto status = clReleaseCommandBufferKHR(_cb);
- handle_cl_error("clReleaseCommandBufferKHR", status);
+ if (status != CL_SUCCESS)
+ {
+ const std::string error_message = "clReleaseCommandBufferKHR - Error code: " + std::to_string(status);
+ ARM_COMPUTE_LOG_ERROR_ACL(error_message);
+ }
}
void CLMutableCommandBuffer::add_kernel(cl_kernel kernel,