Changeset 824 for soft/giet_vm/applications/raycast
- Timestamp:
- Nov 26, 2016, 7:33:20 PM (8 years ago)
- Location:
- soft/giet_vm/applications/raycast
- Files:
-
- 1 deleted
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/applications/raycast/raycast.c
r724 r824 84 84 85 85 // Allocate buffer and status for CMA 86 buf = malloc( FBUF_X_SIZE * FBUF_Y_SIZE);86 buf = malloc(fbuf_x_size * fbuf_x_size); 87 87 sts = malloc(64); 88 88 … … 141 141 142 142 // Wait last slice completion 143 while (slice_count < FBUF_X_SIZE) giet_tty_printf(" ");143 while (slice_count < fbuf_x_size) giet_tty_printf(" "); 144 144 145 145 // display image -
soft/giet_vm/applications/raycast/raycast.py
r708 r824 34 34 35 35 # define vsegs base & size 36 code_base = 0x10000000 37 code_size = 0x00010000 # 64 Kbytes 36 code_base = 0x10000000 # replicated in all clusters 37 code_size = 0x00010000 # 64 Kbytes per cluster 38 38 39 data_base = 0x20000000 40 data_size = 0x00040000 # 256 Kbytes 39 data_base = 0x20000000 # non replicated 40 data_size = 0x00040000 # 256 Kbytes in cluster 0 41 41 42 stack_base = 0x40000000 43 stack_size = 0x00 200000 # 2 Mbytes42 stack_base = 0x40000000 # distributed in all clusters 43 stack_size = 0x00010000 # 64 Kbytes per proc 44 44 45 heap_base = 0x60000000 46 heap_size = 0x00400000 # 4 Mbytes 45 heap_base = 0x60000000 # distributed in all clusters 46 heap_size = 0x00400000 # 4 Mbytes per cluster 47 47 48 48 # create vspace … … 73 73 for p in xrange( nprocs ): 74 74 proc_id = (((x * y_size) + y) * nprocs) + p 75 size = (stack_size / nprocs) & 0xFFFFF00075 size = stack_size 76 76 base = stack_base + (proc_id * size) 77 77 mapping.addVseg( vspace, 'raycast_stack_%d_%d_%d' % (x,y,p), 78 78 base, size, 'C_WU', vtype = 'BUFFER', 79 79 x = x , y = y , pseg = 'RAM', 80 local = True, big = True )80 local = True, big = False ) 81 81 82 82 # heap vsegs : shared (one per cluster)
Note: See TracChangeset
for help on using the changeset viewer.