Files
opencv-MIRROR/modules/core/src
Lurie97 a3e129aad8 Merge pull request #28686 from Lurie97:fix_inplace
core(opencl): fix inplace transpose race by enforcing LLSS ordering via local barrier #28686

The former inplace transpose implementation allowed a reordering of global-memory operations across work-items. Specifically, the intended LLSS (Load–Load–Store–Store) access pattern could be reordered by the GPU into LSLS (Load–Store–Load–Store), causing partially written tiles to be observed by other work-items and producing incorrect output.

This patch introduces a tiled LDS-based algorithm and adds an explicit:

    barrier(CLK_LOCAL_MEM_FENCE);

between the load and store phases.

### Pull Request Readiness Checklist

See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request

- [x] I agree to contribute to the project under Apache 2 License.
- [x] To the best of my knowledge, the proposed patch is not based on a code under GPL or another license that is incompatible with OpenCV
- [ ] The PR is proposed to the proper branch
- [ ] There is a reference to the original bug report and related work
- [ ] There is accuracy test, performance test and test data in opencv_extra repository, if applicable
      Patch to opencv_extra has the same branch name.
- [ ] The feature is well documented and sample code can be built with the project CMake
2026-04-03 15:50:11 +03:00
..
2025-06-26 14:45:19 +02:00
2024-03-05 12:15:39 +03:00
2024-03-05 12:15:39 +03:00
2018-09-07 20:33:52 +09:00
2019-03-05 14:47:04 +03:00
2022-03-03 07:21:53 +09:00
2019-12-27 12:46:53 +00:00
2024-03-05 12:15:39 +03:00
2024-03-05 12:15:39 +03:00
2025-10-16 21:19:12 +09:00
2026-01-04 15:12:59 +01:00
2024-03-05 12:15:39 +03:00
2025-01-13 16:34:28 +01:00
2025-03-24 09:21:22 +03:00
2025-03-24 09:21:22 +03:00
2024-10-11 02:18:14 +02:00
2025-01-13 16:34:28 +01:00
2021-03-02 23:24:28 +00:00
2018-02-12 14:14:08 +03:00
2018-08-27 14:42:18 +03:00
2026-03-20 13:20:31 +05:30
2014-08-15 12:09:16 +04:00