ICachePreLoad (ISASI)
Supported Products
Product |
Supported/Unsupported |
|---|---|
√ |
|
√ |
|
x |
|
√ |
|
x |
|
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
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 |
Returns
None
Constraints
None
Examples
1 2 | int64_t preFetchLen = 2; AscendC::ICachePreLoad(preFetchLen); |