Changeset 708 for soft/giet_vm/applications/convol
- Timestamp:
- Oct 1, 2015, 4:09:25 PM (9 years ago)
- Location:
- soft/giet_vm/applications/convol
- Files:
-
- 1 added
- 1 deleted
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/applications/convol/Makefile
r589 r708 1 2 CC = mipsel-unknown-elf-gcc 3 AS = mipsel-unknown-elf-as 4 LD = mipsel-unknown-elf-ld 5 DU = mipsel-unknown-elf-objdump 6 AR = mipsel-unknown-elf-ar 1 7 2 8 APP_NAME = convol 3 9 4 OBJS= main.o10 OBJS= convol.o 5 11 6 12 LIBS= -L../../build/libs -luser 7 13 8 INCLUDES = -I../../giet_libs -I. -I../.. 14 INCLUDES = -I../../giet_libs -I. -I../.. -I../../giet_xml 9 15 10 16 LIB_DEPS = ../../build/libs/libuser.a -
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.