Changeset 764 for soft/giet_vm/applications/transpose/transpose.py
- Timestamp:
- Jan 19, 2016, 1:19:14 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/applications/transpose/transpose.py
r708 r764 35 35 # define vsegs base & size 36 36 code_base = 0x10000000 37 code_size = 0x00010000 # 64 Kbytes (per cluster)37 code_size = 0x00010000 # 64 Kbytes (256 Mbytes max) 38 38 39 39 data_base = 0x20000000 40 data_size = 0x00010000 # 64 Kbytes (non replicated) 40 data_size = 0x00010000 # 64 Kbytes (256 Mbytes max) 41 42 mmap_base = 0x30000000 43 mmap_size = 0x10000000 # 256 Mbytes (non mapped) 41 44 42 45 stack_base = 0x40000000 43 stack_size = 0x00010000 # 64 Kbytes (per thread)46 stack_size = 0x00010000 # 64 Kbytes per thread (64 Mbytes max) 44 47 45 48 heap_base = 0x60000000 46 heap_size = 0x00200000 # 2 Mbytes (per cluster)49 heap_size = 0x00200000 # 2 Mbytes per cluster (512 Mbytes max) 47 50 48 51 # create vspace 49 vspace = mapping.addVspace( name = 'transpose', startname = 'trsp_data', active = False )52 vspace = mapping.addVspace( name = 'transpose', startname = 'trsp_data', active = True ) 50 53 51 54 # data vseg : shared (only in cluster[0,0]) … … 54 57 binpath = 'bin/transpose/appli.elf', 55 58 local = False ) 59 60 # mmap vseg : non mapped in physical memory 61 mapping.addVseg( vspace, 'trsp_mmap', mmap_base , mmap_size, 62 'C_WU', vtype = 'MMAP', local = False ) 56 63 57 64 # code vsegs : local (one copy in each cluster) … … 75 82 proc_id = (((x * y_size) + y) * nprocs) + p 76 83 base = stack_base + (proc_id * stack_size) 77 84 size = stack_size - 4096 78 85 mapping.addVseg( vspace, 'trsp_stack_%d_%d_%d' % (x,y,p), 79 base , stack_size, 'C_WU', vtype = 'BUFFER',86 base , size , 'C_WU', vtype = 'BUFFER', 80 87 x = x , y = y , pseg = 'RAM', 81 local = True , big = True)88 local = True ) 82 89 83 90 # heap vsegs: distributed non local (all heap vsegs can be accessed by all tasks)
Note: See TracChangeset
for help on using the changeset viewer.