Changeset 328 for soft/giet_vm/giet_python/genmap
- Timestamp:
- Jun 16, 2014, 3:15:08 PM (11 years ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/giet_python/genmap
r325 r328 2 2 3 3 ####################################################################################### 4 # file : tsarmap4 # file : genmap 5 5 # date : april 2014 6 6 # author : Alain Greiner … … 34 34 # - sort (one thread per processor) 35 35 # - transpose (one thread per processor) 36 # - convol (one thread per processor) 36 37 ####################################################################################### 37 38 … … 42 43 from transpose import * 43 44 from sort import * 45 from convol import * 44 46 45 47 import sys … … 86 88 parser.add_option( '--transpose', action = 'store_true', dest = 'transpose', 87 89 default = False, 88 help = 'map the "transpose" application for the G IET' )90 help = 'map the "transpose" application for the GietVM' ) 89 91 90 92 parser.add_option( '--sort', action = 'store_true', dest = 'sort', 91 93 default = False, 92 help = 'map the "sort" application for the GIET' ) 94 help = 'map the "sort" application for the GietVM' ) 95 96 parser.add_option( '--convol', action = 'store_true', dest = 'filt', 97 default = False, 98 help = 'map the "convol" application for the GietVM' ) 93 99 94 100 ###################################################################################### … … 112 118 xml_path = options.xml_path # path for map.xml file 113 119 114 map_transpose = options.transpose # map "sort" application if True 115 map_sort = options.sort # map "transpose" application if True 120 map_transpose = options.transpose # map "transpose" application if True 121 map_sort = options.sort # map "sort" application if True 122 map_convol = options.filt # map "convol" application if True 116 123 117 124 ###################################################################################### … … 131 138 # build mapping calling the function (function name) 132 139 mapping = select.genmap( x_size, y_size, nprocs ) 133 print '[ tsarmap] platform %s build' % mapping.name140 print '[genmap] platform %s build' % mapping.name 134 141 135 142 # generate the hard_confi.h file for top.cpp compilation … … 137 144 f = open ( pathname, 'w' ) 138 145 f.write( mapping.hard_config() ) 139 print '[ tsarmap] %s generated' % pathname146 print '[genmap] %s generated' % pathname 140 147 141 148 ###################################################################################### … … 145 152 if ( map_transpose ): 146 153 transpose( mapping ) 147 print '[ tsarmap] application "transpose" loaded'154 print '[genmap] application "transpose" loaded' 148 155 149 156 if ( map_sort ): 150 157 sort( mapping ) 151 print '[tsarmap] application "sort" loaded' 158 print '[genmap] application "sort" loaded' 159 160 if ( map_convol ): 161 convol( mapping ) 162 print '[genmap] application "convol" loaded' 152 163 153 164 ###################################################################################### … … 160 171 f = open ( pathname, 'w' ) 161 172 f.write( mapping.xml() ) 162 print '[ tsarmap] %s generated for debug' % pathname173 print '[genmap] %s generated for debug' % pathname 163 174 164 175 ###################################################################################### … … 171 182 f = open ( pathname, 'w' ) 172 183 f.write( mapping.netbsd_dts() ) 173 print '[ tsarmap] %s generated for netbsd' % pathname184 print '[genmap] %s generated for netbsd' % pathname 174 185 175 186 ###################################################################################### … … 182 193 f = open ( pathname, 'w' ) 183 194 f.write( mapping.almos_arch() ) 184 print '[ tsarmap] %s generated for almos' % pathname195 print '[genmap] %s generated for almos' % pathname 185 196 186 197 ###################################################################################### … … 194 205 f = open ( pathname, 'w' ) 195 206 f.write( str( mapping.cbin( verbose ) ) ) 196 print '[ tsarmap] %s generated for giet_vm' % pathname207 print '[genmap] %s generated for giet_vm' % pathname 197 208 198 209 pathname = giet_path + '/hard_config.h' 199 210 f = open ( pathname, 'w' ) 200 211 f.write( mapping.hard_config() ) 201 print '[ tsarmap] %s generated for giet_vm' % pathname212 print '[genmap] %s generated for giet_vm' % pathname 202 213 203 214 pathname = giet_path + '/giet_vsegs.ld' 204 215 f = open ( pathname, 'w' ) 205 216 f.write( mapping.giet_vsegs() ) 206 print '[ tsarmap] %s generated for giet_vm' % pathname207 217 print '[genmap] %s generated for giet_vm' % pathname 218
Note: See TracChangeset
for help on using the changeset viewer.