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

[Coverity] GPU Plugin Medium issues #27761

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
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
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ namespace cldnn {
struct resample : public primitive_base<resample> {
CLDNN_DECLARE_PRIMITIVE(resample)

resample() : primitive_base("", {}) {}
resample() : primitive_base("", {}), scales_port(0) {}

using InterpolateOp = ov::op::util::InterpolateBase;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ struct convolution_onednn : typed_primitive_onednn_impl<convolution> {

private:
int _zero_point_mask;
dnnl::memory::data_type _wzp_data_type;
dnnl::memory::data_type _wzp_data_type = dnnl::memory::data_type::undef;

protected:
std::unique_ptr<primitive_impl> clone() const override {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -757,6 +757,8 @@ void FullyConnected_bf_tiled::GetUpdateDispatchDataFunc(KernelData& kd) const {
const auto& prim_params = static_cast<const fully_connected_params&>(params);

size_t quantize_grp_size = get_dynamic_quantize_group_size(prim_params);
OPENVINO_ASSERT(quantize_grp_size != 0, "Error: quantize_grp_size is zero.");

size_t output_batch = get_output_aligned_bf_size(prim_params, false).first;

// Get index of the added shape-agnostic kernel
Expand Down Expand Up @@ -940,6 +942,7 @@ KernelsData FullyConnected_bf_tiled::GetMultiKernelsData(const Params &params,
const auto& fc_params = static_cast<const fully_connected_params&>(params);

size_t quantize_grp_size = get_dynamic_quantize_group_size(fc_params);
OPENVINO_ASSERT(quantize_grp_size != 0, "Error: quantize_grp_size is zero.");

bool bProperInput = fc_params.inputs[0].GetLayout() == dl;
if (!bProperInput && !fc_params.inputs[0].PitchesDifferFromLogicalDims()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ KVCacheFusionMatcher::KVCacheFusionMatcher() {
return false;

// TODO: Support conversion internally
if (concat_node->get_output_element_type(0) != past_node->get_output_element_type(0))
if (!concat_node || concat_node->get_output_element_type(0) != past_node->get_output_element_type(0))
return false;

auto variable = past_node->get_variable();
Expand Down
Loading