Changeset 708 for soft/giet_vm/applications/convol/convol.py
- Timestamp:
- Oct 1, 2015, 4:09:25 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/applications/convol/convol.py
r669 r708 11 11 # application on a multi-clusters, multi-processors architecture. 12 12 # This include both the mapping of virtual segments on the clusters, 13 # and the mapping of t asks on processors.14 # There is one t askper processor.13 # and the mapping of threads on processors. 14 # There is one thread per processor. 15 15 # The mapping of virtual segments is the following: 16 16 # - There is one shared data vseg in cluster[0][0] … … 85 85 local = True, big = True ) 86 86 87 # heap vsegs : distributed but non local (any heap can be accessed by any t ask)87 # heap vsegs : distributed but non local (any heap can be accessed by any thread) 88 88 for x in xrange (x_size): 89 89 for y in xrange (y_size): … … 97 97 local = False, big = True ) 98 98 99 # distributed t asks : one taskper processor99 # distributed threads : one thread per processor 100 100 for x in xrange (x_size): 101 101 for y in xrange (y_size): … … 103 103 if ( mapping.clusters[cluster_id].procs ): 104 104 for p in xrange( nprocs ): 105 trdid = (((x * y_size) + y) * nprocs) + p 105 if (x == 0) and (y == 0) and (p == 0) : # main thread 106 startid = 1 107 is_main = True 108 else : # trsp thread 109 startid = 0 110 is_main = False 106 111 107 mapping.addTask( vspace, 'conv_%d_%d_%d' % (x,y,p), 108 trdid, x, y, p, 109 'conv_stack_%d_%d_%d' % (x,y,p), 110 'conv_heap_%d_%d' % (x,y), 0 ) 112 mapping.addThread( vspace, 113 'conv_%d_%d_%d' % (x,y,p), 114 is_main, 115 x, y, p, 116 'conv_stack_%d_%d_%d' % (x,y,p), 117 'conv_heap_%d_%d' % (x,y), 118 startid ) 111 119 112 120 # extend mapping name
Note: See TracChangeset
for help on using the changeset viewer.