Changeset 384
- Timestamp:
- Aug 7, 2014, 12:28:23 PM (10 years ago)
- Location:
- soft/giet_vm/convol
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/convol/convol.py
r353 r384 56 56 for x in xrange (x_size): 57 57 for y in xrange (y_size): 58 59 58 size = code_size 60 59 base = code_base … … 67 66 for x in xrange (x_size): 68 67 for y in xrange (y_size): 69 70 68 cluster_id = (x * y_size) + y 71 69 size = heap_size / (x_size * y_size) … … 79 77 for y in xrange (y_size): 80 78 for p in xrange( procs_max ): 81 82 79 proc_id = (((x * y_size) + y) * procs_max) + p 83 80 size = stack_size / (x_size * y_size * procs_max) … … 90 87 for x in xrange (x_size): 91 88 for y in xrange (y_size): 92 93 89 size = ptab_size 94 90 base = ptab_base … … 102 98 for y in xrange (y_size): 103 99 for p in xrange( procs_max ): 104 105 100 trdid = (((x * y_size) + y) * procs_max) + p 106 101 mapping.addTask( vspace, 'sort_%d_%d_%d' % (x,y,p), trdid, x, y, p, -
soft/giet_vm/convol/main.c
r377 r384 11 11 #include "stdlib.h" 12 12 #include "barrier.h" 13 #include " remote_malloc.h"13 #include "malloc.h" 14 14 15 15 #define USE_SBT_BARRIER 1 … … 183 183 #endif 184 184 185 GA[cluster_id] = remote_malloc( (FRAME_SIZE/nclusters) , 9 ,x , y );186 GB[cluster_id] = remote_malloc( (FRAME_SIZE/nclusters)*2 , 9 ,x , y );187 GC[cluster_id] = remote_malloc( (FRAME_SIZE/nclusters)*2 , 9 ,x , y );188 GD[cluster_id] = remote_malloc( (FRAME_SIZE/nclusters)*2 , 9 ,x , y );189 GZ[cluster_id] = remote_malloc( (FRAME_SIZE/nclusters)/2 , 9 ,x , y );185 GA[cluster_id] = remote_malloc( (FRAME_SIZE/nclusters) , x , y ); 186 GB[cluster_id] = remote_malloc( (FRAME_SIZE/nclusters)*2 , x , y ); 187 GC[cluster_id] = remote_malloc( (FRAME_SIZE/nclusters)*2 , x , y ); 188 GD[cluster_id] = remote_malloc( (FRAME_SIZE/nclusters)*2 , x , y ); 189 GZ[cluster_id] = remote_malloc( (FRAME_SIZE/nclusters)/2 , x , y ); 190 190 191 191 #if VERBOSE
Note: See TracChangeset
for help on using the changeset viewer.