Avoid Needless Synchronization

For better results, avoid explicit command synchronization primitives, such as clEnqueueMarker and Barrier. Explicit synchronization commands and event tracking result in cross-module round trips, which decrease performance. The less you use explicit synchronization commands, the better the performance is.

Use the following techniques to reduce the explicit synchronization:

See Also

Reuse Compilation Results with clCreateProgramWithBinary
Task-Parallel Programming Model Hints