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

[GPU] Periodic Coverity roundup #2840

Open
wants to merge 11 commits into
base: main
Choose a base branch
from

Conversation

atkassen
Copy link
Contributor

@atkassen atkassen commented Mar 7, 2025

Addresses most low severity Coverity hits for GPU and GEMM components.

@atkassen atkassen requested review from a team as code owners March 7, 2025 19:02
@github-actions github-actions bot added the platform:gpu-intel Codeowner: @oneapi-src/onednn-gpu-intel label Mar 7, 2025
@atkassen atkassen self-assigned this Mar 7, 2025
@@ -212,7 +212,7 @@ atomic_reduction_conf_t::atomic_reduction_conf_t(
status_t atomic_reduction_conf_t::init_dispatcher(
const compute::compute_engine_t *engine,
const gpu_primitive_attr_t *gpu_attr) {
const std::vector<dim_idx_t> dispatch_dims = {
std::vector<dim_idx_t> dispatch_dims = {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just curious why drop const?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The other change in this file std::moves this vector to prevent a copy. With the const, std::move has no effect, and we would still get a copy.

@atkassen
Copy link
Contributor Author

atkassen commented Mar 8, 2025

make test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform:gpu-intel Codeowner: @oneapi-src/onednn-gpu-intel
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants