Defines XeTLA APIs for synchronization primitives. More...

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. | |
Defines XeTLA APIs for synchronization primitives.
| __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.
| 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. |
| __XETLA_API void gpu::xetla::named_barrier_wait | ( | uint8_t | barrier_id | ) |
Wait on a named barrier.
Available only on PVC
| barrier_id | [in] is the named barrier id. It’s value cannot exceed the total count of initialized named barriers. |
| __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.
| NbarCount | - number of named barriers. |