DisableDmaAtomic

Applicability

Product

Supported

Atlas 350 Accelerator Card

Atlas A3 training product/Atlas A3 inference product

Atlas A2 training product/Atlas A2 inference product

Atlas 200I/500 A2 inference product

Atlas inference product AI Core

Atlas inference product Vector Core

x

Atlas training product

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.