Changeset 821 for soft/giet_vm/applications/rosenfeld/rosenfeld.py
- Timestamp:
- May 6, 2016, 3:06:29 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/applications/rosenfeld/rosenfeld.py
r805 r821 40 40 data_size = 0x00010000 # 64 Kbytes (non replicated) 41 41 42 # QM warning: if less than 8M per cluster (i.e. 2M per thread), small pages are required 42 43 stack_base = 0x40000000 43 stack_size = 0x00800000 # 8 Mbytes (per cluster) 44 stack_size = 0x00080000 # 512K (per cluster) => 128K per thread 45 #stack_size = 0x00400000 # 4M (per cluster) => 1M per thread 44 46 45 47 heap_base = 0x60000000 46 heap_size = 0x01000000 # 16 Mbytes (per cluster) 48 #heap_size = 0x00800000 # 8 Mbytes (per cluster) 49 heap_size = 0x10000000 # 256 Mbytes (total) 47 50 48 51 # create vspace … … 80 83 base, size, 'C_WU', vtype = 'BUFFER', 81 84 x = x , y = y , pseg = 'RAM', 82 local = True, big = True )85 local = True, big = False ) 83 86 84 87 # heap vsegs: distributed non local (all heap vsegs can be accessed by all tasks) … … 87 90 cluster_id = (x * y_size) + y 88 91 if (mapping.clusters[cluster_id].procs): 89 size = heap_size 90 base = heap_base + (cluster_id * size) 91 92 nclusters = x_size * y_size 93 if x == 0 and y == 0: 94 size = heap_size / 2 95 base = heap_base 96 else: 97 size = heap_size / (2 * nclusters) 98 base = heap_base + heap_size / 2 + ((y * x_size) + x - 1) * size 92 99 mapping.addVseg(vspace, 'rosen_heap_%d_%d' % (x, y), base, size, 93 94 100 'C_WU', vtype = 'HEAP', x = x, y = y, pseg = 'RAM', 101 local = False, big = True ) 95 102 96 103 # distributed tasks / one task per processor
Note: See TracChangeset
for help on using the changeset viewer.