SetStoreAtomicConfig(ISASI)
Supported Products
Product |
Supported/Unsupported |
|---|---|
√ |
|
√ |
|
√ |
|
x |
|
x |
|
x |
Function Usage
Sets the atomic operation enabling flag and type.
Prototype
1 2 | template <AtomicDtype type, AtomicOp op> __aicore__ inline void SetStoreAtomicConfig() |
Parameters
Parameter |
Input/Output |
Description |
||
|---|---|---|---|---|
type |
Input |
Atomic operation enable bit. The definition of the AtomicDtype enumeration class is as follows:
|
||
op |
Input |
Atomic operation type. This parameter is valid only when type is not ATOMIC_NONE. Currently, only the sum operation is supported.
|
Returns
None
Constraints
None
Examples
1 2 | // Set the atomic operation to the sum operation. The supported data type is half. AscendC::SetStoreAtomicConfig<AscendC::AtomicDtype::ATOMIC_F16, AscendC::AtomicOp::ATOMIC_SUM>(); |
Parent topic: Atomic Operations