-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: avoid out-of-boundary access by
profile_add
kernel (#100)
The kernel uses `get_global_id()` to index the `values_out[]` array. The index is therefore related to "global work-group size" (GWS) and belongs to `[0, GWS)`. Adjust the GWS so that the kernel does not reach out-of-boundary while accessing each element of the array. - set the "local work-group size" (LWS) to 1 with `set_group_size()` - adjust the GWS by setting `group_count = elems_nb` when (`GWS = LWS * group_count`)` Fix other tests in the same manner. Signed-off-by: Maciej Bielski <maciej.bielski@intel.com>
- Loading branch information
1 parent
93ee6d6
commit 18ecdba
Showing
1 changed file
with
31 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters