SetLoadDataRepeat
Applicability
Product |
Supported |
|---|---|
Atlas 350 Accelerator Card |
√ |
√ |
|
√ |
|
√ |
|
x |
|
x |
|
x |
Function Usage
Sets the repeat parameters of the Load3Dv2 API. After the repeat parameters are set, the Load3Dv2 API can be called once to complete the data movement for multiple iterations.
Prototype
1 | __aicore__ inline void SetLoadDataRepeat(const LoadDataRepeatParam& repeatParams) |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
repeatParams |
Input |
repeat parameters of the Load3Dv2 API, of the LoadDataRepeatParam type. For details, see ${INSTALL_DIR}/include/ascendc/basic_api/interface/kernel_struct_mm.h. Replace ${INSTALL_DIR} with the actual path for storing files after the CANN software is installed. For details about the parameter description, see Table 2. |
Parameter |
Description |
|---|---|
repeatTime |
Number of iterations in the height/width direction. Value range: repeatTime ∈ [0, 255]. Default value: 1. |
repeatStride |
Distance between the start address of the previous iteration and the start address of the next iteration in the height/width direction. Value range: [0, 65535]. Default value: 0.
|
repeatMode |
Direction of the repeat iteration. Value range: [0, 1]. Default value: 0. 0: The iteration is in the height direction. 1: The iteration is in the width direction. |
Examples
See Examples.