|
22 | 22 |
|
23 | 23 | #include "arm_perf_monitor.h"
|
24 | 24 |
|
25 |
| -/** |
26 |
| - * This header file is generated by the build process based on the .pte file |
27 |
| - * specified in the ET_PTE_FILE_PATH variable to the cmake build. |
28 |
| - * Control of the action of the .pte, it's use of operators and delegates, and |
29 |
| - * which are included in the bare metal build are also orchestrated by the |
30 |
| - * CMakeLists file. For example use see examples/arm/run.sh |
31 |
| - */ |
32 | 25 | #ifdef SEMIHOSTING
|
33 |
| -// TODO: Verify the section attribute to match the linker script |
34 |
| -// pending MLETORCH-39 |
35 |
| -const size_t input_allocation_pool_size = 1 * 1024 * 1024; |
| 26 | +// In our unit test flow, we have the capability to provide an enitre model to |
| 27 | +// the Corstone-3xx FVP using semi hosting. Hence, the input allocation pool |
| 28 | +// needs to be large enough to take an entire model. On the FVP, |
| 29 | +// network_model_sec is linked to the DDR, which is large (256MB on |
| 30 | +// Corstone-300). |
| 31 | +const size_t input_allocation_pool_size = 100 * 1024 * 1024; |
36 | 32 | unsigned char __attribute__((
|
37 | 33 | section("network_model_sec"),
|
38 | 34 | aligned(16))) input_allocation_pool[input_allocation_pool_size];
|
39 | 35 | // memory for the model will be allocated from the input_allocation_pool
|
40 | 36 | char* model_pte = nullptr;
|
41 | 37 | #else
|
| 38 | +/** |
| 39 | + * This header file is generated by the build process based on the .pte file |
| 40 | + * specified in the ET_PTE_FILE_PATH variable to the cmake build. |
| 41 | + * Control of the action of the .pte, it's use of operators and delegates, and |
| 42 | + * which are included in the bare metal build are also orchestrated by the |
| 43 | + * CMakeLists file. For example use see examples/arm/run.sh |
| 44 | + */ |
42 | 45 | #include "model_pte.h"
|
43 | 46 | #endif
|
44 | 47 |
|
|
0 commit comments