-
Notifications
You must be signed in to change notification settings - Fork 1k
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
base: main
Are you sure you want to change the base?
Conversation
@@ -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 = { |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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::move
s this vector to prevent a copy. With the const
, std::move
has no effect, and we would still get a copy.
c1caff6
to
c159499
Compare
c159499
to
7bd3419
Compare
make test |
Addresses most low severity Coverity hits for GPU and GEMM components.