B.9 Synchronization functions

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-8 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 version101574_0301_00_en
Copyright © 2019 Arm Limited or its affiliates. All rights reserved.