- Timestamp:
- Nov 26, 2016, 7:33:20 PM (8 years ago)
- Location:
- soft/giet_vm/applications
- Files:
-
- 1 deleted
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/applications/fft/fft.c
r812 r824 65 65 // parameters 66 66 67 #define DEFAULT_M 1 667 #define DEFAULT_M 12 68 68 #define VERBOSE 0 69 69 #define CHECK 0 … … 208 208 { 209 209 i = x * y_size + y; 210 data[i] = (double *)remote_malloc( data_size , x , y ); 211 trans[i] = (double *)remote_malloc( data_size , x , y ); 212 bloup[i] = (double *)remote_malloc( data_size , x , y ); 213 umain[i] = (double *)remote_malloc( coefs_size , x , y ); 214 twid[i] = (double *)remote_malloc( data_size , x , y ); 210 data[i] = (double *)remote_malloc( data_size , 0 , 0 ); 211 trans[i] = (double *)remote_malloc( data_size , 0 , 0 ); 212 bloup[i] = (double *)remote_malloc( data_size , 0 , 0 ); 213 umain[i] = (double *)remote_malloc( coefs_size , 0 , 0 ); 214 twid[i] = (double *)remote_malloc( data_size , 0 , 0 ); 215 // data[i] = (double *)remote_malloc( data_size , x , y ); 216 // trans[i] = (double *)remote_malloc( data_size , x , y ); 217 // bloup[i] = (double *)remote_malloc( data_size , x , y ); 218 // umain[i] = (double *)remote_malloc( coefs_size , x , y ); 219 // twid[i] = (double *)remote_malloc( data_size , x , y ); 215 220 } 216 221 } -
soft/giet_vm/applications/hello/Makefile
r191 r824 1 APP_NAME=hello2 1 3 USE+= stdio.o 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 4 7 5 USES=$(patsubst %,$(BUILD_PATH)/$(LIB_NAME)/%,$(USE)) 8 APP_NAME = hello 6 9 7 OBJS= main.o 10 LIBS = -L../../build/libs -luser 8 11 9 all: $(APP_NAME).elf 12 LIB_DEPS = ../../build/libs/libuser.a 10 13 11 BIN_NAME_PATH=$(BUILD_PATH)$(APP_NAME).elf 14 INCLUDES = -I. -I../.. -I../../giet_libs 12 15 13 $(APP_NAME).elf: $(OBJS) $(APP_NAME).ld 14 $(LD) -o $(BIN_NAME_PATH) -T $(APP_NAME).ld $(OBJS) $(USES) 15 $(DU) -D $(BIN_NAME_PATH) > $@.txt 16 OBJS= hello.o 17 18 appli.elf: $(OBJS) $(APP_NAME).ld $(LIBS_DEPS) $(APP_NAME).py 19 $(LD) -o $@ -T $(APP_NAME).ld $(OBJS) $(LIBS) 20 $(DU) -D $@ > $@.txt 16 21 17 22 %.o: %.c 18 $(CC) $(INCLUDE) $(CFLAGS) $($*.o_CFLAGS) -c -o $@ $< 19 $(DU) -D $@ > $@.txt 20 23 $(CC) $(INCLUDES) $(CFLAGS) -c -o $@ $< 21 24 22 25 clean: 23 rm -f *.o *.elf *.txt core *~ 2>$(TRASH) 24 rm $(BIN_NAME_PATH) 2>$(TRASH) 26 rm -f *.o *.elf *.txt core *~ -
soft/giet_vm/applications/hello/hello.ld
r258 r824 3 3 *****************************************************************************/ 4 4 5 seg_code_base = 0x 00400000;6 seg_data_base = 0x 00500000;5 seg_code_base = 0x10000000; 6 seg_data_base = 0x20000000; 7 7 8 8 /*************************************************************************** -
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) -
soft/giet_vm/applications/transpose/Makefile
r708 r824 8 8 APP_NAME = transpose 9 9 10 OBJS = transpose.o10 OBJS = transpose.o 11 11 12 12 LIBS= -L../../build/libs -luser … … 16 16 LIB_DEPS = ../../build/libs/libuser.a 17 17 18 appli.elf: $(OBJS) $(APP_NAME).ld $(LIBS_DEPS) 18 appli.elf: $(OBJS) $(APP_NAME).ld $(LIBS_DEPS) $(APP_NAME).py 19 19 $(LD) -o $@ -T $(APP_NAME).ld $(OBJS) $(LIBS) 20 20 $(DU) -D $@ > $@.txt -
soft/giet_vm/applications/transpose/transpose.py
r775 r824 15 15 # - The code vsegs are replicated on all clusters containing processors. 16 16 # - There is one heap vseg per cluster containing processors. 17 # - The stacks vsegs are dist ibuted on all clusters containing processors.17 # - The stacks vsegs are distributed on all clusters containing processors. 18 18 # This mapping uses 5 platform parameters, (obtained from the "mapping" argument) 19 19 # - x_size : number of clusters in a row
Note: See TracChangeset
for help on using the changeset viewer.