XeTLA v0.3.6
Intel® Xe Templates for Linear Algebra - API Definition Document
 
Loading...
Searching...
No Matches
Synchronization APIs

Defines XeTLA APIs for synchronization primitives. More...

Collaboration diagram for Synchronization APIs:

Functions

template<uint8_t NbarCount>
__XETLA_API void gpu::xetla::xetla_nbarrier_init ()
 Initialize the number of named barrier index for a kernel.
 
__XETLA_API void gpu::xetla::named_barrier_signal (uint8_t barrier_id, uint8_t producer_consumer_mode, uint32_t num_producers, uint32_t num_consumers)
 Perform signal operation for the given named barrier id.
 
__XETLA_API void gpu::xetla::named_barrier_wait (uint8_t barrier_id)
 Wait on a named barrier.
 

Detailed Description

Defines XeTLA APIs for synchronization primitives.

Function Documentation

◆ named_barrier_signal()

__XETLA_API void gpu::xetla::named_barrier_signal ( uint8_t  barrier_id,
uint8_t  producer_consumer_mode,
uint32_t  num_producers,
uint32_t  num_consumers 
)

Perform signal operation for the given named barrier id.

Available only on PVC.

Parameters
barrier_id[in] is the named barrier id.
producer_consumer_mode[in] is 2-bit flag to indicate if it's producer-consumer mode(0x0) or producer mode (0x1) or consumer mode (0x2). User must ensure the input value is set correctly and higher order bits are cleared.
num_producers[in] is the number of producers.
num_consumers[in] is the number of consumers.

◆ named_barrier_wait()

__XETLA_API void gpu::xetla::named_barrier_wait ( uint8_t  barrier_id)

Wait on a named barrier.

Available only on PVC

Parameters
barrier_id[in] is the named barrier id. It’s value cannot exceed the total count of initialized named barriers.

◆ xetla_nbarrier_init()

template<uint8_t NbarCount>
__XETLA_API void gpu::xetla::xetla_nbarrier_init ( )

Initialize the number of named barrier index for a kernel.

Available only on PVC. Only need to initialize once at the beginning.

Template Parameters
NbarCount- number of named barriers.