Changeset 826 for soft/giet_vm/applications/rosenfeld/rosenfeld.py
- Timestamp:
- Jul 13, 2017, 11:01:58 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/applications/rosenfeld/rosenfeld.py
r821 r826 41 41 42 42 # QM warning: if less than 8M per cluster (i.e. 2M per thread), small pages are required 43 stack_base = 0x 4000000043 stack_base = 0x30000000 44 44 stack_size = 0x00080000 # 512K (per cluster) => 128K per thread 45 45 #stack_size = 0x00400000 # 4M (per cluster) => 1M per thread 46 46 47 heap_base = 0x 6000000047 heap_base = 0x40000000 48 48 #heap_size = 0x00800000 # 8 Mbytes (per cluster) 49 heap_size = 0x10000000 # 256 Mbytes ( total)49 heap_size = 0x10000000 # 256 Mbytes (default) 50 50 51 51 # create vspace … … 91 91 if (mapping.clusters[cluster_id].procs): 92 92 nclusters = x_size * y_size 93 if x == 0 and y == 0 :94 size = heap_size / 293 if x == 0 and y == 0 and x_size * y_size == 1: 94 # only one cluster: takes all heap 95 95 base = heap_base 96 size = 0x20000000 # 512 Mo 97 elif x_size * y_size == 4: 98 # 4 clusters: 128 Mo to all clusters 99 size = 0x08000000 # 128 Mo 100 base = heap_base + ((y * x_size) + x) * size 101 elif x_size * y_size == 16: 102 # 16 clusters: 64 Mo to cluster 0, 32 to others 103 if x == 0 and y == 0: 104 base = heap_base 105 size = 0x04000000 # 64 Mo 106 else: 107 size = 0x02000000 # 32 Mo 108 base = heap_base + 0x04000000 + ((y * x_size) + x - 1) * size 96 109 else: 97 110 size = heap_size / (2 * nclusters)
Note: See TracChangeset
for help on using the changeset viewer.