Intel® C++ Compiler 18.0 Developer Guide and Reference

_gfx_gpgpu_thread_barrier

Sets a barrier in the current thread. This topic only applies when targeting Intel® Graphics Technology.

Syntax

void _gfx_gpgpu_thread_barrier();

Parameters

None.

Description

This function sets a barrier in the current thread that pauses execution of the thread until all other threads in the same thread group reach this barrier.

Use this function to pause a thread in a second-level nest if program logic requires it to wait for other threads in the same thread group. There is no implicit thread barrier at the end of a second-level nest.

Return Values

None