Forum Discussion
What causes OpenCL to insert arbitration for local memory accesses?
- 2 years ago
Hi Björne2,
Maybe can refer to this link for OpenCL optimization related.
https://www.youtube.com/watch?v=1zGpN28mXN4
I will try to consult the team if there is any further info which may help.
Thanks.
Regards,
Aik Eu
Hi Björne2,
I did get some feedback from the team related to your OpenCL question, hope if will also help:
"
It’s arbitrating since because has 3 stores and 2 loads.
Some things to try:
1. Disable pipelining on loop at line 14 (n_tics) -> this should make the inner loops execute consecutively and in theory the LDs and STs can be shared instead of arbitrated.
2. don’t pre-load frontier. This will remove one of the ST sites and simplify the control flow. Add some logic to the loop at line 15 (i = 0:100) to detect if it’s the first iteration and re-use that store site to pre-load frontier.
"
Thanks.
Regards,
Aik Eu