Skip to content

fix coverity scan issue CID 1537543#28213

Merged
wangleis merged 2 commits intoopenvinotoolkit:masterfrom
wangleis:fix_CID_1537543
Jan 2, 2025
Merged

fix coverity scan issue CID 1537543#28213
wangleis merged 2 commits intoopenvinotoolkit:masterfrom
wangleis:fix_CID_1537543

Conversation

@wangleis
Copy link
Copy Markdown
Contributor

Details:

  • fix coverity scan issue CID 1537543

    config.streamExecutorConfig = IStreamsExecutor::Config{"CPUStreamsExecutor",
    706 config.streams,
    707 config.threadsPerStream,
    708 ov::hint::SchedulingCoreType::ANY_CORE,
    709 false,
    710 cpu_pinning,

CID 1537543: (#1 of 1): COPY_INSTEAD_OF_MOVE (COPY_INSTEAD_OF_MOVE)

  1. copy_constructor_call: streams_info_table is passed-by-value as parameter to ov::threading::IStreamsExecutor::Config::Config(std::string, int, int, ov::hint::SchedulingCoreType, bool, bool, std::vector<std::vector<int, std::allocator >, std::allocator<std::vector<int, std::allocator > > >, std::vector<int, std::allocator >) when it could be moved instead.
    Use std::move(streams_info_table) instead of streams_info_table.
    711 streams_info_table};
    712

Tickets:

  • ticket-id

@wangleis wangleis requested review from a team as code owners December 26, 2024 12:34
@wangleis wangleis requested review from dmitry-gorokhov and sunxiaoxia2022 and removed request for a team December 26, 2024 12:34
@github-actions github-actions bot added the category: CPU OpenVINO CPU plugin label Dec 26, 2024
@wangleis wangleis added this pull request to the merge queue Dec 31, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Dec 31, 2024
@wangleis wangleis added this pull request to the merge queue Jan 2, 2025
Merged via the queue into openvinotoolkit:master with commit 200b67a Jan 2, 2025
@wangleis wangleis deleted the fix_CID_1537543 branch January 2, 2025 04:53
MirceaDan99 pushed a commit to MirceaDan99/openvino that referenced this pull request Jan 22, 2025
### Details:
 - *fix coverity scan issue CID 1537543*

config.streamExecutorConfig =
IStreamsExecutor::Config{"CPUStreamsExecutor",
706 config.streams,
707 config.threadsPerStream,
708 ov::hint::SchedulingCoreType::ANY_CORE,
709                                                           false,
710 cpu_pinning,
     	
CID 1537543: (openvinotoolkit#1 of 1): COPY_INSTEAD_OF_MOVE (COPY_INSTEAD_OF_MOVE)
1. copy_constructor_call: streams_info_table is passed-by-value as
parameter to
ov::threading::IStreamsExecutor::Config::Config(std::string, int, int,
ov::hint::SchedulingCoreType, bool, bool, std::vector<std::vector<int,
std::allocator<int> >, std::allocator<std::vector<int,
std::allocator<int> > > >, std::vector<int, std::allocator<int> >) when
it could be moved instead.
     	Use std::move(streams_info_table) instead of streams_info_table.
711 streams_info_table};
712

### Tickets:
 - *ticket-id*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

category: CPU OpenVINO CPU plugin

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants