DisableDmaAtomic
Applicability
Product |
Supported |
|---|---|
Atlas 350 Accelerator Card |
√ |
√ |
|
√ |
|
√ |
|
√ |
|
x |
|
√ |
Function Usage
Clears the status of an atomic operation.
Prototype
1 | __aicore__ inline void DisableDmaAtomic() |
Parameters
None
Returns
None
Constraints
None
Example
1 2 3 4 5 6 | constexpr uint32_t totalLength = 256; // Number of elements involved in data movement AscendC::LocalTensor<float> src0Local; AscendC::GlobalTensor<float> dstGlobal; AscendC::SetAtomicAdd<float>(); // Enable atomic accumulation. The data type is float. AscendC::DataCopy(dstGlobal, src0Local, totalLength * sizeof(float)); AscendC::DisableDmaAtomic(); // Clear the status of the atomic operation. |
Parent topic: Atomic Operations