boostorg / compute

A C++ GPU Computing Library for OpenCL
http://boostorg.github.io/compute/
Boost Software License 1.0
1.55k stars 333 forks source link

Fix out of bound access in local_scan kernel #772

Closed umar456 closed 5 years ago

umar456 commented 6 years ago

The local_scan kernel was accessing the first buffer using the global id without checking if it was within the bounds.

coveralls commented 6 years ago

Coverage Status

Coverage remained the same at 82.121% when pulling 86b36bae6ed6aaeb23c295d0910f886236e91742 on umar456:scan_fix into 1bf4b53f6051fb8f20823a0c780cfcafeb4175c0 on boostorg:develop.

umar456 commented 6 years ago

I found this by running cuda-memcheck. Is there anything else I should do to get this merged?