B.9 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.
Non-ConfidentialPDF file icon PDF versionARM 100614_0300_00_en
Copyright © 2012, 2013, 2015, 2016 ARM. All rights reserved.