Introduction to DataCopy
The DataCopy APIs provide comprehensive data movement functions, support multiple data movement scenarios, and implement operations such as format conversion and quantization activation during data movement. These APIs support data movement between the local memory and global memory, and data movement within the local memory.
The following table describes the functions of DataCopy and the supported channels.
Function |
Description |
Local Memory -> Global Memory |
Global Memory -> Local Memory |
Local Memory -> Local Memory |
|||
|---|---|---|---|---|---|---|---|
Provides basic data movement capabilities. During data transmission, the original format and content of the data remain unchanged. Both contiguous and non-contiguous data movement is supported. |
√ |
√ |
√ |
||||
Enhances the data movement capability. Compared with the basic data movement APIs, the enhanced data movement APIs support the in-line computation of the CO1->CO2 channel. |
√ |
√ |
√ |
||||
Supports slice-based data movement, extracting a subset of multi-dimensional tensor data for movement. |
√ |
√ |
× |
||||
Supports conversion from the ND format to the NZ format during data movement. |
× |
√ |
√ |
||||
Supports conversion from the NZ format to the ND format during data movement. |
√ |
× |
× |
||||
Supports quantization and ReLU activation during data movement, and supports conversion from the NZ format to the ND format in the channel from the local memory to the global memory. |
√ |
× |
√ |
||||