aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAjay Jayaraj2016-11-14 10:28:38 -0600
committerAjay Jayaraj2016-11-14 10:28:38 -0600
commitfdd599e5bd8ecb5731467684db9a24a080c34a2e (patch)
treeb89b43690307a94cf8f40157ebe0b630d858ae77
parent06a7190a4c2d7f489b4ec80f96eb75826b97a073 (diff)
downloadti-openmpacc-fdd599e5bd8ecb5731467684db9a24a080c34a2e.tar.gz
ti-openmpacc-fdd599e5bd8ecb5731467684db9a24a080c34a2e.tar.xz
ti-openmpacc-fdd599e5bd8ecb5731467684db9a24a080c34a2e.zip
Reduced MSMC SRAM usage in dspheap test to 512KB
Test was allocating 1MB of MSMC, failed on K2L because it has 768KB of MSMC SRAM available.
-rw-r--r--examples/dspheap/dspheap_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/dspheap/dspheap_main.c b/examples/dspheap/dspheap_main.c
index 47d7a13..efde209 100644
--- a/examples/dspheap/dspheap_main.c
+++ b/examples/dspheap/dspheap_main.c
@@ -55,7 +55,7 @@ int main(int argc, char *argv[])
55 * From the host, create the underlying memory store for the heaps 55 * From the host, create the underlying memory store for the heaps
56 *-----------------------------------------------------------------------*/ 56 *-----------------------------------------------------------------------*/
57 int ddr_heap_size = 16 << 20; //16MB 57 int ddr_heap_size = 16 << 20; //16MB
58 int msmc_heap_size = 1 << 20; //1MB 58 int msmc_heap_size = 1 << 19; //512KB
59 int l2_heap_size = 1 << 10; //1KB 59 int l2_heap_size = 1 << 10; //1KB
60 60
61 char* HeapDDR = (char*) __malloc_ddr(ddr_heap_size); 61 char* HeapDDR = (char*) __malloc_ddr(ddr_heap_size);