ICachePreLoad (ISASI)

Supported Products

Product

Supported/Unsupported

Atlas A3 training products/Atlas A3 inference products

Atlas A2 training products/Atlas A2 inference products

Atlas 200I/500 A2 inference products

x

Atlas inference product's AI Core

Atlas inference product's Vector Core

x

Atlas training products

x

Function Usage

Preloads instructions to the iCache from the DDR address where the instructions are located.

Prototype

1
__aicore__ inline void ICachePreLoad(const int64_t preFetchLen)

Parameters

Table 1 Parameters

Parameter

Input/Output

Description

preFetchLen

Input

Prefetch length.

For the Ascend 910_95 AI Processor, the unit of preFetchLen is 2 KB. The value must be smaller than the iCache size/2 KB. The iCache sizes of the AIC and AIV are 32 KB and 16 KB respectively.

For the Ascend 910_95 AI Processor, the unit of preFetchLen is 2 KB. The value must be smaller than the iCache size/2 KB. The iCache sizes of the AIC and AIV are 32 KB and 16 KB respectively.

For the Atlas inference product's AI Core, this parameter is invalid. The prefetch length is 128 bytes.

Returns

None

Constraints

None

Examples

1
2
int64_t preFetchLen = 2;
AscendC::ICachePreLoad(preFetchLen);