ICachePreLoad (ISASI)
Applicability
Product |
Supported |
|---|---|
Atlas 350 Accelerator Card |
√ |
√ |
|
√ |
|
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 For the For the For the Atlas 350 Accelerator Card, 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. |
Returns
None
Constraints
None
Example
1 2 | int64_t preFetchLen = 2; // Prefetch length AscendC::ICachePreLoad(preFetchLen); |