DataSyncBarrier (ISASI)
Supported Products
Product |
Supported/Unsupported |
|---|---|
x |
|
√ |
|
√ |
|
x |
|
x |
|
x |
Function Usage
Blocks the execution of subsequent instructions until all previous memory access instructions are executed (the memory location to be waited for can be controlled by parameters).
Prototype
1 2 | template <MemDsbT arg0> __aicore__ inline void DataSyncBarrier() |
Parameters
Parameter |
Description |
|---|---|
arg0 |
Template parameter, indicating the memory location to be waited for. The type is MemDsbT. The options are as follows:
|
Returns
None
Constraints
None
Example
1 2 3 | AscendC::Mmad(...); AscendC::DataSyncBarrier<MemDsbT::ALL>(); AscendC::Fixpipe(...); |
Parent topic: Intra-Core Synchronization