You copied the Doc URL to your clipboard.

Synchronization

List of synchronization functions.

The barrier() function has no speed rating because it must wait for multiple work-items to complete. The time this takes determines the length of time the function takes in your application. This also depends on several factors such as:

  • The number of work-items in the work-groups being synchronized.
  • How much the work-items diverge.

Table B-9 Synchronization functions

Function
barrier()
mem_fence()
read_mem_fence()
write_mem_fence()

Note

Arm® recommends that you avoid using barriers, especially in small kernels.
Was this page helpful? Yes No